Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I find out what the web service is returning.
Message
De
10/07/2002 19:13:35
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00677257
Message ID:
00677311
Vues:
19
Kirk,

I haven't tried this particular WebService, but it's obviously returning an object, not an XML string, so try this:
loReturn=oWeather.GetWeather(tcZip)
loReturn.
After typing the . Intellisense should kick in and display stuff about the object. If it doesn't, then who the heck knows *what* it's returning. <g>

~~Bonnie


>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform