>I have tried to connect to serveral web services that return complex data objects. I have no problem with the connection, but I can not read the output. When I suspend my foxpro app and do a display memory. I see the object that was return to my app, but it just says 'unknown type'.
>
>Here is one of the web servies I have tested:
>
>
http://www.xmethods.com/detail.html?id=23>
>Does anyone know how to read the output from this type of web service?
Hi Tim
The return from this particular service is not XML, it is an array of objects. Try the following code from the command window:
ot = CREATEOBJECT( "MSSOAP.soapclient" )
ot.mssoapinit("http://www.xmethods.net/sd/2001/XMethodsListingsService.wsdl ")
ox = ot.GetAllSoapServices( )
If you now look at ox in the debugger you will see it is an array of objects. To de-code these you need to drill down into them:
oA = ox[1]
? oA.Length
oB = oa.Item[1]
Now you can examine the details of the contents of the first item (intellisense will give you the members of oB) in the first object. Obviously you need to write this sort of code to work through automatically, but this should get you started.
----
Regards
Andy Kramek