Wow! Thanks for the tip!!! I was stuck on this same error for a while!!! Disabling Kaspersky fixed it for me too George Stanchev
________________________________ From: Harald Herrmann [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 6:17 AM To: [email protected] Subject: Re: [Axis2] com.ctc.wstx.exc.WstxEOFException It seems like Kaspersky Internet Security 6 ist cutting off the request body. After uninstallation things work well. Martin Gainty schrieb: Moxo/Hermann for verifying proper response for method getVersion as a quick check can you go to your version wsdl located at http://localhost:8080/axis2/services/version?wsdl your prolog should look something like <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:axis2="http://ws.apache.org/axis2" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:ns0="http://axisversion.sample/xsd" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:ns1="http://org.apache.axis2/xsd" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" targetNamespace="http://ws.apache.org/axis2"> any whitespace characters (space,tab,any non-displayable characters) before <wsdl:definitions would cause the parser to think that is an EOF char then display the element within your wsdl labeled 'getVersionResponse' you *should* have an element that looks somewhat similar to - <http://localhost:8080/axis2/services/version?wsdl#> <xs:element name="getVersionResponse"> - <http://localhost:8080/axis2/services/version?wsdl#> <xs:complexType> - <http://localhost:8080/axis2/services/version?wsdl#> <xs:sequence> <xs:element type="xs:string" name="return" /> </xs:sequence> </xs:complexType> </xs:element> Thanks, M- --------------------------------------------------------------------------- This e-mail message (including attachments, if any) is intended for the use of the individual or entity to which it is addressed and may contain information that is privileged, proprietary , confidential and exempt from disclosure. If you are not the intended recipient, you are notified that any dissemination, distribution or copying of this communication is strictly prohibited. --------------------------------------------------------------------------- Le présent message électronique (y compris les pièces qui y sont annexées, le cas échéant) s'adresse au destinataire indiqué et peut contenir des renseignements de caractère privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. ----- Original Message ----- From: moxi moxi <mailto:[EMAIL PROTECTED]> To: [email protected] Sent: Saturday, December 16, 2006 12:06 PM Subject: Re: [Axis2] com.ctc.wstx.exc.WstxEOFException I have the same problem, I wrote a dotNET client, !surprise my WebService is working!, the problem is when I call webservice with the generated stub classes(Axis2, release 1.1). org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308) at ... 2006/12/15, Harald Herrmann <[EMAIL PROTECTED] >: Hi everyone, Here's some additional info to my problem: I made a simple but interesting experiment: I wrote a HTML form to post something to the webservice and debugged the AxisServlet.doPost() method as before. This time the InputStream contained the data I posted. The webservice failed of course, as the posted data was no valid soap request. But something seems to cut off the request body if it's containing XML. Regards, H. Herrmann Hi everyone, I get following exception as response when accessing the Version webservice from the Axis 2-1.1 distribution: org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog at [row,col {unknown-source}]: [1,0] at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:308) at sample.axisversion.VersionStub.getVersion(VersionStub.java:155) at Test.start(Test.java:11) at Test.main(Test.java:18) I generated the stub classes with wsdl2java and wrote following test class: import sample.axisversion.VersionStub; import sample.axisversion.VersionStub.GetVersionResponse; public class Test { public void start() throws Exception { VersionStub versionStub = new VersionStub("http://localhost:8080/axis2/services/Version" <http://localhost:8080/axis2/services/Version> ); GetVersionResponse response = versionStub.getVersion(); System.out.println(response.get_return()); } public static void main(String[] args) throws Exception{ Test test = new Test(); test.start(); } } This is my system: Windows XP (SP2) Java 1.5.0 Update 10 Apache Tomcat 6.0.2 Axis 2-1.1 webapp (from war file) Tomcat starts up without error messages, and the Axis2 webapp is available. The Version service and its operation getVersion is listed and marked as active. The validation page shows following message: There was a problem in Axis2 version service , may be the service not available or some thing has gone wrong. But this does not mean system is not working ! Try to upload some other service and check to see whether it is working. The rest of this page seems to be ok (I also get the message "The core axis2 libraries are present."). I did some debugging and found out that in the AxisServlet.doPost()-method the HttpServletRequest's InputStream is empty. I checked the communication with TCPMon - but the request seemed to be ok. Here are the messages: Request: POST /axis2/services/Version HTTP/1.1 User-Agent: Axis2 Host: 127.0.0.1:8888 Transfer-Encoding: chunked Content-Type: application/soap+xml; charset=UTF-8;action="urn:getVersion"; c0 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" <http://www.w3.org/2003/05/soap-envelope> ><soapenv:Header /><soapenv:Body><getVersion /></soapenv:Body></soapenv:Envelope> 0 Response: HTTP/1.1 500 Internal Server Error Server: Apache-Coyote/1.1 Set-Cookie: JSESSIONID=63E04CA3673054DE46016A969755DF4B; Path=/axis2 Content-Type: application/soap+xml;charset=UTF-8 Transfer-Encoding: chunked Date: Fri, 15 Dec 2006 16:43:19 GMT Connection: close 320 <?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:wsa="http://www.w3.org/2005/08/addressing" <http://www.w3.org/2005/08/addressing> xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" <http://www.w3.org/2003/05/soap-envelope> ><soapenv:Header><wsa:ReplyTo><wsa:Address> http://www.w3.org/2005/08/addressing/none</wsa:Address></wsa:ReplyTo><wsa:MessageID>urn:uuid:759F1D5C854B55ED1511662009998903</wsa:MessageID><wsa:Action> http://www.w3.org/2005/08/addressing/soap/fault</wsa:Action></soapenv:Header><soapenv:Body><soapenv:Fault><soapenv:Code><soapenv:Value>soapenv:Sender</soapenv:Value></soapenv:Code><soapenv:Reason><soapenv:Text xml:lang="en-US">com.ctc.wstx.exc.WstxEOFException: Unexpected EOF in prolog
 at [row,col {unknown-source}]: [1,0]</soapenv:Text></soapenv:Reason><soapenv:Detail></soapenv:Detail></soapenv:Fault></soapenv:Body></soapenv:Envelope> 0 Does anyone have a clue? Thanks and best regards, H. Herrmann -- ► TourismusSuite - Ihre Destination im Griff ++ Internet Booking Engine ++ Touristisches Content Management ++ Destinations Management Erfahren Sie mehr unter www.tourismussuite.com <http://www.tourismussuite.com> -- Harald Herrmann Backend / Entwicklung inexweb ralf emanuel GmbH Hellersbergstraße 2a D-41460 Neuss Fon: +49 (0) 21 31 / 3 66 60-84 Fax: +49 (0) 21 31 / 3 66 60-88 www.inexweb.de <http://www.inexweb.de> -- ► TourismusSuite - Ihre Destination im Griff ++ Internet Booking Engine ++ Touristisches Content Management ++ Destinations Management Erfahren Sie mehr unter www.tourismussuite.com <http://www.tourismussuite.com> -- Harald Herrmann Backend / Entwicklung inexweb ralf emanuel GmbH Hellersbergstraße 2a D-41460 Neuss Fon: +49 (0) 21 31 / 3 66 60-84 Fax: +49 (0) 21 31 / 3 66 60-88 www.inexweb.de <http://www.inexweb.de> ********************************************************************** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.
