Rather disappointingly. When I add a new type to my sample (that I'm
using to play with wsdl generation) as follows;

@XmlType(name="")
public class CBean {

    protected String field1;
    protected String field2;

    public String getField1() {
        return field1;
    }

    public void setField1(String field1) {
        this.field1 = field1;
    }

    public String getField2() {
        return field2;
    }

    public void setField2(String field2) {
        this.field2 = field2;
    }
}

Then JAXBContext.generateSchema() doesn't generate schema for it.
wsgen for the same interface does however generate schema for CBean
:-(. This JAXB library is just not playing ball.

Simon

Reply via email to