Steve,
You will need to specify an InfoHolder class for Info as defined by JSR
101.
Java2WSDL will interpret a "Holder" parameter as InOut when generating the
WSDL.
If you change your interface to a class and compile with -g, you should get
parameter names.
Rich Scheuerle
XML & Web Services Development
512-838-5115 (IBM TL 678-5115)
"Steve Pannier"
<spannier@jacada. To: [EMAIL PROTECTED]
com> cc:
Subject: Java2WSDL In/Out/InOut method
parameter question
02/11/2002 04:01
PM
Please respond to
axis-user
Does "Java2WSDL" have any knowledge of "In" vs "InOut" parameter types?
Suppose I have a Java interface as follows:
public interface banking {
public int getInfo(Info checking, Info saving);
}
The getInfo() method allows me to get checking & saving info based on
account
numbers supplied somewhere within the checking/saving structures. It
returns
checking/saving structures updated with current info, plus an integer
status code.
Thus, the checking and saving parameters to getInfo() are each "InOut".
The Info interface is defined as follows:
public interface Info {
public String getChecking();
public void setChecking(String anum);
public String getSaving();
public void setSaving(String anum);
}
When I run "Java2WSDL" to generate WSDL from this interface, it shows "in0"
and "in1"
for the parameters on the "GetInfoRequest" message. (Output WSDL
attached.) How
do I tell "Java2WSDL" that these parameters are actually "In/Out"? Or is
there a way to
do this at all? Stated another way: How would I go about creating a Java
interface
containing a method with one or more "In/Out" parameters, so that the
generated WSDL
contains proper definition of "in" vs. "out" parameters? Is there any
recommended
reading that would describe what I've encountered here?
(See attached file: banking.wsdl)
Also, is there a way to get the actual parameter names ("checking" and
"saving" in my
example) to appear in the generated WSDL, rather than the "in0", "in1",
etc? I did compile
my source with "-g".
Thanks in advance.
Steve Pannier
Jacada, Inc.
(763) 268-6382
[EMAIL PROTECTED]
http://www.jacada.com
#### banking.wsdl has been removed from this note on February 12 2002 by R
J Scheuerle Jr