File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes can web service method return result by reference? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "can web service method return result by reference?" Watch "can web service method return result by reference?" New topic
Author

can web service method return result by reference?

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
i wader if i have simple method that is part of class that converted to web service
can this method return objects by reference ?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41155
    
  45
A reference (i.e., a pointer) to an object is only valid within one JVM. Once an object has been serialized in some form (like into SOAP) and sent somewhere else, a reference to it has no meaning, so the answer is no.


Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: can web service method return result by reference?
 
Similar Threads
regarding return types
how to pass custom objects to web service methods as parameters ?
Return type of web service..
create java application web service client get wrong return value from php web service
After creating WSDL-to-JAVA what i need to do in RAD IDE?