Axis Webservice Java Syntax Parsing Error

My server is a Drupal website with a service module and a soap server. The web service allows the user to log in and create or receive news.

I tested the service with SOAPUi and it works great. Wsdl is generated by the soap server and returns the structure to the client.

I used the axis to create the stub class. I use it to create a client, but when I call the " serviceStub.user_soap_login(login);" method on my web service, I got this error

org.apache.axis2.AxisFault: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.
 at [row,col {unknown-source}]: [2,275]
    at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
    at soap_server.Soap_server_serviceStub.fromOM(Soap_server_serviceStub.java:5035)
    at soap_server.Soap_server_serviceStub.user_soap_login(Soap_server_serviceStub.java:1027)
    at soap_server.test.main(test.java:67)
Caused by: org.apache.axiom.om.impl.exception.OMStreamingException: com.ctc.wstx.exc.WstxParsingException: Expected a text token, got START_ELEMENT.

thank

+3
source share

All Articles