2011-12-16 64 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

回答

相關問題