她我有 //path/a/wsdl 文件,我正在尝试生成 webservices 客户端程序,但是当我们添加文件时,它显示以下错误
示例 wsdl: wsdl:definitions targetNamespace="http://xyz.com/" xmlns:tns="http://xyz.com/" xmlns:cmn="http://xyz.com/Common/" xmlns: wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/ wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:xmime="http://www.w3.org/2005/05/xmlmime">
<s:element name="GetPublisherRevenueCSV">
<s:complexType>
<s:sequence>
<s:element minOccurs="1" maxOccurs="1" name="name" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="pwd" type="s:string" />
<s:element minOccurs="1" maxOccurs="1" name="operatorId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="criteria" type="tns:PublisherRevenueCriteria" />
</s:sequence>
</s:complexType>
</s:element>
<s:element name="GetPublisherRevenueCSVResponse">
<s:complexType>
<s:sequence>
<s:element minOccurs="0" name="CSVFile" type="tns:CSVFile" />
</s:sequence>
</s:complexType>
</s:element>
<s:complexType name="CSVFile">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="File" type="s:hexBinary"
xmime:expectedContentTypes="text/plain" />
</s:sequence>
</s:complexType>
<s:complexType name="PublisherRevenueCriteria">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="publisherId" type="s:int" />
<s:element minOccurs="0" maxOccurs="1" name="adSpaceId" type="s:int" />
<s:element minOccurs="1" maxOccurs="1" name="startDate" type="s:date" />
<s:element minOccurs="1" maxOccurs="1" name="endDate" type="s:date" />
</s:sequence>
</s:complexType>
</s:schema>
</wsdl:types>
<wsdl:message name="GetPublisherRevenueCSVSoapIn">
<wsdl:part name="parameters" element="tns:GetPublisherRevenueCSV" />
</wsdl:message>
<wsdl:message name="GetPublisherRevenueCSVSoapOut">
<wsdl:part name="parameters" element="tns:GetPublisherRevenueCSVResponse" />
</wsdl:message>
<wsdl:operation name="GetPublisherRevenueCSV">
<wsdl:input message="tns:GetPublisherRevenueCSVSoapIn" />
<wsdl:output message="tns:GetPublisherRevenueCSVSoapOut" />
<wsdl:fault name="CMS_API_Exception" message="cmn:CMS_API_Exception" />
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="PublisherRevenueWSSoap" type="tns:PublisherRevenueWSSoap">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
<wsdl:operation name="GetPublisherRevenueCSV">
<soap:operation soapAction="http://xyz.com/GetPublisherRevenueCSV"
style="document" />
<wsdl:input>
<soap:body use="literal" />
</wsdl:input>
<wsdl:output>
<soap:body use="literal" />
</wsdl:output>
<wsdl:fault name="CMS_API_Exception">
<soap:fault name="CMS_API_Exception" use="literal" />
</wsdl:fault>
</wsdl:operation>
错误: IWAB0399E 从 WSDL 生成 Java 时出错:java.io.IOException:错误:在绑定 GetPublisherRevenueCSV java.io.IOException 中,操作“CMS_API_Exception”中缺少元素 inFault “CMS_API_Exception”:错误:操作“CMS_API_Exception”中缺少元素 inFault “CMS_API_Exception” , 在 org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolTable.java:2549) 在 org.apache.axis.wsdl.symbolTable.SymbolTable.populateBindings(SymbolTable.java:2549) 绑定 GetPublisherRevenueCSV .axis.wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:744) 在 org.apache.axis.wsdl.symbolTable.SymbolTable.add(SymbolTable.java:543) 在 org.apache.axis.wsdl.symbolTable.SymbolTable .populate(SymbolTable.java:518) 在 org.apache.axis。wsdl.symbolTable.SymbolTable.populate(SymbolTable.java:495) 在 org.apache.axis.wsdl.gen.Parser$WSDLRunnable.run(Parser.java:361) 在 java.lang.Thread.run(Thread.java: 722)