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

生成WCF Web服务的java代码时出现Axis 2异常,wcf,web-services,axis,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 "CustomExceptionFa

我已经使用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生成java时出现IWAB0399错误 >绑定中“CustomExceptionFault”操作中的结果操作“CustomExceptionFault”中缺少元素 >GetPDF >java.io.IOException:错误:绑定中操作“CustomExceptionFault”中的结果“CustomExceptionFault”中缺少元素 >获取PDF文件 >org.apache.axis.wsdl.symbolTable.symbolTable.faultFromSOAPFault(未知 >(来源) 我的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>

希望它能澄清。如果需要更多信息,请让我知道


关于

本文通过一些其他调整帮助我解决了问题


堆栈跟踪和错误消息表明您使用的是Axis1.x,而不是Axis2.awww。这会成为一个问题吗。?实际上我是WCF开发者,我的客户给我发了这个问题。他报告说他正在使用Axis2…是的,Axis2是完全重写的。