Axis 2生成WCF Web服务的Java代码时出现异常

时间:2011-12-16 09:45:43

标签: wcf web-services axis

我使用WCF创建了一个Web服务。它也使用CustomException。

当我使用Axis 2从它生成java代码(WSDL2JAVA)时,它会出现以下错误:

>     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>

希望它澄清一下。如果需要进一步的信息,请告诉我。

此致

1 个答案:

答案 0 :(得分:0)