web stats
Web Service Listener Breaking Change in Mirth 3.2.0 - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 03-17-2015, 06:30 PM
daigoba66 daigoba66 is offline
Mirth Newb
 
Join Date: Jun 2011
Posts: 10
daigoba66 is on a distinguished road
Default Web Service Listener Breaking Change in Mirth 3.2.0

We're testing the upgrade from Mirth 3.1.x to 3.2.0 and we've discovered what seems like a breaking change in the Web Service Listener.

I noticed that the WSDL is completely unchanged which is good. But we have several services sending SOAP messages with a envelope as follows:

Code:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
    <acceptMessage xmlns="http://ws.connectors.connect.mirth.com/">
        <arg0 xmlns="">&lt;test&gt;hello world&lt;/test&gt;</arg0>
    </acceptMessage>
</s:Body>
</s:Envelope>
Note that the namespace of acceptMessage is implicit (no prefix). This has worked fine until now. In Mirth 3.2.0, no message is read by the channel (it's a blank raw message in Mirth Connect Administrator).

Below the same SOAP envelope but with one minor change: the namespace is assigned a prefix.

Code:
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
    <w:acceptMessage xmlns:w="http://ws.connectors.connect.mirth.com/">
        <arg0 xmlns="">&lt;test&gt;hello world&lt;/test&gt;</arg0>
    </w:acceptMessage>
</s:Body>
</s:Envelope>
And this works. From an XML perspective, both are equivalent and should be handled the same.

We have many services that use code generated from the Web Service Listener's WSDL and so it is not very practical for us to change how it renders and formats the output SOAP envelope.

Is this a regression? Is the any possible workaround?
Reply With Quote
  #2  
Old 03-17-2015, 07:09 PM
wayneh wayneh is offline
OBX.3 Kenobi
 
Join Date: May 2012
Posts: 102
wayneh is on a distinguished road
Default

This appears to be a Java 8 issue and not a Mirth Connect issue. If you revert to Java 7, then your old format will work.
Reply With Quote
  #3  
Old 03-17-2015, 07:17 PM
daigoba66 daigoba66 is offline
Mirth Newb
 
Join Date: Jun 2011
Posts: 10
daigoba66 is on a distinguished road
Default

Thanks. I sort of came to the same conclusion.

Unfortunately we're also using Mirth Appliances which want to be upgraded to Java 8. Is there any way to force Mirth to use Java 7 in case both are installed? Can we contact Mirth Support to uninstall Java 8 from an appliance?

It sounds like we'll just have to figure out how to update our clients to send the correctly formatted SOAP envelope.
Reply With Quote
  #4  
Old 03-17-2015, 07:27 PM
wayneh wayneh is offline
OBX.3 Kenobi
 
Join Date: May 2012
Posts: 102
wayneh is on a distinguished road
Default

Yes, you can contact Mirth Support and they can point Mirth Connect to Java 7 on the appliance. You can provide them a link to this thread.

Keep in mind that Java 8 is the future and you'll likely have to migrate things eventually anyway.

One more note is that neither of your examples worked for me in Java 8. If you point one of our WS Sender connectors to your listener, hit Get Operations, and Generate Envelope, this is the envelope I get which works for both Java 7 and 8.

Code:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ws="http://ws.connectors.connect.mirth.com/">
   <soapenv:Header/>
   <soapenv:Body>
      <ws:acceptMessage>
         <!--Optional:-->
         <arg0>?</arg0>
      </ws:acceptMessage>
   </soapenv:Body>
</soapenv:Envelope>
Reply With Quote
  #5  
Old 07-09-2015, 11:40 AM
THagen THagen is offline
Mirth Newb
 
Join Date: Nov 2012
Posts: 12
THagen is on a distinguished road
Default

What is the most recent version of Java that does not have this issue?
Reply With Quote
  #6  
Old 09-01-2015, 07:00 AM
cbauza cbauza is offline
What's HL7?
 
Join Date: Sep 2015
Posts: 1
cbauza is on a distinguished road
Default Final Solution

Hi,

I have the same problem, i install Mirth 3.2 with Java 8 and
when i publish a soap web service in Mirth and invoke those web
service, the raw data is empty.

Thanks
Reply With Quote
  #7  
Old 11-11-2015, 05:55 AM
dan.patrascu@bissoft.ro dan.patrascu@bissoft.ro is offline
What's HL7?
 
Join Date: Oct 2015
Posts: 3
dan.patrascu@bissoft.ro is on a distinguished road
Thumbs down Any solution?

Hi,

I'm using Mirth 3.2.0 and just updated from Java 7 to 8. I have the same issue: messages received from the WebServiceListener are empty.
I tried by updating Mirth to 3.3.1, no luck.

Besides downgrading Java, is there any solution for this?

Thank you!
Reply With Quote
  #8  
Old 05-20-2016, 07:56 AM
momo momo is offline
What's HL7?
 
Join Date: Jul 2010
Posts: 1
momo is on a distinguished road
Default see link below for a solution applicable in a .NET context

http://stackoverflow.com/questions/4...50494#37350494
Reply With Quote
  #9  
Old 05-20-2016, 08:29 AM
narupley's Avatar
narupley narupley is online now
Mirth Employee
 
Join Date: Oct 2010
Posts: 7,117
narupley is on a distinguished road
Default

In Mirth Connect 3.3, you can set the SOAP binding to 1.1 or 1.2 specifically. So maybe setting it to 1.1 will fix the problem you're having.
__________________
Step 1: JAVA CACHE...DID YOU CLEAR ...wait, ding dong the witch is dead?

Nicholas Rupley
Work: 949-237-6069
Always include what Mirth Connect version you're working with. Also include (if applicable) the code you're using and full stacktraces for errors (use CODE tags). Posting your entire channel is helpful as well; make sure to scrub any PHI/passwords first.


- How do I foo?
- You just bar.
Reply With Quote
  #10  
Old 06-20-2016, 01:02 PM
pcristini pcristini is offline
What's HL7?
 
Join Date: Jun 2016
Posts: 5
pcristini is on a distinguished road
Default

I realize this is an old thread, but I'm experiencing this issue in 3.4.1 with java 8. Is there any way to get this working with 8? Is this specific to > Mirth 3.2?
Reply With Quote
Reply

Tags
mirth 3.2.0, soap envelope, web service listener

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 01:06 PM.


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