web stats
MTOM encoding issues - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-18-2018, 06:16 AM
appsbyaaron's Avatar
appsbyaaron appsbyaaron is offline
Mirth Guru
 
Join Date: Nov 2011
Location: Florida, USA
Posts: 377
appsbyaaron is on a distinguished road
Default MTOM encoding issues

MC 3.2.2.7694

Here is the current data flow

CCDA via HTTP (inbound to me) to SOAP (outbound to destination)

Delivery:
Source -> Mirth Connect (me) -> Destination

Response:
Destination -> Mirth Connect (me) -> Source needs MTOM encoded

This flow is working and the destination is sending a successful response. The issue now is that the Source is wanting an MTOM encoded response and the Destination is not set up to use MTOM so Mirth isn't getting an MTOM response to deal with.

How can I code the response in MTOM within Mirth??

This is what the source is expecting back from Mirth
Quote:
HTTP/1.1 200 OK
Cache-Control: private
Content-Length: 1032
Content-Type: multipart/related; type="application/xop+xml";start="<http://tempuri.org/0>";boundary="uuid:da5a17d5-dc73-4adc-b1c6-3fd0c3965e0b+id=1";start-info="application/soap+xml"
Server: Microsoft-IIS/7.5
MIME-Version: 1.0
X-AspNet-Version: 4.0.30319
X-NODE: 1
Date: Fri, 24 Apr 2015 16:32:08 GMT


--uuid:da5a17d5-dc73-4adc-b1c6-3fd0c3965e0b+id=1
Content-ID: <http://tempuri.org/0>
Content-Transfer-Encoding: 8bit
Content-Type: application/xop+xml;charset=utf-8;type="application/soap+xml"

<s:Envelope xmlns:s="http://www.w3.org/2003/05/soap-envelope" xmlns:a="http://www.w3.org/2005/08/addressing">
<s:Header>
<a:Action s:mustUnderstand="1">urn:ihe:iti:2007:ProvideAndRe gisterDocumentSet-bResponse</a:Action>
<a:RelatesTo>urn:uuid:f0a6f5c1-9577-4848-b5ff-195ba474758a</a:RelatesTo>
<ActivityId CorrelationId="dee16e3f-ec11-440a-88d4-538d942e9fc1" xmlns="http://schemas.microsoft.com/2004/09/ServiceModel/Diagnostics">00000000-0000-0000-0000-000000000000</ActivityId>
</s:Header>
<s:Body>
<rs:RegistryResponse status="urnasis:names:tc:ebxml-regrep:ResponseStatusType:Success" xmlns:rs="urnasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
</s:Body>
</s:Envelope>
--uuid:da5a17d5-dc73-4adc-b1c6-3fd0c3965e0b+id=1--
This is what the destination is responding with
Quote:
<soapenv:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>urn:ihe:iti:2007:ProvideAndRegisterDoc umentSet-bResponse</wsa:Action>
<wsa:RelatesTo>uuid:636cda14-caff-40a0-a93e-abaf3c3842ed</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<rs:RegistryResponse xmlns:rs="urnasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="urnasis:names:tc:ebxml-regrep:ResponseStatusType:Success" xsi:schemaLocation="urnasis:names:tc:ebxml-regrep:xsd:rs:3.0 ../../schema/ebRS/rs.xsd"/>
</soapenv:Body>
</soapenv:Envelope>
Here is the response we were sending back that was working before the Source upgraded to a newer version of Touchworks.
Quote:
--2c2c5b89-90bd-45a9-a54b-2db7d898dcdc
Content-Type: application/xop+xml; charset=UTF-8

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<soapenv:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope" xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope">
<soapenv:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:Action>urn:ihe:iti:2007:ProvideAndRegisterDoc umentSet-bResponse</wsa:Action>
<wsa:RelatesTo>uuid:636cda14-caff-40a0-a93e-abaf3c3842ed</wsa:RelatesTo>
</soapenv:Header>
<soapenv:Body>
<rs:RegistryResponse xmlns:rs="urnasis:names:tc:ebxml-regrep:xsd:rs:3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" status="urnasis:names:tc:ebxml-regrep:ResponseStatusType:Success" xsi:schemaLocation="urnasis:names:tc:ebxml-regrep:xsd:rs:3.0 ../../schema/ebRS/rs.xsd"/>
</soapenv:Body>
</soapenv:Envelope>
--2c2c5b89-90bd-45a9-a54b-2db7d898dcdc--
Reply With Quote
  #2  
Old 07-29-2019, 08:06 AM
sarcophyton sarcophyton is offline
OBX.2 Kenobi
 
Join Date: Jan 2012
Posts: 67
sarcophyton is on a distinguished road
Default

Did you figure out this issue? I have the exact same problem in trying to create an MTOM response. Thanks!!
Reply With Quote
  #3  
Old 09-04-2019, 05:14 PM
scottr scottr is offline
Mirth Newb
 
Join Date: Mar 2008
Posts: 7
scottr
Default

Were either of you able to solve this? I'm in a similar situation.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:53 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2020, vBulletin Solutions, Inc.
Mirth Corporation