Dusan Slivka created CXF-5124:
---------------------------------
Summary: Combination of @WebFault and @XmlType annotations leads
to invalid XSD (WSDL)
Key: CXF-5124
URL: https://issues.apache.org/jira/browse/CXF-5124
Project: CXF
Issue Type: Bug
Environment: CXF 2.7.2, 2.7.5
Reporter: Dusan Slivka
Priority: Minor
Combination of @WebFault and @XmlType in one bean:
@WebFault(name = "contentException")
@XmlType // PROBLEM
public class ContentException extends Exception {
public ContentException() {
super();
}
...
}
causes following to appear in generated WSDL:
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ns0="##default"
xmlns:tns="http://admin/" attributeFormDefault="unqualified"
elementFormDefault="unqualified" targetNamespace="http://admin/">
<xs:import namespace="##default"/>
<xs:element name="createPoolRequest" type="tns:createPoolRequest"/>
...
</xs:schema>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="##default"
attributeFormDefault="unqualified" elementFormDefault="unqualified"
targetNamespace="##default">
<xsd:complexType name="##default">
...
</xs:schema>
--
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: http://www.atlassian.com/software/jira