You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Chinmoy Chakraborty <cc...@gmail.com> on 2010/03/04 12:52:13 UTC

DataHandler as Return type

Guys,

I have a service whose return type is 'DataHandler'. When I call the service
through client code, it returns the DataHandler but does not preserve the
datasource name and content-type. Following is my client code:

Class[] retType = new Class[] {webFx.getReturnType()};
Options options = new Options();
RPCServiceClient client = new RPCServiceClient();
options.setTo(targetEPR);
options.setAction(OPERATION_NAME);
options.setTimeOutInMilliSeconds(600000);
client.setOptions(options);
Object result = client.invokeBlocking(qName, invokedArgs, retType);

Could anyone tell me how to preserve the datasource name and content-type of
a datahandler when it is sent to client?

Chinmoy