cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tadayoshi Sato (JIRA)" <>
Subject [jira] [Created] (CXF-5208) Anonymous types in an exception aren't generated in WSDL
Date Thu, 15 Aug 2013 09:46:49 GMT
Tadayoshi Sato created CXF-5208:

             Summary: Anonymous types in an exception aren't generated in WSDL
                 Key: CXF-5208
             Project: CXF
          Issue Type: Bug
          Components: JAXB Databinding, Tooling
    Affects Versions: 2.7.6
            Reporter: Tadayoshi Sato

Anonymous types (annotated with {{@XmlType(name = "")}}) in an exception class aren't generated
at all in WSDL.

Web service classes:
public class GreetingService {
  public void hello() throws MyException {}

public class MyException extends Exception {
  private String     str;
  private MyAnonType myAnonObj;

  public String getStr() { return str; }
  public void setStr(String str) { this.str = str; }

  public MyAnonType getMyAnonObj() { return myAnonObj; }
  public void setMyAnonObj(MyAnonType myAnonObj) { this.myAnonObj = myAnonObj; }

@XmlType(name = "")
public class MyAnonType { ...

Generated WSDL:
<xs:schema ...>
  <xs:complexType name="MyException">
      <xs:element name="str" nillable="true" type="xs:string"/>

Note that the same type ({{MyAnonType}}) is generated in WSDL if the {{@XmlType(name = "")}}
annotation is removed.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message