Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I find out what the web service is returning.
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00677257
Message ID:
00677276
Views:
18
>I am trying (just for fun) to connect to a web service through VFP and get the weather. I went to www.xmethods.com and found one, copied the http path (http://glkev.net.innerhost.com/glkev_ws/WeatherFetcher.asmx?WSDL) and registered it under the Intellisense manager/webservices.
>
>Then I have the following code in a little prg:
>
>
>PARAMETERS tcZip
>IF PCOUNT()=0
>	tcZip=[78130]
>endif
>LOCAL lcReturn
>LOCAL oWeather as weatherservice
>LOCAL loWS
>loWS = NEWOBJECT("Wsclient",HOME()+"ffc\_webservices.vcx")
>loWS.cWSName = "weatherservice"
>oWeather = loWS.SetupClient("http://glkev.net.innerhost.com/glkev_ws/WeatherFetcher.asmx?WSDL", "WeatherFetcher", "WeatherFetcherSoap")
>
>lcReturn=oWeather.GetWeather(tcZip)
>? lcReturn
>
>
>
>But I get an error on the ?lcReturn line. So I suspended the program and brought up the debugger, and it shows lcReturn is an object. But I can't determine what the properties of the object are. So that is my real question, how do you determine what the object properties are?
>
>Thanks
>Kirk

Try to use Intellisense features. Write the name of the object in the command window and after typing . the list of its members will appear
Venelina Jordanova

Outsourcing IT Services Ltd.
Previous
Reply
Map
View

Click here to load this message in the networking platform