2011-12-16 90 views
-1

我有一个使用WCF创建的Web服务。它也使用CustomException。Axis 2异常,同时生成WCF Web服务的Java代码

当我使用轴2从它生成Java代码(WSDL2JAVA)它thorws以下错误:

>  IWAB0399 Error in generating java from WSDL 
>  Missing <soap:fault> element inFault Operation "CustomExceptionFault" in operation "CustomExceptionFault", in binding 
> GetPDFs 
>  java.io.IOException: ERROR: Missing <soap:fault> element inFault "CustomExceptionFault" in operation "CustomExceptionFault", in binding 
> GetPDFs at 
> org.apache.axis.wsdl.symbolTable.SymbolTable.faultFromSOAPFault(Unknown 
> Source) 

我的WSDL片断

<wsdl:binding name="tdsServiceSoap12" type="tns:ITDSService"> 
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/> 
<wsdl:operation name="GetPDFs"> 
<soap12:operation soapAction="http://tempuri.org/ITDSService/GetPDFs" style="document"/> 
<wsdl:input> 
<soap12:body use="literal"/> 
</wsdl:input> 
<wsdl:output> 
<soap12:body use="literal"/> 
</wsdl:output> 
<wsdl:fault name="CustomExceptionFault"> 
<soap12:fault name="CustomExceptionFault" use="literal"/> 
</wsdl:fault> 
</wsdl:operation> 
</wsdl:binding> 

希望它澄清。如果需要更多信息,请告诉我。

关注

+0

堆栈跟踪和错误消息表明您使用的轴1.x中,没有Axis2的。 – 2011-12-17 09:01:13

回答