File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis fails to parse soap message Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "Axis fails to parse soap message" Watch "Axis fails to parse soap message" New topic
Author

Axis fails to parse soap message

Andrey Karachoun
Greenhorn

Joined: Jan 14, 2003
Posts: 7
Hi guys,

I'm new to web services development and currently stuck with following problem:

1. Got the following WSDL:


2. Generated java classes from WSDL by using WSDL2Java Axis tool.

3. Executed createSessionWithLoginCall - call is processed OK.

4. Axis fails to parse server response createSessionWithLoginResponse:


5. From log I can see that there are pbs with parsing session element, but I don't understand the cause:


What's wrong with that? Please help me.
Thanks.
Rr Kumaran
Ranch Hand

Joined: Sep 17, 2001
Posts: 548
if u r using custom java classes as method arguments and return types then you need to register then using <Call class object>.registerTypeMapping() method in the web service client program


RR Kumaran
SCJP 1.4
Andrey Karachoun
Greenhorn

Joined: Jan 14, 2003
Posts: 7
I've resoved the problem -- it was incorrect WSDL, simple type Session instead of complex type. With WSDL like this all works fine.


Thanks again.
 
IntelliJ Java IDE
 
subject: Axis fails to parse soap message
 
Threads others viewed
Axis rejects int parameter
How to restrict the logs generated in runtime by axis API
Axis issues
SOAPMessage Frights
NullPointerException returned from webservice
developer file tools