Sidebar

How can I send a CDA as MTOM attachment in a Provide and Register web service call?

0 votes
505 views
asked May 19, 2015 by michael-h-5027 (14,350 points)

1 Answer

0 votes

First make the provide and register MTOM:

  1. Click the checkbox for "Use MTOM" under the SOAP Envelope.
  2. Click the Attachments button.
  3. If your messasge is the CDA then you can use:
  • Source         = Message Node
  • Value           = /
  • MIME Type = application/soap+xml
  • Content ID  = cda.xml

You also need to update the SOAP envelope:

  1. Edit the Document attribute so that we can reference the content id of the MTOM.
  2. Change the line to look like this: <xdsb:Document id="Document01"><xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:cda.xml"/></xdsb:Document>
  3. Make sure the href has cid: and then whatever you entered in the MTOM attachment as the Content ID.

Screenshots for reference:

answered May 19, 2015 by michael-h-5027 (14,350 points)
...