Errors in Generated WSDLs with return types that are Interfaces
---------------------------------------------------------------
Key: AXIS2-4186
URL: https://issues.apache.org/jira/browse/AXIS2-4186
Project: Axis 2.0 (Axis2)
Issue Type: Bug
Components: Tools, wsdl
Reporter: Senaka Fernando
Assignee: Deepal Jayasinghe
When trying to create a client for a auto-generated WSDL in an Axis2 service, I
ran into several issues.
The service has a method: public A getOP() { ... }, where, A is an interface.
Issue 1: The client generator converts A into an Object, which is technically
wrong.
Now, assume that A is an interface with methods: setOPX, getOPX, and "A extends
B" where B is another interface with methods: setOPY, getOPY.
Issue 2: The client-class generated for A, has setOPX, and getOPX, but NOT
setOPY, and getOPY.
Also, assume that A had another method without a get/set prefix (ex:- isXSet)
Issue 3: The client-class generated for A, did not have isXSet
Finally,
Issue 4: The client-class generated for A, is now an object. But, this object
does not have any data, and some garbage values are returned when the getXX()
methods are called.
I have used the auto-generated WSDL exposed at
http://host:port/services/HelloWorld?wsdl, and the options used to generate the
client were provided to the WSDL2Java tool as: -uri HelloWorld.wsdl -u -uw -o
target/generated-code -p helloworld -ns2p XXXX. Please note that
HelloWorld.wsdl is a locally saved copy of the auto generated WSDL.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.