problems with soapclient30

B

bajopalabra

hi
this code bellow get data from a web service (tradicional asp)
but result is not parsed into XML ...
that is, JUST get "cat4"
instead of "<animal><name>cat</name><legs>4</legs></animal>

set osoap= Server.CreateObject("MSSOAP.SoapClient30")
osoap.ClientProperty("ServerHTTPRequest") = true
osoap.mssoapinit("http://x.x.x.x:8080/services/myservice?wsdl")


IT IS WORKING, for example, instancing soap
from VISUAL FOXPRO ...

are anybody experiencing similar problems ???
this worked....
could it be related to lasts windows updates ?

thanks
 
B

bajopalabra

i want to share whith us "my" solution

dim osoap, oxml, txt
set osoap= Server.CreateObject("MSSOAP.SoapClient30")
set oxml= Server.CreateObject("MSXML.DomDocument")

osoap.ClientProperty("ServerHTTPRequest") = true
osoap.mssoapinit("http://x.x.x.x:8080/services/myService?wsdl")
oxml.loadxml( osoap.getMyData("myID") )
txt= oxml.getElementsByTagName("user/data").item(0).text

set oxml= nothing
set osoap= nothing
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top