You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Matt Drees (JIRA)" <ji...@apache.org> on 2014/08/29 01:05:08 UTC
[jira] [Commented] (CXF-5124) Combination of @WebFault and @XmlType
annotations leads to invalid XSD (WSDL)
[ https://issues.apache.org/jira/browse/CXF-5124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14114556#comment-14114556 ]
Matt Drees commented on CXF-5124:
---------------------------------
I've been burned by this too.
It looks like the linked TOMEE issue has a test case.
> 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.2#6252)