Feb 23, 2016; 13:43
Jon Harris
RE: mystery of the disappearing soap data [LP8.6.3] [fixed]
This is what happens when you keep changing things and don't notice you did have the solution.
Putting back:
-Procs=array(proc_extractOne('//text()')),
Into the soap call fixed it.
-----Original Message-----
From: lasso-bounces@lists.lassosoft.com [mailto:lasso-bounces@lists.lassosoft.com] On Behalf Of Jon Harris
Sent: 23 February 2016 12:52
To: lasso@lists.lassosoft.com
Subject: mystery of the disappearing soap data [LP8.6.3]
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 Lasso@lists.lassosoft.com Official list archives available at http://www.lassotalk.com To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Feb 23, 2016; 17:29
Peter D Bethke
Re: mystery of the disappearing soap data [LP8.6.3] [fixed]
Feb 24, 2016; 08:55
Jon Harris
RE: mystery of the disappearing soap data [LP8.6.3] [fixed]