Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing an object to a web service
Message
De
29/03/2008 15:05:37
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Passing an object to a web service
Divers
Thread ID:
01306745
Message ID:
01306745
Vues:
65
I'm trying to use a SOAP web service, and many of the available methods of the service require passing what they call a "Credentials" object as one of the parameters (it seems to be a simple object with just 2 properties). The WSDL document (see link below), defines the Credentials complex object near the top of the WSDL. I'm new to web services, and was hoping someone could tell me if this is possible (is it possible to send and receive objects from a web service using VFP), or give me a little direction. Thank you.

Here's the code I'm using:
loWSHandler = NEWOBJECT("WSHandler",IIF(VERSION(2)=0,"",HOME()+"FFC\")+"_ws3client.vcx")
loWS= loWSHandler.SetupClient(;
	"http://www.triphomes.com/webservices/wvrgroupservice.asmx?WSDL",;
	"WVRGroupService", "WVRGroupServiceSoap")
	
* ??? Help please. How do I create and pass the "Credentials object", which is defined near the top of the WSDL ???

* params to getPropertyInquiries() are: Credentials object, ContactID, begin date, end date
m.lo1= loWS.getPropertyInquiries(m.loCredentials, 9999, DATE() - 365, DATE())
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform