cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pieb...@gmail.com
Subject WSDL2JAVA, generating the java classes for elements with default values
Date Fri, 15 Jan 2010 16:20:57 GMT
Hi,

is it possible with CXF 2.1.2 to generate the elements which are sended
by/to the WSserver, with their default values declared as they are i nthe
WSDL ?

like I've the element :

<xs:complexType name="Personinfo">
        <xs:sequence>
            <xs:element minOccurs="1" maxOccurs="1" name="param"
                type="xs:string" default="test">
            </xs:element>
        </xs:sequence>
</xs:complexType>

and I would like wsdl2java to generate something like :

public class Personinfo{

    @XmlElement(name = "param")
    protected String param = "test";

    public String getParam() {
        return param ;
    }

    public void setParam(String value) {
        this.param = value;
    }
}



is there a way to do that ? the argument "-defaultvalues" do not do that .

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message