Uploaded image for project: 'ZZZ-WSO2 ESB'
  1. ZZZ-WSO2 ESB
  2. ESBJAVA-1732

MTOM and SwA optimization sample fails with PassThrough. SOAPAction and WSA-Action is set to null.

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Highest
    • Resolution: Fixed
    • Affects Version/s: 4.6.0
    • Fix Version/s: 4.6.0
    • Component/s: None
    • Labels:
      None
    • Environment:

      wso2esb-4.6.0 - 12th December 2012 packs.

    • Severity:
      Blocker
    • Estimated Complexity:
      Moderate
    • Test cases added:
      Not-applicable

      Description

      Message Client sends to ESB :

      POST /services/MTOMSwASampleService HTTP/1.1

      Content-Type: multipart/related; boundary="MIMEBoundary_dab74a5814ac716107c8d155daa9b51e946fb9b7f65ebeb9"; type="text/xml"; start="<0.cab74a5814ac716107c8d155daa9b51e946fb9b7f65ebeb9@apache.org>"

      SOAPAction: "urn:uploadFileUsingSwA"

      User-Agent: Axis2

      Host: 127.0.0.1:8281

      Transfer-Encoding: chunked

      2087

      --MIMEBoundary_dab74a5814ac716107c8d155daa9b51e946fb9b7f65ebeb9

      Content-Type: text/xml; charset=UTF-8

      Content-Transfer-Encoding: binary

      Content-ID: <0.cab74a5814ac716107c8d155daa9b51e946fb9b7f65ebeb9@apache.org>
      <?xml version='1.0' encoding='UTF-8'?>
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
      <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
      <wsa:To>http://localhost:8281/services/MTOMSwASampleService</wsa:To>
      <wsa:MessageID>urn:uuid:a9bdd65d-deb1-4dac-91f9-99b01b4bb852</wsa:MessageID>
      <wsa:Action>urn:uploadFileUsingSwA</wsa:Action>
      </soapenv:Header>
      <soapenv:Body>
      <m0:uploadFileUsingSwA xmlns:m0="http://services.samples">
      <m0:request>
      <m0:imageId>aab74a5814ac716107c8d155daa9b51e946fb9b7f65ebeb9@apache.org</m0:imageId>
      </m0:request>
      </m0:uploadFileUsingSwA>
      </soapenv:Body>
      </soapenv:Envelope>--MIMEBoundary_dab74a5814ac716107c8d155daa9b51e946fb9b7f65ebeb9Content-Type: image/gifContent-Transfer-Encoding: binaryContent-ID:
      <aab74a5814ac716107c8d155daa9b51e946fb9b7f65ebeb9@apache.org>GIF89a�d

      ESB Debug logs :

      [2012-12-13 22:57:02,631] DEBUG - SynapseMessageReceiver Synapse received a new message for message mediation...
      [2012-12-13 22:57:02,632] DEBUG - SynapseMessageReceiver Received To: /services/MTOMSwASampleService
      [2012-12-13 22:57:02,632] DEBUG - SynapseMessageReceiver SOAPAction: null
      [2012-12-13 22:57:02,633] DEBUG - SynapseMessageReceiver WSA-Action: null
      [2012-12-13 22:57:02,633] DEBUG - Axis2SynapseEnvironment Injecting MessageContext
      [2012-12-13 22:57:02,634] DEBUG - Axis2SynapseEnvironment Using Main Sequence for injected message
      [2012-12-13 22:57:02,636] DEBUG - SequenceMediator Start : Sequence <main>
      [2012-12-13 22:57:02,637] DEBUG - SequenceMediator Sequence <SequenceMediator> :: mediate()
      [2012-12-13 22:57:02,637] DEBUG - InMediator Start : In mediator
      [2012-12-13 22:57:02,638] DEBUG - InMediator Current message is incoming - executing child mediators
      [2012-12-13 22:57:02,638] DEBUG - InMediator Sequence <InMediator> :: mediate()
      [2012-12-13 22:57:02,638] DEBUG - FilterMediator Start : Filter mediator
      [2012-12-13 22:57:02,645] DEBUG - FilterMediator Source : get-property('Action') against : urn:uploadFileUsingMTOM does not match - skipping child mediators
      [2012-12-13 22:57:02,646] DEBUG - FilterMediator End : Filter mediator
      [2012-12-13 22:57:02,646] DEBUG - FilterMediator Start : Filter mediator
      [2012-12-13 22:57:02,647] DEBUG - FilterMediator Source : get-property('Action') against : urn:uploadFileUsingSwA does not match - skipping child mediators
      [2012-12-13 22:57:02,647] DEBUG - FilterMediator End : Filter mediator
      [2012-12-13 22:57:02,647] DEBUG - InMediator End : In mediator
      [2012-12-13 22:57:02,648] DEBUG - OutMediator Start : Out mediator
      [2012-12-13 22:57:02,648] DEBUG - OutMediator Current message is a request - skipping child mediators
      [2012-12-13 22:57:02,648] DEBUG - OutMediator End : Out mediator
      [2012-12-13 22:57:02,649] DEBUG - SequenceMediator End : Sequence <main>

      this works as expected with NHTTP.

        Attachments

          Activity

            People

            • Assignee:
              dushan@wso2.com dushan abeyruwan
              Reporter:
              sandapa@wso2.com Sandapa Handakumbura
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: