ws-soap-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Scott Nichol" <snicholn...@scottnichol.com>
Subject Re: Named return element
Date Fri, 03 Sep 2004 15:11:04 GMT
When using the RPC API (as opposed to the messaging API), the name of the return value is hard-coded.
 
The following is from RPCConstants.java:

  public static String ELEM_RETURN = "return";

The following is from RPCProvider.java:

             pret= new Parameter(RPCConstants.ELEM_RETURN , ret.getClass(), ret, null);

If you want to specify the return value's name, you can

1. Use the messaging API

2. Subclass RPCProvider to create your own provider that would allow you to set the name in
the Parameter.

Scott Nichol

Do not send e-mail directly to this e-mail address,
because it is filtered to accept only mail from
specific mail lists.
----- Original Message ----- 
From: "Martin Vossler" <mvossler@adelphia.net>
To: <soap-user@ws.apache.org>
Sent: Friday, September 03, 2004 9:28 AM
Subject: Named return element


> How do I get apache soap to name the return element something other than 
> return?  I would prefer it used the name of the return variable.
> 
> 

Mime
View raw message