[SoapRMI] [SPAM:# 51%] =?iso-8859-1?Q?Re:_[SoapRMI]_generic_object?=

nodep@libero.it nodep_at_libero.it
Wed, 23 Oct 2002 21:50:28 +0200


> "nodep_at_libero.it" wrote:
> 
> > Hi, I'm an italian student (University of Padova - Italy)
> > and I would like to know if soapRMI (XSOAP) can to transport
> > generic object (as parameter).
> 
> hi,
> 
> what do you mean by generic object? if want to transport
> arbitrary XML fragment  for an example of how to use it
> please see ogsa.GridServiceImpl in XSOAP samples directory.
> method converStringToXmlTree() can be used to convert
> any XML fragment to XML node tree that can be sent
> and received easily.
> 
> let me know if there is anything different that you need.
> 
> thanks,
> 
> alek
> 

(--I send again, I don't Know if the previous is arrived--)

Hi,
I mean that I need to pass, as parameter, an object
but his ".class" reside only on the client side
and I would the server bring the copy of 
the object (received as parameter) and do
something with it.

Something like:

(Client-side)
....
Service serverRef = (Service) Naming.lookup(name);
myobject mo=new myobject();
Object answer=serverRef.dosomething(mo);
....

(Server-side)
public interface Service extends Remote
{
	public Object dosomething(myobject o) throws RemoteException;
}


A question linked with this problem is: is there in XSOAP a 
ClassLoader 
like java.rmi.server.RMIClassLoader?

(I hope I've explained my problem...)

Thanks!

Stefano Pedon