1 (edited by markodell 14-06-2007 08:45:32)

Re: GridMap from classic ASP

I'm attempting to call the GridMap web service from classic ASP, without success.

I'm initially trying to replicate the PHP example, with ASP code as follows:

        dim objSoapClient, TheGridMapRequest
        
        set objSoapClient = Server.CreateObject("MSSOAP.SoapClient30")
        objSoapClient.ClientProperty("ServerHTTPRequest") = True
        call objSoapClient.mssoapinit("http://212.219.37.104/NBNWebServices/ws/WSDL")

        TheGridMapRequest = "<GridMapRequest xmlns=""http://webservices.searchnbn.net/query"" xmlns:xlink=""http://www.w3.org/1999/xlink"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"">"
        TheGridMapRequest = TheGridMapRequest & "<TaxonVersionKey>NHMSYS0000309499</TaxonVersionKey>"
        TheGridMapRequest = TheGridMapRequest & "<Resolution>_2km</Resolution>"    
        TheGridMapRequest = TheGridMapRequest & "<GridMapSettings>"    
        TheGridMapRequest = TheGridMapRequest & "<Width>500</Width>"    
        TheGridMapRequest = TheGridMapRequest & "<Height>500</Height>"    
        TheGridMapRequest = TheGridMapRequest & "<Grid>Grid_10km</Grid>"
        TheGridMapRequest = TheGridMapRequest & "<Background>OSMap</Background>"
        TheGridMapRequest = TheGridMapRequest & "<ViceCounty>59</ViceCounty>"    
        TheGridMapRequest = TheGridMapRequest & "<Region>GBIreland</Region>"
        TheGridMapRequest = TheGridMapRequest & "</GridMapSettings>"        
        TheGridMapRequest = TheGridMapRequest & "</GridMapRequest>"

        TheResponse = objSoapClient.GetGridMap(TheGridMapRequest)

I'm getting an error on call to GetGridMap, as follows:

Error Type:
Client (0x80070057)
Client:Loading the request into SoapReader failed. HRESULT=0x80070057: The parameter is incorrect. - Client:Unspecified client error. HRESULT=0x80070057: The parameter is incorrect.


Can anyone point me in the right direction?

Thanks,

Mark

2

Re: GridMap from classic ASP

I dont know when you tried this but part of the Janet network is down and this is affecting the NBN Web Services since yesterday about lunchtime. - I had the same problem. If you can connect to http://www.searchnbn.net/library/webservices/wsIndex.jsp then they are up again. Hopefully that's all it is.

Cheers,
Andrew

3

Re: GridMap from classic ASP

This was yesterday afternoon (when the samples were all working fine).

However, the samples aren't working at the moment either!

Thanks,

Mark

4

Re: GridMap from classic ASP

I've tried a few things and still can't get this to work in classic ASP - it seems to hit a problem formatting the SOAP request :(

ASP.NET 1.1 (Visual Studio 2003) runs into problems generating a web reference - can't get this to work either :(

ASP.NET 2 (Visual Studio 2005) works OK - I can use this in a frame and get the job done :)