首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

Web Services:WSDL 1.1 规范中的几个异常

2012-11-04 
Web Services:WSDL 1.1 规范中的几个错误读完了WSDL 1.1的规范,令人惊讶的是发现似乎例子中有几个错误在下

Web Services:WSDL 1.1 规范中的几个错误

读完了WSDL 1.1的规范,令人惊讶的是发现似乎例子中有几个错误

在下面用红色字体标出了错误相关之处,用蓝色字体标出了注释

我不确定是我理解有误还是它真的错了,贴出来大家一起看看;再说现在都WSDL2.0了

原文地址:http://www.w3.org/TR/wsdl

?

1,Example 1 (同样的错误还发生在Example 2, 4,5,估计是“copy-paste” bug pattern)

<!--应为 StockQuoteSoapBinding ? --> <soap:address location="http://example.com/stockquote"/> </port> </service></definitions>

?

2, Example 5: GetLastTradePrice vs. GetTradePrices

<!--应为 GetTradePrices? --> <input message="tns:GetTradePricesInput"/> <output message="tns:GetTradePricesOutput"/> </operation> </portType> <binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType"> <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="GetTradePrices"> <soap:operation soapAction="http://example.com/GetTradePrices"/> <input> <soap:body use="encoded" namespace="http://example.com/stockquote" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </input> <output> <soap:body use="encoded" namespace="http://example.com/stockquote" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> </output> </operation>> </binding> <service name="StockQuoteService"> <documentation>My first service</documentation> <port name="StockQuotePort" binding="tns:StockQuoteBinding"> <soap:address location="http://example.com/stockquote"/> </port> </service></definitions>

?

3,Example 3: smtp?

<!--应为http://schemas.xmlsoap.org/soap/smtp? --> <operation name="SubscribeToQuotes"> <input message="tns:SubscribeToQuotes"> <soap:body parts="body" use="literal"/> <soap:header message="tns:SubscribeToQuotes" part="subscribeheader" use="literal"/> </input> </operation> </binding> <service name="StockQuoteService"> <port name="StockQuotePort" binding="tns:StockQuoteSoap"> <soap:address location="mailto:subscribe@example.com"/> </port> </service> <types> <schema targetNamespace="http://example.com/stockquote.xsd" xmlns="http://www.w3.org/2000/10/XMLSchema"> <element name="SubscribeToQuotes"> <complexType> <all> <element name="tickerSymbol" type="string"/> </all> </complexType> </element> <element name="SubscriptionHeader" type="uriReference"/> </schema> </types></definitions>

热点排行