- 主题:大家帮忙看一下wsdl
<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
错误信息很明显啊
: Operation 'newProduct' in Binding 'ProductServiceBinding' - the number
: of input elements does not match the number of input elements in the
: PortType!
input elements does not match,参数的数目不一致,
【 在 bbhs (The_Blue_Sea) 的大作中提到: 】
: 标 题: 大家帮忙看一下wsdl
: 发信站: BBS 水木清华站 (Thu Nov 20 11:22:24 2003), 转信
:
: <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!
:
: --
:
: ※ 来源:·BBS 水木清华站 smth.org·[FROM: 159.226.40.3]
--
FROM 202.119.230.80
绑定里面好像没有关于输入参数的信息.只是如何使用。
【 在 teaman (猪猪) 的大作中提到: 】
: 错误信息很明显啊
: input elements does not match,参数的数目不一致,
--
FROM 159.226.40.3
奇怪,我把你的wsdl文件贴到xmlspy里没有问题啊,而且逻辑上也没有问题
【 在 bbhs (The_Blue_Sea) 的大作中提到: 】
: 绑定里面好像没有关于输入参数的信息.只是如何使用。
--
FROM 159.226.40.3
Sorry,这个已经被xmlspy处理过,原文件的binding部分如下:
<binding name="ProductServiceBinding" type="y:ProductServicePortType">
<soap:binding style="rpc" transport="http://schemas.xmlsoap.
org/soap/http"/>
<operation name="newProduct">
<soap:operation soapAction="newProduct">
<input>
<soap:body use="encoded" namespace="http://new.webservice.
namespace" encodingStyle="http://shcemas.xmlsoap.org/soap/encoding/"/>
</input>
<output>
<soap:body use="encoded" namespace="http://new.webservice.
namespace" encodingStyle="http://shcemas.xmlsoap.org/soap/encoding/"/>
</output>
</soap:operation>
</operation>
</binding>
现在已经发现问题是出在<soap:operation>部分,这份wsdl根据一本书写成,没想到他的书是错误的。正确的应为。
<soap:opeartion soapAction="newProduct"/>
【 在 ldlc (考试) 的大作中提到: 】
: 奇怪,我把你的wsdl文件贴到xmlspy里没有问题啊,而且逻辑上也没有问题
--
FROM 159.226.40.3