Five Stars

CorrelationID from SOAP:Header

Hi,

 

we are parsing Correlation identificators from SOAP:Body through policy assertions and store it into CorrelationID element in SOAP:Header (which gets logged into DB with SAM). Is it possible to parse parameters also from SOAP:Header?

 

<?xml version="1.0" encoding="UTF-8" ?>
<wspSmiley Tongueolicy Name="wspolicy_schema_correlation_id" xmlns:wsp="http://www.w3.org/ns/ws-policy">
    <wsp:ExactlyOne>
        <wsp:All>
            <tpa:CorrelationID xmlns:tpa="http://types.talend.com/policy/assertion/1.0" type="xpath" name="docID">
                <tpaSmiley Tongueart name="docID" optional="true" xpath="/*/*[local-name()='docID']" />
            </tpa:CorrelationID>
        </wsp:All>
    </wsp:ExactlyOne>
</wspSmiley Tongueolicy>

 

<soap:Envelope>

  <soap:Header />

  <soap:Body>

    <docRequest>

      <docID>ds4789dsa45</docID>
      ......

    </docRequest>

  </soap:Body>

</soap:Envelope>

1 REPLY
Community Manager

Re: CorrelationID from SOAP:Header

Hi mpelikan I see the SOAP:Header is empty in your example. I think i don't understand your request well. Are you trying to extract data from a response string or calling a SOAP web service? Can you please explain it a little bit? Regards Shong
----------------------------------------------------------
Talend | Data Agility for Modern Business