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 Steve Pannier <sp...@jacada.com> on 2002/02/11 23:01:54 UTC
Java2WSDL In/Out/InOut method parameter question
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
spannier@jacada.com
http://www.jacada.com