I am new to restful web services.I have created small programs to communicate between client and server,but i am not able to send HL7 messages over restful web services.
I have implemented RESTFul web services using Jersey 1.x and have referred the following site: mkyong.com/tutorials/jax-rs-tutorials/
Kindly provide me some examples to implement HL7 messages(HAPI) using Restful web services.
What, specifically, are you seeking help with? HL7 messages are either text (v2) or XML (v3), so there should be no problem in sending them in the body of a REST response. REST requests are generally made via GET, though, so there is no body and you can't send a message that way. (How to create such a message is outside of what can be explained in a forum post, in case that's what you're asking.)
I question the use of REST, though - given the sensitive nature of HL7 content, SOAP with its much better security features (in the shape of WS-Security) would be better choice.
Thanks for your prompt response.Actually i want to send and receive HL7 v2 messages(HAPI) over restful web services(Jersey 1.x).But i dont know how to implement it.
I have programs in restful web services to send request and receive response,but when i am trying to merge the HL7 code in my program i am not able to do so.I have referred examples from http://www.mkyong.com/tutorials/jax-rs-tutorials/ and http://hl7api.sourceforge.net/devbyexample.html.
Kindly suggest me some examples.
this is my code
and this is the web.xml file
and i want to merge this HL7 code into my restful web service code:
Can you suggest me what i can do to make my program work,also what and all jars are required....
Thanks in advance
Joined: Mar 22, 2005
Actually i want to send and receive HL7 v2 messages(HAPI) over restful web services(Jersey 1.x).
Yes, that's what you said in your first post, but I'm questioning the wisdom of using REST. What are the security requirements for this project? How sensitive is the data being sent? Do you understand the differences between securing a REST WS and securing a SOAP WS?
but when i am trying to merge the HL7 code in my program i am not able to do so.
What does "not able to" mean? What have you tried so far, and where are you stuck making progress? Looking at the HelloWorldService class, I see nothing that has anything to do with your problem...?