[
https://issues.apache.org/jira/browse/CXF-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13830758#comment-13830758
]
Ulhas Bhole commented on CXF-5124:
----------------------------------
Can you provide a small testcase to reproduce this issue?
> 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 was sent by Atlassian JIRA
(v6.1#6144)