>m.lo1= loWS.getPropertyInquiries(m.loCredentials, 9999, DATE() - 365, DATE()) >>But I'm stuck on that Credentials object, I can't figure out how to pass this object (or instantiate it). I tried using an Empty class and adding the properties, and passing that object, but it didn't like it. I really appreciate your help and anything further you can offer!! -Mark
>>>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,
oH = CREATEOBJECT("Microsoft.XMLHTTP") siteurl = "http://www.triphomes.com/webservices/wvrgroupservice.asmx" TEXT TO request NOSHOW <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:tns="http://www.triphomes.com/webservices/" xmlns:types="http://www.triphomes.com/webservices/encodedTypes" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"> <tns:GetPropertyInquiries> <credentials href="#id1" /> <propertyManagerAccountID xsi:type="xsd:string">12345</propertyManagerAccountID> <from xsi:type="xsd:dateTime">2008-04-01T10:53:57</from> <to xsi:type="xsd:dateTime">2008-04-01T10:53:57</to> </tns:GetPropertyInquiries> <tns:Credentials id="id1" xsi:type="tns:Credentials"> <RequestorUID xsi:type="xsd:string">MyId</RequestorUID> <RequestorPassword xsi:type="xsd:string">MyPassword</RequestorPassword> </tns:Credentials> </soap:Body> </soap:Envelope> ENDTEXT oH.open("POST",siteurl,.F.,"","") oH.SetRequestHeader("Content-type","text/xml") oH.Send(request)I hard-coded the values but you could put this in a method, pass in the parameters and use TEXTMERGE to populate. Note the format required for DateTime tho. Parse oH.ResponseText or use oH.ResponseXML to retrieve the results.