• Post Reply Bookmark Topic Watch Topic
  • New Topic

Axis fails to parse soap message  RSS feed

 
Andrey Karachoun
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Andrey Karachoun
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!