web stats
Mirth Web Server XML Error - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 04-13-2012, 01:58 AM
Han Stehmann Han Stehmann is offline
What's HL7?
 
Join Date: Apr 2012
Posts: 5
Han Stehmann is on a distinguished road
Default Mirth Web Server XML Error

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 ?
Reply With Quote
  #2  
Old 04-13-2012, 06:52 AM
Han Stehmann Han Stehmann is offline
What's HL7?
 
Join Date: Apr 2012
Posts: 5
Han Stehmann is on a distinguished road
Default

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 )
Reply With Quote
  #3  
Old 05-04-2012, 10:48 AM
mdehoog mdehoog is offline
OBX.3 Kenobi
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 113
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

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)
__________________
Chateau de Roqueperlic
Noailhac Tarn France
http://www.roqueperlic.com
Reply With Quote
  #4  
Old 05-04-2012, 10:52 AM
mdehoog mdehoog is offline
OBX.3 Kenobi
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 113
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

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>
__________________
Chateau de Roqueperlic
Noailhac Tarn France
http://www.roqueperlic.com
Reply With Quote
  #5  
Old 05-05-2012, 01:36 AM
mdehoog mdehoog is offline
OBX.3 Kenobi
 
Join Date: Mar 2011
Location: Apeldoorn the Netherlands
Posts: 113
mdehoog is on a distinguished road
Send a message via Skype™ to mdehoog
Default

got a message from Mirth the problem should be solved with version 3. So .. release date pls??
__________________
Chateau de Roqueperlic
Noailhac Tarn France
http://www.roqueperlic.com
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 06:46 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Mirth Corporation