axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manoj Khangaonkar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-2116) java2WSDL should generate schema elements for public fields
Date Sat, 17 Mar 2007 23:52:09 GMT

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

Manoj Khangaonkar updated AXIS2-2116:
-------------------------------------

    Attachment: axis2patch1749and2116-v3.txt

Dims,

Attached a updated patch for the latest revision.

WOuld appreciate if we can commit before someone changes the code again.

Manoj

> java2WSDL should generate schema elements for public fields
> -----------------------------------------------------------
>
>                 Key: AXIS2-2116
>                 URL: https://issues.apache.org/jira/browse/AXIS2-2116
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Improvement
>          Components: wsdl
>    Affects Versions: 1.2, 1.1.1, nightly
>         Environment: ALL
>            Reporter: Manoj Khangaonkar
>         Attachments: axis2-1749and2116.txt, axis2patch1749and2116-v2.txt, axis2patch1749and2116-v3.txt,
patch2116.txt
>
>
> When java2WSDL generates schema for method parameters, it generates elements only for
"properties" - those that have get/set metthods.
> If I have a class that has fields without get/set methods like
> public class Book {
> public String title ;
> public String author ;
> }
> The complex type in types section of the WSDL is
> <xs:complexType name="Book">
> <xs:sequence />
> </xs:complexType>
> It should be
> <xs:complexType name="Book">
> <xs:sequence >
> <xs:element name="title" nillable="true" type="xs:string" />
> <xs:element name="author" nillable="true" type="xs:string" />
> </xs;sequence>
> </xs:complexType>
> java2wsdl is typically used to generate WSDL for legacy code and it is not reasonable
to expect users to go add get/set methods to legacy code
> just because they need to generate 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: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message