Topic
  • 1 reply
  • Latest Post - ‏2013-08-19T02:15:44Z by lenisha
lenisha
lenisha
24 Posts

Pinned topic Mime headers for MTOM

‏2013-08-19T01:19:23Z |

Hello,

We have  a service that requires communication using MTOM and returns message with attachment as a result.

Request for service should be sent also using MTOM encoding as mutipart MIME message, even though there is no attachments on request.

We have simple passthru WSP service on Datapower with attachement mode set to "Allow", Biy when datapower receives requests it passes it backend without any MIME headers as simple SOAP message and we are getting exceptions. What is the way to enable multipart message to be passed to backend? Is there some MTOM policy we could enable even with absense of attachment?

 

Sample Request to Datapower:

POST /store/services/repository HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: multipart/related; type="application/xop+xml"; start="<rootpart@soapui.org>"; start-info="application/soap+xml"; action=""; boundary="----=_Part_36_18074047.1376873469752"
MIME-Version: 1.0
Content-Length: 1232
Connection: Keep-Alive


------=_Part_36_18074047.1376873469752
Content-Type: application/xop+xml; charset=UTF-8; type="application/soap+xml; action=\"DocumentRepository_RetrieveDocumentSet\""
Content-Transfer-Encoding: 8bit
Content-ID: <rootpart@soapui.org>

<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
  <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:MessageID soapenv:mustUnderstand="true">urn:uuid:0DDA6AD286D48312091375994800479</wsa:MessageID>
    <wsa:Action soapenv:mustUnderstand="true">urn:ihe:iti:2007:RetrieveDocumentSet-b</wsa:Action>
  </soapenv:Header>
    <soapenv:Body>
      <urn:RetrieveDocumentSetRequest xmlns:urn="urn:ihe:iti:xds-b:2007">
......      </urn:RetrieveDocumentSetRequest>
   </soapenv:Body>
</soapenv:Envelope>
------=_Part_36_18074047.1376873469752--
 

Datapower sends to backend:

Connection: Keep-Alive
SOAPAction: ""
Content-Length: 985
Content-Type: application/xop+xml; type="application/soap+xml"
MIME-Version: 1.0


<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
  <soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
    <wsa:To soapenv:mustUnderstand="true">http://10.69.5.33:6080/xdstools2/sim/5a7645dc-db33-4d8b-944b-8d96f2cdfdba/rep/prb</wsa:To>
    <wsa:MessageID soapenv:mustUnderstand="true">urn:uuid:0DDA6AD286D48312091375994800479</wsa:MessageID>
    <wsa:Action soapenv:mustUnderstand="true">urn:ihe:iti:2007:RetrieveDocumentSet-b</wsa:Action>
  </soapenv:Header>
    <soapenv:Body>
      <urn:RetrieveDocumentSetRequest xmlns:urn="urn:ihe:iti:xds-b:2007">
         <!--1 or more repetitions:-->
         <urn:DocumentRequest>
             <urn:RepositoryUniqueId>2.16.840.1.113883.3.239.30.1</urn:RepositoryUniqueId>
            <urn:DocumentUniqueId>1.42.20130808162722.10.2</urn:DocumentUniqueId>
         </urn:DocumentRequest>
      </urn:RetrieveDocumentSetRequest>
   </soapenv:Body>
</soapenv:Envelope>

Updated on 2013-08-19T02:14:34Z at 2013-08-19T02:14:34Z by lenisha