Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mirth has missing SOAP action #2066

Closed
rbeckman-nextgen opened this issue May 11, 2020 · 8 comments
Closed

Mirth has missing SOAP action #2066

rbeckman-nextgen opened this issue May 11, 2020 · 8 comments
Milestone

Comments

@rbeckman-nextgen
Copy link
Collaborator

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

A channel was created with a web service sender destination. The WSDL file (and associated files) were hosted with Mirth under public_html. Mirth correctly read the URL http://localhost:8080/EncounterManager/EncounterManagerQueryFulfiller.wsdl with Get Operation and the operation name and SOAP action was automatically set using "Get SOAP envelope".

However, when actually used to send a message, the web service call failed because the SOAP action was empty. This was verified with the VM machine argument "-Dcom.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump=true" (in Eclipse)

According to this blog post:
http://weblogs.java.net/blog/ramapulavarthi/archive/2007/01/using_addressin.html
JAX-WS needs to be told to use the SOAP addressing features:
dispatch.getRequestContext().put(BindingProvider.SOAPACTION_USE_PROPERTY, true);

One line needs to be added. I will be submitting a patch.

Imported Issue. Original Details:
Jira Issue Key: MIRTH-2109
Reporter: janbrogger
Created: 2012-03-05T14:03:25.000-0800

@rbeckman-nextgen rbeckman-nextgen added this to the 2.2.2 milestone May 11, 2020
@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

This is my first unified diff. Silly whitespace differences account for the first line (just a comment). The substantial change is in the second added line.

Imported Comment. Original Details:
Author: janbrogger
Created: 2012-03-05T14:05:14.000-0800

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

Title should be "Mirth has missing SOAP action"

Imported Comment. Original Details:
Author: janbrogger
Created: 2012-03-05T14:05:58.000-0800

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

I don't see how the SOAPACTION_USE_PROPERTY can negatively affect anyone. If the SOAP action is not empty, then turn on use of SOAP action. In the JAX-WS Jira, the use of SOAPACTION_USE_PROPERTY is commented on http://java.net/jira/browse/JAX_WS-596.

Imported Comment. Original Details:
Author: janbrogger
Created: 2012-03-05T23:31:58.000-0800

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

I believe I am getting hit by this as well. However in my case I have two web service calls, the first one works fine, the second one failes with:
ERROR-410: Web Service Connector error
ERROR MESSAGE: Error connecting to web service.
javax.xml.ws.soap.SOAPFaultException: Server did not recognize the value of HTTP Header SOAPAction: .

I have both setup the same way and both show a SOAPAction as being set in the destination properties.

Imported Comment. Original Details:
Author: smsmithee
Created: 2012-06-04T12:48:12.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

i am using mirth 2.2.1.5861
I am getting same issue
ERROR-410: Web Service Connector error
ERROR MESSAGE: Error connecting to web service.
javax.xml.ws.soap.SOAPFaultException: Server did not recognize the value of HTTP Header SOAPAction: .

for some webservices created using NuSOAP, it works properly. But for other webservices it's giving above error.

can we resolve this issue with same mirth version 2.2.1.5861 by installing WebServiceMessageDispatcher.java.patch file. If yes, then how to install/run this patch file on mirth ?

Imported Comment. Original Details:
Author: nikhilb
Created: 2012-07-18T03:11:38.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

This problem is related to Java 7. If you run Mirth under Java 6, the SOAP Action is generated with unpattched mirth

Imported Comment. Original Details:
Author: albertosaez
Created: 2012-09-30T10:53:51.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

Thanks!! Haakon: any chance you can test this??

Yours sincerely,

Jan Brogger, MD PhD
developer, co-owner
Holberg EEG AS

 ----- Opprinnelig melding -----
 Fra: "Alberto Torres (JIRA)" <issues@mirthcorp.com>
 Til: jan.brogger@holbergeeg.com
 Dato: Sun, 30 Sep 2012 10:54:57 -0700 (PDT)
 Emne: [JIRA] (MIRTH-2109) Mirth has missing SOAP action

Alberto_Torres commented on [Bug] MIRTH-2109
Mirth_has_missing_SOAP_action
 This problem is related to Java 7. If you run Mirth under
  Java 6, the SOAP Action is generated with unpattched
  mirth
   
 This message is automatically generated by JIRA.
 If you think it was sent incorrectly, please contact your JIRA
 administrators
 For more information on JIRA, see: http://www.atlassian.com/software/
 jira

Imported Comment. Original Details:
Author: janbrogger
Created: 2012-10-03T07:44:58.000-0700

@rbeckman-nextgen
Copy link
Collaborator Author

@rbeckman-nextgen rbeckman-nextgen commented May 11, 2020

Set SOAPACTION_USE_PROPERTY to true.

Imported Comment. Original Details:
Author: jacobb
Created: 2012-11-12T14:31:38.000-0800

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.