CAA WS MTOM reply

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf CAA WS MTOM reply

  • Creator
    Topic
  • #54959
    Elisha Gould
    Participant

      Hi,

      I have an interface that uses a ws-server with MTOM enabled.

      For this interface the inbound data is in multi-part, but the external system does not accept a multi-part reply.

      Is there anyway to accept multi-part data and reply with a single part message?

      ie it is currently replying with the following:

      Code:

      HTTP/1.1 200 OK
      Content-Type: multipart/related; ENGINE=”application/xop+xml”; boundary=”uuid:9d4ccd34-ecac-4ad2-9e0d-0b60ad48d765″; start=”“; start-info=”text/xml”
      Transfer-Encoding: chunked
      Server: Jetty(8.1.14.v20131031)

      –uuid:9d4ccd34-ecac-4ad2-9e0d-0b60ad48d765
      Content-Type: application/xop+xml; charset=UTF-8; ENGINE=”text/xml”
      Content-Transfer-Encoding: binary
      Content-ID:

      Reply Data
      –uuid:9d4ccd34-ecac-4ad2-9e0d-0b60ad48d765–

      I need it to reply as:

      Code:

      HTTP/1.1 200 OK
      Root.Content-Type: text/xml
      Accept: text/xml, text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
      Content-Type: text/xml;charset=utf-8
      Content-Length: 1107
      Date: Thu, 21 Jan 2016 07:54:52 GMT
      Server: Apache-Coyote/1.1

      Reply Data

    Viewing 1 reply thread
    • Author
      Replies
      • #83615
        Elisha Gould
        Participant

          Sorry nevermind figured it out.

          I was assuming MTOM Enabled was for the inbound message, but it is for the outbound reply for the ws-server.

          If I disable it I can still receive MTOM messages, but the outbound will be as I want it.

        • #83616
          Jim Kosloskey
          Participant

            Elisha,

            Thanks for sharing that – it will be helpful for others I am sure.

            email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

        Viewing 1 reply thread
        • The forum ‘Cloverleaf’ is closed to new topics and replies.