RE: mystery of the disappearing soap data [LP8.6.3] [fixed]

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

RE: mystery of the disappearing soap data [LP8.6.3] [fixed]

Jon Harris
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: [hidden email] [mailto:[hidden email]] On Behalf Of Jon Harris
Sent: 23 February 2016 12:52
To: [hidden email]
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 [hidden email] Official list archives available at http://www.lassotalk.com To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>

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

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]>
Reply | Threaded
Open this post in threaded view
|

Re: mystery of the disappearing soap data [LP8.6.3] [fixed]

Peter D Bethke
Welome to the Pilsonism club. New members welcomed.

"From what they teach kids in schools, Pilsonism is one of those stages that never ends. It's like gravity. Impossible to avoid.” - Jolle Carlestam, 2011.

:)

> On Feb 23, 2016, at 8:43 AM, Jon Harris <[hidden email]> wrote:
>
> 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: [hidden email] [mailto:[hidden email]] On Behalf Of Jon Harris
> Sent: 23 February 2016 12:52
> To: [hidden email]
> 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 [hidden email] Official list archives available at http://www.lassotalk.com To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
>
> #############################################################
>
> 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]>


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

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]>
Reply | Threaded
Open this post in threaded view
|

RE: mystery of the disappearing soap data [LP8.6.3] [fixed]

Jon Harris
Thanks Peter!

That’s going to be my word of the day.

Regards
Jon


-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of Peter D Bethke
Sent: 23 February 2016 22:30
To: Lasso Talk <[hidden email]>
Subject: Re: mystery of the disappearing soap data [LP8.6.3] [fixed]

Welome to the Pilsonism club. New members welcomed.

"From what they teach kids in schools, Pilsonism is one of those stages that never ends. It's like gravity. Impossible to avoid.” - Jolle Carlestam, 2011.

:)

> On Feb 23, 2016, at 8:43 AM, Jon Harris <[hidden email]> wrote:
>
> 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: [hidden email]
> [mailto:[hidden email]] On Behalf Of Jon Harris
> Sent: 23 February 2016 12:52
> To: [hidden email]
> 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 [hidden email] Official list archives available
> at http://www.lassotalk.com To unsubscribe, E-mail to:
> <[hidden email]>
> Send administrative queries to  <[hidden email]>
>
> #############################################################
>
> 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]>


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

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]>

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

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]>