|
#1
|
|||
|
|||
|
Hi !
I'm new to Mirth and tried to set it up as a simple Web Service listener like following example: https://www.youtube.com/watch?v=T8IwPVdv1q8 But I got this error: [2012-04-13 10:24:33,725] ERROR (com.sun.xml.internal.ws.transport.http.HttpAdapte r:27): Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Premature end of file. com.sun.xml.internal.ws.protocol.soap.MessageCreat ionException: Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]Message: Premature end of file. at com.sun.xml.internal.ws.encoding.SOAPBindingCodec. decode(Unknown Source) at com.sun.xml.internal.ws.transport.http.HttpAdapter .decodePacket(Unknown Source) at com.sun.xml.internal.ws.transport.http.HttpAdapter .access$500(Unknown Source) at com.sun.xml.internal.ws.transport.http.HttpAdapter $HttpToolkit.handle(Unknown Source) at com.sun.xml.internal.ws.transport.http.HttpAdapter .handle(Unknown Source) at com.sun.xml.internal.ws.transport.http.server.WSHt tpHandler.handleExchange(Unknown Source) at com.sun.xml.internal.ws.transport.http.server.WSHt tpHandler.handle(Unknown Source) at com.sun.net.httpserver.Filter$Chain.doFilter(Unkno wn Source) at sun.net.httpserver.AuthFilter.doFilter(Unknown Source) at com.sun.net.httpserver.Filter$Chain.doFilter(Unkno wn Source) at sun.net.httpserver.ServerImpl$Exchange$LinkHandler .handle(Unknown Source) at com.sun.net.httpserver.Filter$Chain.doFilter(Unkno wn Source) at sun.net.httpserver.ServerImpl$Exchange.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run Task(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run (Unknown Source) at java.lang.Thread.run(Unknown Source)Caused by: com.sun.xml.internal.ws.streaming.XMLStreamReaderE xception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]Message: Premature end of file. at com.sun.xml.internal.ws.streaming.XMLStreamReaderU til.wrapException(Unknown Source) at com.sun.xml.internal.ws.streaming.XMLStreamReaderU til.next(Unknown Source) at com.sun.xml.internal.ws.streaming.XMLStreamReaderU til.nextContent(Unknown Source) at com.sun.xml.internal.ws.streaming.XMLStreamReaderU til.nextElementContent(Unknown Source) at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.d ecode(Unknown Source) at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.d ecode(Unknown Source) at com.sun.xml.internal.ws.encoding.StreamSOAPCodec.d ecode(Unknown Source) ... 16 moreCaused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]Message: Premature end of file. at com.sun.org.apache.xerces.internal.impl.XMLStreamR eaderImpl.next(Unknown Source) at com.sun.xml.internal.ws.util.xml.XMLStreamReaderFi lter.next(Unknown Source) ... 22 more I use Visual Studio 2010, and wrote a C# program much like the YouTube example. The C# program will timeout calling the acceptMessage method. To be complete here's the C# code (but there's no error here) Code:
private void button1_Click(object sender, EventArgs e)
{
textBox2.Clear();
string sendString = textBox1.Text;
MirthWebReference.DefaultAcceptMessageService ws;
try
{
ws = new MirthWebReference.DefaultAcceptMessageService();
string returnedString = ws.acceptMessage(sendString);
textBox2.Text = returnedString;
}
catch (Exception ex)
{
textBox2.Text = ex.Message;
}
}
Maybe I'm missing something very basic here... Anyone have a clue ? |
|
#2
|
|||
|
|||
|
If I use 'listen on all interfaces' and not use my ip address it works ! (Also recreated the Web Service in my C# program , app.config, so that it looks for http://localhost:8099/services/Mirth )
|
|
#3
|
|||
|
|||
|
I got the same error. It doesnt matter if I use 'listen on all interfaces' or not.
If the .Net applicaton uses the proxy server of my provider I get this error, if not it works ok. I don't have this problem if I connect from the same client, via the same proxy server to a .Net web service on the same server. The .net client gives me the message that the connection unexpected is clozed. this is my .Net code: myService.Proxy = New System.Net.WebProxy(ProxyServer, ProxyPort) myService.Timeout = -1 ' infinite time out. Dim MessageString = myService.acceptMessage(UploadStr) |
|
#4
|
|||
|
|||
|
Mirth gives:
[2012-05-04 19:44:41,521] ERROR (com.sun.xml.internal.ws.transport.http.HttpAdapte r:27): Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1] Message: Premature end of file. com.sun.xml.internal.ws.protocol.soap.MessageCreat ionException: Couldn't create SOAP message due to exception: XML reader error: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1,1]Message: Premature end of file. Dont understand the Message: Premature end of file. This is the file: <Export type="ABPM"> <edifactaddress>HA_Ediaddress</edifactaddress> <Limits> <SngSysNight>125</SngSysNight> </Limits> </Export> |
|
#5
|
|||
|
|||
|
got a message from Mirth the problem should be solved with version 3. So .. release date pls??
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|