cxf-users mailing list archives

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

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

like I've the element :

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

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 .

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