The code is effectively:
lo = NEWOBJECT("wwsoap","wwsoap.prg")
lo.addparameter("request","<StartDriverId>ADAEA</StartDriverId><DepotId>0</DepotId>","XML")
lo.csoapheader = getsoapheader()
lo.cextraenvelopexml=getheader()
lvResp= lo.callwsdlmethod("ExportDriverClockByDepotId","https://qhos.qualcommapps.com/QHOSWSNA/Driver.asmx?wsdl")
? lo.cresponsexml
The cSoapHeader and ExtraEnvelope allow us to add the additional security required.
However, the call to httpget returns what looks like an encrypted string (or possibly binary)
I tried using the Proxy Generator.
My code for the proxy looks something like this:
loProxy = CREATEOBJECT("DriverProxy","V2")
loReq = CREATEOBJECT("Driver.ExportDriverClockByDepotIdRequest")
loReq.DepotId=0
loReq.StartDriverId="ADAEA"
lvResult = loProxy.Exportdriverclockbydepotid(loReq)
The error comes back as Unknown COM Status Code. I'm thinking this may be related to the security required to log into the service.
The web service I'm accessing uses Microsoft.Web.Services3.SoapContext for credentials. Does that mean I can just add it with httpauthentication or do I need to use a custom header?
While I appreciate the ease of use with the Proxy Generator, I found I could debug the wwSoap errors better - but I don't know how to deal with this binary object.
Any ideas?
Thanks