Playing with consuming web services..I have had several that were very simple work fine then i had one return and object and am stuck. what do I do with the (object) that is returned from the web service?...
LOCAL loWSIQuizService AS "XML Web Service"
* Do not remove or alter following line. It is used to support IntelliSense for your XML Web service.
*__VFPWSDef__: loWSIQuizService =
http://java.rus.uni-stuttgart.de/quiz/quiz.wsdl , QuizService , IQuizService
LOCAL loException, loWSHandler
*TRY
loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
loWSIQuizService = loWSHandler.SetupClient("
http://java.rus.uni-stuttgart.de/quiz/quiz.wsdl", "QuizService", "IQuizService")
* Type your XML Web service code here:
* ex: leResult = loWSIQuizService.somemethod()
?leresult
---(object)
leResult = loWSIQuizService.randomQuestion()
SET CLASSLIB TO 'wwxml.vcx'
oXML = CREATEOBJECT("wwXML")
?oxml.ObjectToXml(leresult)