Hi Sara,
HAPI is expecting an HTTP 200 response (not 201) and an HL7 content type
(not text/plain), per the HL7 over HTTP specification.
It may be worth checking with OpenHIE developers whether it can be
configured to send the needed content type and status code. If not, you may
end up having to code up a client manually.. Or you could try modifying the
HL7 over HTTP library to be more lenient I suppose.
Cheers,
James
On Wed, Jul 30, 2014 at 1:21 PM, Sara Fatima <sara.mirz...@gmail.com> wrote:
> 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
>
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Hl7api-devel mailing list
> Hl7api-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/hl7api-devel
>
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls.
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Hl7api-devel mailing list
Hl7api-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hl7api-devel