Problem with Apache AXIS WSDL2Java

S

Sandy Dunlop

I used WSDL2Java (from the Apache AXIS project) to generate my Java
Binding Stub file. The problem here is that although AXIS has
correctly identified the variable "path" as an input parameter and
"return" and "cf" as output parameters, it has defined the method as:

public void wtest_data_read(java.lang.String path,
javax.xml.rpc.holders.IntHolder _return,
wtypes.holders.Wtest_configHolder cf) throws java.rmi.RemoteException

I think that the output parameter called "return" should be used as
the return value from the wtest_data_read method, but AXIS hasn't done
this. I was expecting something more along the lines of:

public int wtest_data_read(java.lang.String path,
wtypes.holders.Wtest_configHolder cf) throws java.rmi.RemoteException

My WSDL and Java files are available here:

<http://www.sorn.net/misc/demo/dbcfg.wsdl>
<http://www.sorn.net/misc/demo/Wtest_BindingStub.java>
 
S

Sandy Dunlop

I used WSDL2Java (from the Apache AXIS project) to generate my Java
Binding Stub file. The problem here is that although AXIS has
correctly identified the variable "path" as an input parameter and
"return" and "cf" as output parameters, it has defined the method as:

public void wtest_data_read(java.lang.String path,
javax.xml.rpc.holders.IntHolder _return,
wtypes.holders.Wtest_configHolder cf) throws java.rmi.RemoteException

I think that the output parameter called "return" should be used as
the return value from the wtest_data_read method, but AXIS hasn't done
this. I was expecting something more along the lines of:

public int wtest_data_read(java.lang.String path,
wtypes.holders.Wtest_configHolder cf) throws java.rmi.RemoteException

My WSDL and Java files are available here:

<http://www.sorn.net/misc/demo/dbcfg.wsdl>
<http://www.sorn.net/misc/demo/Wtest_BindingStub.java>

I've solved my own problem. I needed to add the parameterOrder
attribute to the wsdl:eek:peration element to specify what order the
parameters to the function should be given in, and WSDL2Java can work
out from that which parameter is actually the return value.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top