• Post Reply Bookmark Topic Watch Topic
  • New Topic

Remote references

 
m faruqui
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Does SOAP have PassByValue or BassByReference when it comes to objects?How does one use remote references when using SOAP?
In CORBA (or RMI) one would do
AccountManager acctMgr = (AccountManager)bind(..... ETC);
Account acct = acctMgr.open("SwissAcct");
The Account "object" returned would be a remote reference, a Stub. What would happen in SOAP? If SOAP returns "by value" I would get an Account object with fields like NAME and BALANCE. Else I would get a Remote reference (what would that be like?!)
Thanks,
m faruqui
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Everything in SOAP is by necessity pass-by-value. There are no pass-by-reference semantics in SOAP. That's because WSDL port types don't define variables (so they can't be related to each other). Web Services are purely stateless in that regard.
You wouldn't build a Web service in the way you describe. Instead the closest analogy might be to get back a local Account object from the account manager, fill in the changed bits, and then ask the Remote account manager to update the account.
Kyle
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!