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
Post a Comment