Hi everybody.
I get an error sending an HL7 from one channel to another via web service if I have to send an special character in that message.
In the soap envelope I write this:
<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<acceptMessage xmlns="http://DefaultNamespace">
<in0>${encoder.encode(${message.transformedData})} </in0>
</acceptMessage>
</soap:Body>
</soap:Envelope>
The receiving channel gives the following error if I need to send an special charater, "í". Iguess it is problem of the entity encoder but i don't know how to solve it.
Thanks in advance.
org.xml.sax.SAXParseException: The entity "Iacute" was referenced, but not declared.
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.AxisFault.makeFault(AxisFault.java :101)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:701)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.Message.getSOAPEnvelope(Message.ja va:424)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.client.Call.invoke(Call.java:2679)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.client.Call.invoke(Call.java:1862)
INFO | jvm 1 | 2007/06/11 17:27:28 | at com.webreach.mirth.server.mule.providers.soap.axis .AxisMessageDispatcher.invokeWebService(AxisMessag eDispatcher.java:225)
INFO | jvm 1 | 2007/06/11 17:27:28 | at com.webreach.mirth.server.mule.providers.soap.axis .AxisMessageDispatcher.doSend(AxisMessageDispatche r.java:254)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:166)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:89)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(OutboundMessageRouter.java:78)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:48)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.OutboundMessageRouter.ro ute(OutboundMessageRouter.java:82)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul tMuleProxy.java:247)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.model.seda.SedaComponent.doSend(Seda Component.java:209)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.model.AbstractComponent.sendEvent(Ab stractComponent.java:277)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.inbound.InboundMessageRouter.send (InboundMessageRouter.java:161)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:128)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:234)
INFO | jvm 1 | 2007/06/11 17:27:28 | at com.webreach.mirth.server.mule.providers.jdbc.Jdbc MessageReceiver.processMessage(JdbcMessageReceiver .java:149)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.TransactedPollingMessageReceive r$MessageProcessorWorker.doInTransaction(Transacte dPollingMessageReceiver.java:159)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:72)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.TransactedPollingMessageReceive r$MessageProcessorWorker.run(TransactedPollingMess ageReceiver.java:149)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
INFO | jvm 1 | 2007/06/11 17:27:28 | at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
INFO | jvm 1 | 2007/06/11 17:27:28 | at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
INFO | jvm 1 | 2007/06/11 17:27:28 | at java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | Caused by: org.xml.sax.SAXParseException: The entity "Iacute" was referenced, but not declared.
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.util.ErrorHandlerWrapper.fatalEr ror(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLScanner.reportFatalError (Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanEntityReference(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.encoding.DeserializationContext.pa rse(DeserializationContext.java:227)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:696)
INFO | jvm 1 | 2007/06/11 17:27:28 | ... 30 more
I get an error sending an HL7 from one channel to another via web service if I have to send an special character in that message.
In the soap envelope I write this:
<?xml version="1.0" encoding="utf-16"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
<acceptMessage xmlns="http://DefaultNamespace">
<in0>${encoder.encode(${message.transformedData})} </in0>
</acceptMessage>
</soap:Body>
</soap:Envelope>
The receiving channel gives the following error if I need to send an special charater, "í". Iguess it is problem of the entity encoder but i don't know how to solve it.
Thanks in advance.
org.xml.sax.SAXParseException: The entity "Iacute" was referenced, but not declared.
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.AxisFault.makeFault(AxisFault.java :101)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:701)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.Message.getSOAPEnvelope(Message.ja va:424)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.client.Call.invoke(Call.java:2679)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.client.Call.invoke(Call.java:1862)
INFO | jvm 1 | 2007/06/11 17:27:28 | at com.webreach.mirth.server.mule.providers.soap.axis .AxisMessageDispatcher.invokeWebService(AxisMessag eDispatcher.java:225)
INFO | jvm 1 | 2007/06/11 17:27:28 | at com.webreach.mirth.server.mule.providers.soap.axis .AxisMessageDispatcher.doSend(AxisMessageDispatche r.java:254)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageDispatcher.send( AbstractMessageDispatcher.java:166)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:191)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:130)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.AbstractOutboundRouter.s end(AbstractOutboundRouter.java:85)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.FilteringMulticastingRou ter.route(FilteringMulticastingRouter.java:89)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.OutboundMessageRouter$1. doInTransaction(OutboundMessageRouter.java:78)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:48)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.outbound.OutboundMessageRouter.ro ute(OutboundMessageRouter.java:82)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.model.DefaultMuleProxy.onCall(Defaul tMuleProxy.java:247)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.model.seda.SedaComponent.doSend(Seda Component.java:209)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.model.AbstractComponent.sendEvent(Ab stractComponent.java:277)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.MuleSession.sendEvent(MuleSession.ja va:201)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.inbound.InboundMessageRouter.send (InboundMessageRouter.java:161)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.routing.inbound.InboundMessageRouter.rout e(InboundMessageRouter.java:128)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageReceiver$Default InternalMessageListener.onMessage(AbstractMessageR eceiver.java:492)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:271)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.AbstractMessageReceiver.routeMe ssage(AbstractMessageReceiver.java:234)
INFO | jvm 1 | 2007/06/11 17:27:28 | at com.webreach.mirth.server.mule.providers.jdbc.Jdbc MessageReceiver.processMessage(JdbcMessageReceiver .java:149)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.TransactedPollingMessageReceive r$MessageProcessorWorker.doInTransaction(Transacte dPollingMessageReceiver.java:159)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.transaction.TransactionTemplate.execute(T ransactionTemplate.java:72)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.providers.TransactedPollingMessageReceive r$MessageProcessorWorker.run(TransactedPollingMess ageReceiver.java:149)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.mule.impl.work.WorkerContext.run(WorkerContext .java:290)
INFO | jvm 1 | 2007/06/11 17:27:28 | at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.runTask(ThreadPoolExecutor. java:650)
INFO | jvm 1 | 2007/06/11 17:27:28 | at edu.emory.mathcs.backport.java.util.concurrent.Thr eadPoolExecutor$Worker.run(ThreadPoolExecutor.java :675)
INFO | jvm 1 | 2007/06/11 17:27:28 | at java.lang.Thread.run(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | Caused by: org.xml.sax.SAXParseException: The entity "Iacute" was referenced, but not declared.
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.util.ErrorHandlerWrapper.createS AXParseException(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.util.ErrorHandlerWrapper.fatalEr ror(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLErrorReporter.reportErro r(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLScanner.reportFatalError (Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanEntityReference(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl$FragmentContentDispatcher.dispatch(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.impl.XMLDocumentFragmentScannerI mpl.scanDocument(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.XML11Configuration.parse (Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.parsers.AbstractSAXParser.parse( Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser .parse(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.encoding.DeserializationContext.pa rse(DeserializationContext.java:227)
INFO | jvm 1 | 2007/06/11 17:27:28 | at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPar t.java:696)
INFO | jvm 1 | 2007/06/11 17:27:28 | ... 30 more