S
Samantha Dixon
Hi,
I have written a web service use ASP.NET
I can access i from VB 6 via XMLHTTP and everything works
fine until I try to pass parameters to it. According to
what documentation I can find I could pass the parameters
in an XML file or as a querystring attatched to the URL.
However these both return 'Invalid request'
Is there something I'm missing ? Any ideas of where else I
can look ?
Thanks for you time
Sam
PS. Code
sBuffer
= "http://localhost/MapWS/MapService.asmx/GetMapURL"
XMLhttp.open "POST", sBuffer, False
XMLhttp.setRequestHeader "Content-type", "text/xml"
XMLhttp.send ("C:\Coords.xml")
MsgBox XMLhttp.responseText
PosHTTP = InStr(XMLhttp.responseText, ">http")
XML File :
<?xml version="1.0" encoding="utf-8"?>
<GetMapURL xmlns="MaporamaWS">
<Latitude>51.522249476571</Latitude>
<Longitude>-0.105867806149086</Longitude>
</GetMapURL>
I have written a web service use ASP.NET
I can access i from VB 6 via XMLHTTP and everything works
fine until I try to pass parameters to it. According to
what documentation I can find I could pass the parameters
in an XML file or as a querystring attatched to the URL.
However these both return 'Invalid request'
Is there something I'm missing ? Any ideas of where else I
can look ?
Thanks for you time
Sam
PS. Code
sBuffer
= "http://localhost/MapWS/MapService.asmx/GetMapURL"
XMLhttp.open "POST", sBuffer, False
XMLhttp.setRequestHeader "Content-type", "text/xml"
XMLhttp.send ("C:\Coords.xml")
MsgBox XMLhttp.responseText
PosHTTP = InStr(XMLhttp.responseText, ">http")
XML File :
<?xml version="1.0" encoding="utf-8"?>
<GetMapURL xmlns="MaporamaWS">
<Latitude>51.522249476571</Latitude>
<Longitude>-0.105867806149086</Longitude>
</GetMapURL>