Please log a Jira.. If possible attach your client as well..

~Thilina

On 12/16/06, moxi moxi <[EMAIL PROTECTED]> wrote:
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";);
>             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";><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";
xmlns:soapenv="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&#xd;
>      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 --
> 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




--
Thilina Gunarathne
WSO2, Inc.; http://www.wso2.com/
Home page: http://webservices.apache.org/~thilina/
Blog: http://thilinag.blogspot.com/

Reply via email to