mystery of the disappearing soap data [LP8.6.3]

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

mystery of the disappearing soap data [LP8.6.3]

Jon Harris
Hi List

I am having problems getting data out of a soap request. In the past, i've never really got this to work properly (I've ended up doing low-level "self-generated" requests with include URLs)

Here is a code snippet, I don't think I need to explain the endpoint, the data, or the operation name, as all this seems to be working correctly.

SOAP_DefineTag(
        -LocalTagName='SoapCall',
        -WSDL=var('WSDL'),
        -NameSpace='Ex_',
        -Defaults=Map('StockCode'='155/5','MappingType'='1','LastUpdated'='2010-10-01'),
        -OperationName=var('operationname')
        ) ;

// -Procs=array(proc_extractOne('//text()')) ;

var('xmlResult') = Ex_SoapCall(0, '2010-01-01') ;

"*" var('xmlResult')->get(1) "*" ;

-> *ExportStockResponse*

If I look at the contents of "soap_lastresponse" it has everything I need in the return.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
  <SOAP-ENV:Body xmlns:NS1="urn:IDatWebIntf-IDatWeb" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <NS1:ExportStockResponse>
      <return xsi:type="xsd:string">(everything I need is in here)</return>
    </NS1:ExportStockResponse>
  </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I have tried different forms of the -procs parameter, but its commented out at the moment as it didn't make any difference. Can anyone tell me what I am doing wrong?

Thanks for any advice.

Jon


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>