Return-Path: Delivered-To: apmail-axis-java-user-archive@www.apache.org Received: (qmail 4810 invoked from network); 4 Mar 2010 11:52:53 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 4 Mar 2010 11:52:53 -0000 Received: (qmail 82618 invoked by uid 500); 4 Mar 2010 11:52:41 -0000 Delivered-To: apmail-axis-java-user-archive@axis.apache.org Received: (qmail 82455 invoked by uid 500); 4 Mar 2010 11:52:40 -0000 Mailing-List: contact java-user-help@axis.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@axis.apache.org Delivered-To: mailing list java-user@axis.apache.org Received: (qmail 82447 invoked by uid 500); 4 Mar 2010 11:52:40 -0000 Delivered-To: apmail-ws-axis-user@ws.apache.org Received: (qmail 82444 invoked by uid 99); 4 Mar 2010 11:52:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 11:52:40 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cchinu@gmail.com designates 209.85.160.49 as permitted sender) Received: from [209.85.160.49] (HELO mail-pw0-f49.google.com) (209.85.160.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Mar 2010 11:52:34 +0000 Received: by pwj2 with SMTP id 2so1545662pwj.22 for ; Thu, 04 Mar 2010 03:52:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=MxM9LqcY8BAd8LbvPV13inY67XYksiHTpCcUWknSD0Q=; b=COy/xDw6eVSFZGguD3r6ZYVfUXeD/j9q7GMDLAe7Tq2aua5Gu78G0qKCpoQfRU7RM8 DK4bbYF/vHflJmFcs8JjQX5lfFG5qZrtYZoDXR3wwx58eK3CM6QfPVGpNKEsVn5A2tl3 dxnWbfYvGtJ3QP652k9zJt0z2kX2ATD5Rtymo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XfwpzCNlKJL+Uj3myPWHHpD7I3p8l9Ak0EpVHu6tdRhtBdGXm6m7GAnbhtBpsaGeZW 5DStYntq10CiLMnmXuxEmv6i7xtW6nmkYNjVvSWhacpbU8HtkXAGmL4Xgk9oav23bNvk XeYJ0hYQe6lfz041FCHl3uhg042LDrbWMoxtU= MIME-Version: 1.0 Received: by 10.141.22.14 with SMTP id z14mr1883089rvi.208.1267703533722; Thu, 04 Mar 2010 03:52:13 -0800 (PST) Date: Thu, 4 Mar 2010 17:22:13 +0530 Message-ID: Subject: DataHandler as Return type From: Chinmoy Chakraborty To: axis-user@ws.apache.org Content-Type: multipart/alternative; boundary=000e0cd1b76ecedd460480f83aaa --000e0cd1b76ecedd460480f83aaa Content-Type: text/plain; charset=ISO-8859-1 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 --000e0cd1b76ecedd460480f83aaa Content-Type: text/html; charset=ISO-8859-1 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
--000e0cd1b76ecedd460480f83aaa--