• Post Reply Bookmark Topic Watch Topic
  • New Topic

Why Axis can't deserialize my object if I write in this way?  RSS feed

 
Yashnoo lyo
Ranch Hand
Posts: 152
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi friends:

I am developing WebService with axis. I want to publish a webservice in server.So I write a method:

See the above code ,the User Object!
After publish this method to web, when client invoke this method,Axis will serialize the User object and deserialize the User object for us. I don't have to declared anything in deploy.wsdd.
But if I change the method to the following :

I new an User object in this method, now Axis couldnd't deserialize the User object! It report an exception when client invoke this method:

So I add typeMapping in deploy.wsdd,But it is not useful ,Axis report that exception too. :-(

What's different between the two web service method?
Why Axis couldn't deserialize the User Object in the second method? Thks! :roll:
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Let's move this to the Web Services forum, where Axis is discussed.
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you used a tool like TCPMon or SOAPMonitor (both of which come with Axis) to look at the raw XML that is transferred over the wire?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!