• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing Objects through SOAP

 
Ed Wilkinson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am having a problem passing an object through soap from the client and modifying the object's member variables on the server and then passing the object back to the client.
I have a "User" object with a "Name" object in it. When I try to modify the Name object's member variables and pass those results back to the client, none of the changes take effect.
The User objects are instantiated on the server side and stored in a hashtable and when I modify the member variables of Name, I pass back the User object to the client.
I seem to have no problem changing a "userid" variable that is stored within the User object but when I try to edit the Name object, it does not reflect the changes back on the client side.
Any ideas of what I'm doing wrong?
Thanks,
Ed
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you using a custom serializer for the User object? Is the object from the client supposed to replace the stored object or just update it? When does this "modify the member variables of Name" happen?
Bill
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For a bit more background, see here:
http://www.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=33&t=004835
 
Ed Wilkinson
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Bill,
I'm not using a custom serializer for the User object. The object from the client is supposed to replace the one on the server. The modify the Name object occurs after a instance of the User object is instanitiated on the client side.
Ed
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!