java - CXF generates WSDL where Fault extends tns:exception -


i have cxf fault class defined way:

@webfault(name = "faultcontainer",         faultbean = "myapi.transport.faultcontainer",         targetnamespace = "mynmspace") public class servicefaultsecond extends java.lang.exception { ... } 

as can see, extends normal java exception. problem is, in wsdl generated cxf class represented way:

<xs:complextype name="servicefaultsecond">  <xs:complexcontent>   <xs:extension base="tns:exception">    <xs:sequence>     <xs:element minoccurs="0" name="faultinfo" type="tns:faultcontainer"/>    </xs:sequence>   </xs:extension>  </xs:complexcontent> </xs:complextype> 

here extends "tns:exception" (that extends tns:throwable). now, when try generate client, there compile errors - expects mynmspace.exception , mynmspace.throwable instead of java.lang...

normally cxf not put xs:extension element wsdl, why happens now?


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -