- 浏览: 111548 次
- 来自: ...
文章分类
最新评论
读完了WSDL 1.1的规范,令人惊讶的是发现似乎例子中有几个错误
在下面用红色字体标出了错误相关之处,用蓝色字体标出了注释
我不确定是我理解有误还是它真的错了,贴出来大家一起看看;再说现在都WSDL2.0了
原文地址:http://www.w3.org/TR/wsdl
1,Example 1 (同样的错误还发生在Example 2, 4,5,估计是“copy-paste” bug pattern)
Example 1 SOAP 1.1 Request/Response via HTTP
<?xml version="1.0"?> <definitions name="StockQuote" targetNamespace="http://example.com/stockquote.wsdl" xmlns:tns="http://example.com/stockquote.wsdl" xmlns:xsd1="http://example.com/stockquote.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <schema targetNamespace="http://example.com/stockquote.xsd" xmlns="http://www.w3.org/2000/10/XMLSchema"> <element name="TradePriceRequest"> <complexType> <all> <element name="tickerSymbol" type="string"/> </all> </complexType> </element> <element name="TradePrice"> <complexType> <all> <element name="price" type="float"/> </all> </complexType> </element> </schema> </types> <message name="GetLastTradePriceInput"> <part name="body" element="xsd1:TradePriceRequest"/> </message> <message name="GetLastTradePriceOutput"> <part name="body" element="xsd1:TradePrice"/> </message> <portType name="StockQuotePortType"> <operation name="GetLastTradePrice"> <input message="tns:GetLastTradePriceInput"/> <output message="tns:GetLastTradePriceOutput"/> </operation> </portType> <binding name="StockQuoteSoapBinding" type="tns:StockQuotePortType"> <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/> <operation name="GetLastTradePrice"> <soap:operation soapAction="http://example.com/GetLastTradePrice"/> <input> <soap:body use="literal"/> </input> <output> <soap:body use="literal"/> </output> </operation> </binding> <service name="StockQuoteService"> <documentation>My first service</documentation> <port name="StockQuotePort" binding="tns:StockQuoteBinding"> <!--应为 StockQuoteSoapBinding ? --> <soap:address location="http://example.com/stockquote"/> </port> </service> </definitions>
2, Example 5: GetLastTradePrice vs. GetTradePrices
Example 5. SOAP binding of request-response RPC operation over HTTP
<?xml version="1.0"?> <definitions name="StockQuote" targetNamespace="http://example.com/stockquote.wsdl" xmlns:tns="http://example.com/stockquote.wsdl" xmlns:xsd="http://www.w3.org/2000/10/XMLSchema" xmlns:xsd1="http://example.com/stockquote/schema" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <types> <schema targetNamespace="http://example.com/stockquote/schema" xmlns="http://www.w3.org/2000/10/XMLSchema"> <complexType name="TimePeriod"> <all> <element name="startTime" type="xsd:timeInstant"/> <element name="endTime" type="xsd:timeInstant"/> </all> </complexType> <complexType name="ArrayOfFloat"> <complexContent> <restriction base="soapenc:Array"> <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:float[]"/> </restriction> </complexContent> </complexType> </schema> </types> <message name="GetTradePricesInput"> <part name="tickerSymbol" element="xsd:string"/> <part name="timePeriod" element="xsd1:TimePeriod"/> </message> <message name="GetTradePricesOutput"> <part name="result" type="xsd1:ArrayOfFloat"/> <part name="frequency" type="xsd:float"/> </message> <portType name="StockQuotePortType"> <operation name="GetLastTradePrice" parameterOrder="tickerSymbol timePeriod frequency"><!--应为 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?
Example 3. SOAP binding of one-way operation over SMTP using a SOAP Header
<?xml version="1.0"?> <definitions name="StockQuote" targetNamespace="http://example.com/stockquote.wsdl" xmlns:tns="http://example.com/stockquote.wsdl" xmlns:xsd1="http://example.com/stockquote.xsd" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns="http://schemas.xmlsoap.org/wsdl/"> <message name="SubscribeToQuotes"> <part name="body" element="xsd1:SubscribeToQuotes"/> <part name="subscribeheader" element="xsd1:SubscriptionHeader"/> </message> <portType name="StockQuotePortType"> <operation name="SubscribeToQuotes"> <input message="tns:SubscribeToQuotes"/> </operation> </portType> <binding name="StockQuoteSoap" type="tns:StockQuotePortType"> <soap:binding style="document" transport="http://example.com/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>
发表评论
-
The Object Primer
2004-12-11 11:21 5501,书名 被翻译成“ ... -
错误处理规范
2004-12-11 16:47 728错误处理规范 〇、概念澄清 概念 解释 错误 ... -
Java,误解为何如此之深
2005-08-24 13:50 564前几天被电话面试,问J ... -
Java:画蛇添足的编码规范
2005-09-02 13:13 546前几天公司培训编码规范: 第n条: ... -
synchronized : 规则, 推论与实践
2007-07-23 22:32 43014.3.Synchronization. Rule ... -
交互设计: 股市帮凶
2008-05-04 21:30 613同事 Y 在线操作股票时, 把"买入"点成 ... -
交互设计: 火车上的厕所
2008-05-26 17:17 578有人在动车组的厕所前等了很久, 直到乘务员路过说厕所是被锁住了 ... -
设计原则与模式: 案例介绍--CppUnit
2008-06-01 20:15 572设计原则与模式: 案例介绍--CppUnit CppUnit ... -
工作流:形参,实参,相关数据
2004-12-11 11:40 630关于形参,实参,相关数据 一、形参(FormalParame ... -
工作流:第一次发版,过程总结
2004-12-11 11:42 670交流 即时讨论:小组成员咫尺之遥,有问题立即提出并解决 ... -
工作流:第一次发版,设计总结
2004-12-11 11:43 581整体 面向接口:消息系统,持久系统等,其实现都是可替换 ... -
Beyond Workflow : An Introduction to Vitria BusinessWare
2005-09-26 10:13 780一、简介 Busines ... -
Vitria BusinessWare: 存储与访问安全
2006-03-26 15:45 713事实上,BusinessWare使用LDAP做为存储机制和 ... -
Vitria BusinessWare: 平台与软件总线
2006-04-01 12:59 783经过一段时间的使用 ... -
Vitria BusinessWare: Web Services
2006-04-01 14:30 709BusinessWare的Web Services ... -
Web Services:自洽,编码,交换模型
2006-04-01 16:02 6211, 自洽 以前曾经写过: 目前WebServi ... -
C++/CLI:被忽视的集成技术
2006-05-17 20:02 717十几行代码,就使一个重要的旧系统组件,完全融入了基于.Ne ... -
AJP/JK:异构Web平台的集成技术
2006-05-25 21:44 670Tomcat Connector 可以将Tomcat ... -
Vitria BusinessWare: 事件与端口
2006-05-27 17:24 596Event BusinessWare是一个事件驱动的系统 ... -
WS-Security Interoperability Issues: WebSphere, JBoss, Axis and .Net
2006-08-31 22:46 798检验了一下WS-Security的互操作情况,涉及到 ...
相关推荐
另外WSDL1.1是一个宽泛的规范,所有的语法都以非正式的形式出现,而且为了满足WEB Service 扩展性的需求,也不可能定义出详尽的语法,请在阅读时特别注意。 我的翻译版本以word形式提供,请要转载的同学们别把酷壳...
WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范1.1版WSDL中文规范...
WSDL-中文规范1.1
WSDL官方标准规范,方便随时参考
J2EE Web Services: XML SOAP WSDL UDDI WS-I JAX-RPC JAXR SAAJ JAXP
尽管很流行,但是 WSDL 1.1 仍然有一些问题,包括使用的模式很多,而且 Web 服务处理 WSDL 文档的方法各异。根据其中一个模式版本编写的文档一般与其
NULL 博文链接:https://cowry.iteye.com/blog/1457063
理解WebServices xml wsdl SOAP和uddi的好东西,pdf
赠送jar包:wsdl4j-1.6.3.jar; 赠送原API文档:wsdl4j-1.6.3-javadoc.jar; 赠送源代码:wsdl4j-1.6.3-sources.jar; 赠送Maven依赖信息文件:wsdl4j-1.6.3.pom; 包含翻译后的API文档:wsdl4j-1.6.3-javadoc-API...
Oracle Primavera Unifier v19.12 WebServices.wsdl 文件 包括Unifier对外的所有接口方法含参数 建议只对接v19.12版本,反之不必要的异常
安装在本地下载并构建: go get github.com/hooklift/gowsdl/... 从Homebrew brew install gowsdl : brew install gowsdl目标尽可能生成惯用的Go代码仅支持符合文档/文档包装服务支持: WSDL 1.1 XML模式1.0 SOAP ...
特征仅支持符合Document/Literal 包装服务尝试尽可能多地生成惯用的 Go 代码并行生成 Go 代码:类型、操作和肥皂代理支持: WSDL 1.1 XML 架构 1.0 肥皂 1.1 递归解析外部 XML 模式,最多 5 次递归。 支持提供 WSDL ...
解释了从XML Schema,序列化,SOAP,WSDL开始的Web服务的基础,并介绍了使用ASP.NET实施Web服务的实用细节。
在java开发services中,会用到: 1.webservices-api.jar 2.webservices-extra.jar 3.webservices-rt.jar 4.webservices-tools.jar 5.webservices-extra-api.jar 此压缩文件里就是这五个jar文件。
android wsdl 实现webServices
基础的Web Services(假定你没有EAI背景,最好在涉入SOA之前阅读这两本书)Enterprise Application Integration Addison-Wesley Information Technology Series) by David S. Linthicum Next Generation ...
goetas-webservices / soap-server PHP实现SOAP 1.1和1.2服务器规范。 优点: 纯PHP,不依赖ext-soap 可扩展(JMS事件侦听器支持) PSR-7 HTTP消息传递 PSR-15 HTTP服务器处理程序 无需在生产中解析WSDL / XSD ...
Web services 把 Web 应用程序提升到了另外一个层面 7 Web services 有两种类型的应用 7 Web Services 平台元素 8 什么是 SOAP? 8 什么是 WSDL? 8 什么是UDDI? 8 Web Service 实例 9 一个实例:ASP.NET Web ...
Web Services 与应用程序到应用程序的通信有关。WSDL 是一门基于 XML 的 Web Services 描述语言。 Web Services 与应用程序到应用程序的通信有关。...作为一种可描述 Web Services 的 XML 格式,WSDL 1.1 于 2001
PHP实现的Web Services 完整实例,WSDL交互。 PHP.INI,请开启php_soap。 服务端:直接解压到网站根目录下,访问地址:http://localhost/hbj/wsdl.php?wsdl 客户端:http://localhost/hbj/Client.php ,显示hello ...