我的问题一开始可能听起来很奇怪,但需要确定。
我从客户端收到以下 wsdl,我可以在 SoapUI 中成功导入并在我的应用程序中使用。但是当我尝试验证 wsdl 文件时,它会抛出 12 个错误
<wsdl:types>
<schema targetNamespace="http://abc.com:9080/product/services/12WebService/types/"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<element name="Message">
<complexType>
<sequence>
<any minOccurs="0"/>
</sequence>
</complexType>
</element>
</schema>
<schema targetNamespace="http://abc.com:9080/nproduct/services/12WebService/types/"
xmlns="http://www.w3.org/2001/XMLSchema">
<import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
<element name="Response">
<complexType>
<sequence>
<any minOccurs="0"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="Message">
<wsdl:part name="Message" element="types:Message"/>
</wsdl:message>
<wsdl:message name="Response">
<wsdl:part name="Response" element="types:Response"/>
</wsdl:message>
<wsdl:portType name="12WebServiceImpl">
<wsdl:operation name="process12">
<wsdl:input message="tns:Message" name="Message"/>
<wsdl:output message="tns:Response" name="Response"/>
<wsdl:fault message="tns:Response" name="Response"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="12WebServiceSoapBinding" type="tns:12WebServiceImpl">
<wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="process12">
<wsdlsoap:operation soapAction="http://abc.com:9080/product/services/12WebService/process12"/>
<wsdl:input name="Message">
<wsdlsoap:body namespace="http://abc.com:9080/product/services/12WebService" use="literal"/>
</wsdl:input>
<wsdl:output name="Response">
<wsdlsoap:body namespace="http://abc.com:9080/product/services/12WebService" use="literal"/>
</wsdl:output>
<wsdl:fault name="Response">
<wsdlsoap:body namespace="http://abc.com:9080/product/services/12WebService" use="literal"/>
</wsdl:fault>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="12WebService">
<wsdl:port binding="tns:12WebServiceSoapBinding" name="12WebService">
<wsdlsoap:address location="http://abc.com:9080/product/services/12WebService"/>
</wsdl:port>
</wsdl:service>
所以,是否wsdl
需要有效。我要回客户那里更正吗?