B
Burak
Hello,
When I call an asp.net web service that returns a string from
an asp page, it works fine, but when I call an asp.net web service
that returns a class, it does not work.
How can I call an asp.net web service that returns a complex type
from an asp page?
Thank you,
Burak
I included my code below
Dim SoapClient
set SoapClient = Server.CreateObject("MSSOAP.SoapClient30")
SoapClient.ClientProperty("ServerHTTPRequest") = True
SoapClient.mssoapinit
"http://maps.servicelocator.org/AddressBrokerService/ABService.asmx?
wsdl", "ABService", "ABServiceSoap"
Dim xml
Set xml = Server.CreateObject("MSXML2.DOMDocument")
Dim addr, city, state
addr = "1941 Roland Clarke Place"
city = "Reston"
state = "VA"
zipcode = "20191"
Dim xmlSTR
xmlSTR = SoapClient.GetGeocode(addr,city,state,zipcode)
xml.async = false
xml.loadXML(xmlSTR)
if xml.parseError.errorcode<>0 then
'error handling code
else
' proceed
xml.save(Server.mappath("data.xml"))
end if
When I call an asp.net web service that returns a string from
an asp page, it works fine, but when I call an asp.net web service
that returns a class, it does not work.
How can I call an asp.net web service that returns a complex type
from an asp page?
Thank you,
Burak
I included my code below
Dim SoapClient
set SoapClient = Server.CreateObject("MSSOAP.SoapClient30")
SoapClient.ClientProperty("ServerHTTPRequest") = True
SoapClient.mssoapinit
"http://maps.servicelocator.org/AddressBrokerService/ABService.asmx?
wsdl", "ABService", "ABServiceSoap"
Dim xml
Set xml = Server.CreateObject("MSXML2.DOMDocument")
Dim addr, city, state
addr = "1941 Roland Clarke Place"
city = "Reston"
state = "VA"
zipcode = "20191"
Dim xmlSTR
xmlSTR = SoapClient.GetGeocode(addr,city,state,zipcode)
xml.async = false
xml.loadXML(xmlSTR)
if xml.parseError.errorcode<>0 then
'error handling code
else
' proceed
xml.save(Server.mappath("data.xml"))
end if