Forum Discussion

vvc5042_164605's avatar
vvc5042_164605
Icon for Nimbostratus rankNimbostratus
Sep 10, 2014

SOAP/XML reader error: Unexpected EOF in prolog

Hi, I'm attempted to use sideband to send a HTTP POST binding and the XML data with it. Only the POST binding seems to be sent with an unexpected EOF occurring which cuts off the XML data I am also sending.

"POST http://1.1.1.1:9090/host/service HTTP/1.1\r\nAccept-Ending: gzip,deflate\r\nContent-Type: text/xml;charset=UTF-t\r\nSOAPAction: \"https://www.oasis-open.org/committees/security\"\r\nTransfer-Encoded: chunked\r\nHost: 1.1.1.1:9090\r\nConnection: Keep-Alive\r\nUser-Agent: Apache-HttpClient/4.1.1 (java 1.5)\r\n\r\n<\?xml version=\"1.0\" encoding==\:UTF-8\"\?>"

Analyzing the result from the tcpdump file in wireshark shows that only the information from POST to (java 1.5) is sent.

The exact error is: "Couldn't create SOAP message due to exception: XML reader error: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog "

The POST binding and SOAP message is copied from a tested SoapUI project so I am not sure where the error is occuring.

2 Replies

  • Had some trouble editing, the correct code is "POST http://1.1.1.1:9090/host/service HTTP/1.1\r\nAccept-Ending: gzip,deflate\r\nContent-Type: text/xml;charset=UTF-8\r\nSOAPAction: \"https://www.oasis-open.org/committees/security\"\r\nTransfer-Encoded: chunked\r\nHost: 1.1.1.1:9090\r\nConnection: Keep-Alive\r\nUser-Agent: Apache-HttpClient/4.1.1 (java 1.5)\r\n\r\n<\?xml version=\"1.0\" encoding=\"UTF-8\"\?>"