axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samisa Abeysinghe (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-4186) Errors in Generated WSDLs with return types that are Interfaces
Date Sun, 19 Dec 2010 11:43:37 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-4186?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Samisa Abeysinghe updated AXIS2-4186:
-------------------------------------

    Component/s:     (was: Tools)
                     (was: wsdl)
                 codegen

> Errors in Generated WSDLs with return types that are Interfaces
> ---------------------------------------------------------------
>
>                 Key: AXIS2-4186
>                 URL: https://issues.apache.org/jira/browse/AXIS2-4186
>             Project: Axis2
>          Issue Type: Bug
>          Components: codegen
>            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.


---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message