aspose 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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Axis fails to parse soap message
 
Similar Threads
Axis rejects int parameter
Axis issues
How to restrict the logs generated in runtime by axis API
SOAPMessage Frights
NullPointerException returned from webservice