From: Sara F. <sar...@gm...> - 2014-07-30 20:21:19
|
Hi all, I am using Hapi over http <http://hl7api.sourceforge.net/hapi-hl7overhttp/doc_hapi.html> example to send PIX message to OpenHIE, since OpenHIE expects an XML request, I have passed DefaultXMLParser object to HOHClientSimple. But at line IReceivable<Message> receivable = client.sendAndReceiveMessage(sendable); I am facing below exception. ca.uhn.hl7v2.hoh.api.NonHl7ResponseException: Invalid Content-Type: text/plain. To my knowledge OpenHIE responds with a HTTP 201 status if the sending was successful. However I am not clear what hapi is expecting as a response. Could someone guide me with this? Thanks & Regards Sara Fatima |