Web Service Sender

lundi 6 octobre 2014

Like many of you guys said Mirth doesn't allow yet to get data from remote web services. So to simulate this we could have a simple JavaScript Reader with two destinations. One that is a Web Service Sender that sends a request and another one to read it and deal with the response. I tried this for hours and it's always giving me the same error.



In the Web Service Sender I inserted the right parameters since I tested them using other software and generated an envelope according to the action I wanted. And when I deploy the channel this error persists.



This is the Soap Envelope:




Quote:








<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:ede="http://edeia.com">

<soap:Header>

<ede:SoapHeaderAutenticacao>

<!--Optional:-->

<ede:Utilizador>Externo</ede:Utilizador>

<!--Optional:-->

<ede:Password>12345</ede:Password>

<!--Optional:-->

<ede:SistemaExterno></ede:SistemaExterno>

</ede:SoapHeaderAutenticacao>

</soap:Header>

<soap:Body>

<ede:ObtemEstadoProcesso>

<ede:idInterno>62</ede:idInterno>

<!--Optional:-->

<ede:idExterno></ede:idExterno>

<!--Optional:-->

<ede:idExterno2></ede:idExterno2>

</ede:ObtemEstadoProcesso>

</soap:Body>

</soap:Envelope>



And this is the error. If you could help me guys I would be so thankful.




Quote:








ER7Serializer error

ERROR MESSAGE: Error converting ER7 to XML

org.xml.sax.SAXException: Unable to parse message. It is NULL or too short. 0.0

at com.mirth.connect.plugins.datatypes.hl7v2.ER7Reade r.parse(ER7Reader.java:63)

at com.mirth.connect.plugins.datatypes.hl7v2.ER7Seria lizer.toXML(ER7Serializer.java:213)

at com.mirth.connect.donkey.server.channel.FilterTran sformerExecutor.processConnectorMessage(FilterTran sformerExecutor.java:91)

at com.mirth.connect.donkey.server.channel.Destinatio nChain.call(DestinationChain.java:178)

at com.mirth.connect.donkey.server.channel.Channel.pr ocess(Channel.java:1428)

at com.mirth.connect.donkey.server.channel.Channel.di spatchRawMessage(Channel.java:956)

at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:175)

at com.mirth.connect.donkey.server.channel.SourceConn ector.dispatchRawMessage(SourceConnector.java:152)

at com.mirth.connect.connectors.js.JavaScriptReceiver .poll(JavaScriptReceiver.java:98)

at com.mirth.connect.donkey.server.channel.PollConnec tor$PollConnectorTask.run(PollConnector.java:141)

at java.util.TimerThread.mainLoop(Unknown Source)

at java.util.TimerThread.run(Unknown Source)








Web Service Sender

0 commentaires:

Enregistrer un commentaire