Re: [HAPI-devel] Sending over HTTP issues

2014-07-24 Thread James Agnew
This just means that the server is replying with the wrong content type. Next step would be to find out why the server isn't using an HL7 content type in their response. sent from my phone. On Jul 23, 2014 1:14 PM, "Sara Fatima" wrote: > Hi James, > > As you suggested, I am passing DefaultXMLPar

Re: [HAPI-devel] Sending over HTTP issues

2014-07-23 Thread Sara Fatima
Hi James, As you suggested, I am passing DefaultXMLParser object to HohClientSimple constructor. // Create a parser Parser parser = new DefaultXMLParser(); // Create a client HohClientSimple client = new HohClientSimple(host,port,uri,parser); However at below line, IReceivable re

Re: [HAPI-devel] Sending over HTTP issues

2014-07-22 Thread James Agnew
Hi Sara, To send XML encoded messages, you need to pass an instance of DefaultXMLParser into the constructor of HohClientSimple. The client internally uses whatever parser it is passed (the sample you linked to uses a pipe parser) to encode the message object. Cheers, James On Tue, Jul 22, 2014

[HAPI-devel] Sending over HTTP issues

2014-07-22 Thread Sara Fatima
Hi all, I am using this example to send hl7 message over http. My aim is to send a PIX message to an OpenHIE end point. The message is being send to the below host: - Host: iol.sandbox.ohie.org - Port: 5001 - Basic auth detai