This is not a bug. This is a manifestation of an inout parameter as
described by JAX-RPC. Consider what you have: an input path, an input
newObject, and output path. Since path is both an input and an output
parameter, it becomes an inout parameter and the full signature of
addFolder is
public void addFolder(StringHolder path, Folder newObject);
To use this method you must use a holder:
StringHolder sh = new StringHolder("c:/x/y/z");
portType.addFolder(sh, folder);
String returnedPath = sh.value;
Russell Butek
[EMAIL PROTECTED]
"St-Germain, Sylvain" <[EMAIL PROTECTED]> on 02/01/2002 09:20:22
AM
Please respond to [EMAIL PROTECTED]
To: "Axis-User (E-mail)" <[EMAIL PROTECTED]>
cc:
Subject: bug in wsdl2java
Hi all,
I can reproduce this strange situation, I think it is a bug.
Problem: Generated stub for method addFolder keeps defining the method
signature with return type void when returned part name and type are the
same as one of the input param. As shown below.
<message name="addFolderInput">
<part name="path" type="xsd:string"/>
<part name="newObject" type="types:Folder"/>
</message>
<message name="addFolderOutput">
<part name="path" type="xsd:string"/>
</message>
<portType name="CMServicePortType">
<operation name="addFolder">
<input message="cm1:addFolderInput"/>
<output message="cm1:addFolderOutput"/>
</operation>
</portType>
If I change addFolderOutput to return something else than "xsd:string" or
"path" it is fine. If I leave it as is, I get a void return type.
public void addFolder(...)
As I said, when I change the name "return" (or change the type) I get:
public java.lang.String addFolder(..)
Regards,
--
Sylvain St-Germain (613) 738.1338 x5250
Macadamian Technologies @ Cognos [EMAIL PROTECTED]
"Software experts to the world's leading technology companies"
This message may contain privileged and/or confidential information. If
you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.