Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I find out what the web service is returning.
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How can I find out what the web service is returning.
Divers
Thread ID:
00677257
Message ID:
00677257
Vues:
73
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform