|HTTP (POST) Specifications|
The HTTP POST protocol is the simplest HTTP protocol that HL7Connect supports.
The sender sends HTTP messages to the designated URL using an HTTP post message. The body of the HTTP Message is the HL7 message. The content type of the HTTP message is either text/xml for v2.xml or application/hl7 for vertical bar encoded messages.
If the server cannot process the submitted message for some non-hl7 related reason, it should return an HTTP error code such as 501 etc, along with a text description of the error in the HTTP Response Line. If the client receives any HTTP response other than 200, it should assume that message delivery has failed.
If the server can process the HL7 message, it should do so, and then return the HL7 message in the HTTP Response with a 200 OK Response Code. The body of the HTTP Response Message is the HL7 message. The content type of the HTTP message is either text/xml for v2.xml or application/hl7 for either vertical bar or xml encoded messages.