• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

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

 
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:
 
Rancher
Posts: 43009
76
  • 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: 43009
76
  • 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?
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!