web stats
SOAP Web Service Authentication Troubles (Web Service Destination Connector) - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 06-05-2015, 02:36 PM
simonkaluza simonkaluza is offline
What's HL7?
 
Join Date: Jun 2015
Posts: 1
simonkaluza is on a distinguished road
Question SOAP Web Service Authentication Troubles (Web Service Destination Connector)

I'm having trouble authenticating Mirth's requests to my SOAP based web service. Are Mirth's authentication username/password sent via HTTP Basic authentication or WSSE Soap standard authentication?

Though the soap requests are being sent via HTTP correctly, I've inspected these HTTP requests via Wireshark and cannot see any the username/password I've specified being added to the requests. Neither the HTTP headers nor the SOAP Envelope Headers have the username and password on them.

I've also confirmed that the username and password are actually being injected into the Request context via debugging into the Mirth Connect Server Java code (lines 391 - 395 of WebServiceDispatcher.java).

Code:
if (webServiceDispatcherProperties.isUseAuthentication()) {
    String currentUsername = dispatchContainer.getCurrentUsername();
    String currentPassword = dispatchContainer.getCurrentPassword();
    
    dispatch.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, currentUsername);
    dispatch.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, currentPassword);
    logger.debug("Using authentication: username=" + currentUsername + ", password length=" + currentPassword.length());
}
When debugging in Eclipse, I can see that the dispatchContainer.getCurrentUsername() call correctly grabs the right username and the getCurrentPassword() grabs the right password.

Do I have to manually add the username/passwords into my Envelope template in Mirth? If so, what are the accessing properties for these?

Thanks!
Reply With Quote
Reply

Tags
authentication, connect, soap, web service destination

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:03 PM.


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