Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Passing an object to a web service
Message
From
29/03/2008 15:05:37
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Passing an object to a web service
Miscellaneous
Thread ID:
01306745
Message ID:
01306745
Views:
66
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())
Next
Reply
Map
View

Click here to load this message in the networking platform