<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http:
//schemas.xmlsoap.org/wsdl/soap/" xmlns:http="http://schemas.xmlsoap.
org/wsdl/http/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:
soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:mime="http:
//schemas.xmlsoap.org/wsdl/mime/" xmlns:y="http://new.webservice.
namespace" targetNamespace="http://new.webservice.namespace">
<types/>
<message name="ProductServiceRequestMessage">
<part name="ProductName" type="xs:string"/>
<part name="Manufacturer" type="xs:string"/>
<part name="Price" type="xs:float"/>
</message>
<message name="ProductServiceResponseMessage">
<part name="result" type="xs:string"/>
</message>
<portType name="ProductServicePortType">
<operation name="newProduct">
<input message="y:ProductServiceRequestMessage"/>
<output message="y:ProductServiceResponseMessage"/>
</operation>
</portType>
<binding name="ProductServiceBinding" type="y:
ProductServicePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.
org/soap/http"/>
<operation name="newProduct">
<soap:operation soapAction="urn:productService"/>
</operation>
</binding>
<service name="ProductService">
<port name="ProductServicePort" binding="y:ProductServiceBinding">
<soap:address location="http://10.0.2.241:
6888/soap/servlet/rpcrouter"/>
</port>
</service>
</definitions>
xmlspy提示错误信息如下:
Operation 'newProduct' in Binding 'ProductServiceBinding' - the number
of input elements does not match the number of input elements in the
PortType!
--
FROM 159.226.40.3