Deserializers For Custom Objects !!
843834Jul 15 2002 — edited Aug 6 2002
In case of a web service client , how will I register deserializers for
custom objects ( defined by the web services ) so that the client do not get deserialization erros for those custom object ??
The above question can be illustrated as : The "Hello World" examples at the address below uses a String to return back to the client.
http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXRPC3.html#63872
The above example is from web service tutorial.
Instead of String , if I want to return the following object ..
public class HelloResult
{
private mMessage = new String();
public HelloResult()
{
}
public setMessage(String aMessage)
{
mMessage = aMessage;
}
public String getMessage()
{
return mMessage;
}
}
How will my client change given the fact that Hello World services "sayHello" method returns "HelloResult" object ??
I am hopping that from the above example I will be able to get some answers for the following problem ...
a) If I want to access an existing web service which has its wsdl publisher , the client has to tun xrpcc.bat file with config.xml file pointing to the published wsdl. Therefore , the Custom Objects returned from the web services if any , needs to be registered externally by the client ( I do not know how !!). Alternately , the client can specify the serializer / de-serializer in the config.xml under "typeMappingRegistry" before running xrpcc.bat file ( I do not know how because I can not generate ant de-serializers at all instead xrpcc.bat file only generated serializers )
I will really appreciate if some one can give me some pointers since I am running out of resources to find the solution for the above issue.
Thanks
Bhabesh Patel