axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Falkenberg" <gabriel.falkenb...@gmail.com>
Subject [axis2] Fine grained control over WSDL generated with java2wsdl
Date Fri, 05 Oct 2007 10:32:57 GMT
Hi

Is it possible to somehow fine tune the generation of WSDL files from code
so that some properties of a Java Bean are not exposed in the corresponding
complex type?

Example

A bean called Person has the attributes first name, last name and id. I
would like to omit the id-attribute from the WSDL like this:

<xs:complexType name="Person">
    <xs:sequence>
        <xs:element minOccurs="0" name="firstName" nillable="true"
type="xs:string"/>
        <xs:element minOccurs="0" name="lastName" nillable="true"
type="xs:string"/>
    </xs:sequence>
</xs:complexType>

On the way in the id attribute would get the default value null.

Is this at all possible or do I have to keep the beans used in the interface
"clean"?

/Gabriel Falkenberg

Mime
View raw message