Over a million developers have joined DZone.

WSO2 ESB with HL7 (sample)

DZone's Guide to

WSO2 ESB with HL7 (sample)

· Integration Zone
Free Resource

Discover how Microservices are a type of software architecture where large applications are made up of small, self-contained units working together through APIs that are not dependent on a specific language. Brought to you in partnership with AppDynamics.

I had missed one of the posts that I was planning to write some weeks ago. It is about a simple HL7 use case with WSO2 ESB.

This post will explain a simple HL7 message passing method through a WSO2 ESB proxy.

  • In  Here I am using
    - WSO2 ESB 4.6.0
    - hl7browser[1] to send HL7 messages.

1. Firstly you have to enable the HL7 Transport for WSO2 ESB (Here is steps)

2. Then Start HL7 client where to accept our message that is sending from ESB. Give below command in <wso2esb-4.6.0>\samples\axis2Client "ant hl7acceptor"


3. Start HL7 enabled ESB and login in to it.

4. Create HL7ServerProxy and below is the proxy code

5. Start the “hl7browser” and open HL7 message to send (Here is sample message (message header segment) that I am going to send) [2]MSH|^~\&|MYLAB|NEGOMBOFAC|MAINHOS|WSO2|20130503114341.7631+


6. Click validate message to validate and then click on “run the network utility” 

7. Give host <wso2 esb host/ip> and and port <ESB hl7 porxy port>, Then Click on connect


8. Send the HL7 Message to wso2  ESB


Go to ESB console you can see message


[1] http://freecode.com/projects/hl7browser


Discover the six challenges and best practices in managing microservice performance, brought to you in partnership with AppDynamics.


Published at DZone with permission of Madhuka Udantha, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

The best of DZone straight to your inbox.

Please provide a valid email address.

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}