Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Return Complex data objects
Message
From
01/01/2002 17:17:32
 
 
To
01/01/2002 17:12:03
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00599586
Message ID:
00599622
Views:
12
>>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  && 37
>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.

Sorry, missed a bit on the last post...


ob = oa.item[1]
?ob.baseName && "Owner"
?ob.text && "xmethods"
...
ob = oa.item[5]
?ob.baseName && "wsdlURL"
?ob.text && "http://www.xmethods.net/sd/2001/EBayWatcherService.wsdl"

----
Regards
Andy Kramek
Previous
Reply
Map
View

Click here to load this message in the networking platform