I'm trying to use an HTTP Listener, but if my client includes XML as the content body of the HTTP request, I get an exception as follows:
com.webreach.mirth.server.mule.transformers.HttpSt ringToXML: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
It looks like the HttpStringToXML class tries to encode all the HTTP headers and query parameters into an XML form, and that POSTing straight XML (the message I want processed) in the body of the request is a no go.
Do I assume from this that you have to put your message into a request parameter?
In a browser, it would be encoded in a URL something like:
http://mirthmachine:8081?mymsg=HL7orXMLcontenthere
Is that correct? If so, that's ugly, since you then have to encode the data.
Is there any way to avoid using request parameters and just do a POST to the base URL of http://mirthmachine:8081 (in my example) with the raw message data as the content of the POST request?
Thanks!
com.webreach.mirth.server.mule.transformers.HttpSt ringToXML: org.w3c.dom.DOMException: INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.
It looks like the HttpStringToXML class tries to encode all the HTTP headers and query parameters into an XML form, and that POSTing straight XML (the message I want processed) in the body of the request is a no go.
Do I assume from this that you have to put your message into a request parameter?
In a browser, it would be encoded in a URL something like:
http://mirthmachine:8081?mymsg=HL7orXMLcontenthere
Is that correct? If so, that's ugly, since you then have to encode the data.
Is there any way to avoid using request parameters and just do a POST to the base URL of http://mirthmachine:8081 (in my example) with the raw message data as the content of the POST request?
Thanks!
Comment