0 Replies Latest reply on Feb 1, 2016 7:47 AM by ckazan

    Switchyard SOAP binding can only consume unwrapped packages, how do i put the stripped part back?

    ckazan

      Hi, apparently soap bindings in switchyard can only consume bare soap; if you do not set this
      <soap:messageComposer unwrapped="true"/>

      so a soap envelope like this

      <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:cus="http://dummcompany.org" xmlns:urn="urn:wco:datamodel:WCO:I9:1" xmlns:urn1="urn:wco:datamodel:WCO:InterGov_DS:1">

          <soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">

              <wsa:Action>http://dummcompany.org/startOperation</wsa:Action>

              <wsa:MessageID>uuid:b22be94e-e943-4aa8-be1b-29c82a56b662</wsa:MessageID>

          </soap:Header>

          <soap:Body>

              <cus:startOperation>

                  <urn:InterGov>

      it will fail to process the incoming soap request.

      when unwrapped is set to true, switchyard will remove the <cus:startOperation> from the soap. is there a way to make it rewrap the soap body with the removed bit after the binding has finished processing it?

      thanks