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:16:29
 
 
To
29/03/2008 15:05:37
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01306745
Message ID:
01306746
Views:
10
>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())
>
Hi,
If you go to http://www.triphomes.com/webservices/wvrgroupservice.asmx in IE you can select the method you are interested in and it will show a sample request (and response). You just need to create a message using that format and populate the bits shown in blue.
HTH,
Viv
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform