wsdl文件参数 如题,求一个可以学习wsdl文件参数的URL。比如wsdl:part 、xmlns:impl 、xmlns:tns1 等都是什么意思。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 这些好象不是参数 而是xml schema吧? xmlns:impl 、xmlns:tns1 用来定义一个命名空间。 WSDL 文档仅仅是一个简单的 XML 文档。它包含一系列描述某个 web service 的定义。WSDL 文档结构WSDL 文档是利用这些主要的元素来描述某个 web service 的:元素 定义 <portType> web service 执行的操作 <message> web service 使用的消息 <types> web service 使用的数据类型 <binding> web service 使用的通信协议 一个 WSDL 文档的主要结构是类似这样的:<definitions><types> definition of types........</types><message> definition of a message....</message><portType> definition of a port.......</portType><binding> definition of a binding....</binding></definitions>WSDL 文档可包含其它的元素,比如 extension 元素,以及一个 service 元素,此元素可把若干个 web services 的定义组合在一个单一的 WSDL 文档中。如需完整的语法概述,请访问 WSDL 语法 这一节。WSDL 端口<portType> 元素是最重要的 WSDL 元素。它可描述一个 web service、可被执行的操作,以及相关的消息。可以把 <portType> 元素比作传统编程语言中的一个函数库(或一个模块、或一个类)。WSDL 消息<message> 元素定义一个操作的数据元素。每个消息均由一个或多个部件组成。可以把这些部件比作传统编程语言中一个函数调用的参数。WSDL types<types> 元素定义 web service 使用的数据类型。为了最大程度的平台中立性,WSDL 使用 XML Schema 语法来定义数据类型。WSDL Bindings<binding> 元素为每个端口定义消息格式和协议细节。WSDL 实例这是某个 WSDL 文档的简化的片段:<message name="getTermRequest"> <part name="term" type="xs:string"/></message><message name="getTermResponse"> <part name="value" type="xs:string"/></message><portType name="glossaryTerms"> <operation name="getTerm"> <input message="getTermRequest"/> <output message="getTermResponse"/> </operation></portType>在这个例子中,<portType> 元素把 "glossaryTerms" 定义为某个端口的名称,把 "getTerm" 定义为某个操作的名称。操作 "getTerm" 拥有一个名为 "getTermRequest" 的输入消息,以及一个名为 "getTermResponse" 的输出消息。<message> 元素可定义每个消息的部件,以及相关联的数据类型。对比传统的编程,glossaryTerms 是一个函数库,而 "getTerm" 是带有输入参数 "getTermRequest" 和返回参数 getTermResponse 的一个函数。 另外,xmlns 就是表示xml的命名空间,可以自定义的,不管你写成什么样的对wsdl文件都不会有影响 IE缓存问题。。。 BigDecimal类型的数据怎么样累加 算总计。 最讨厌发帖啦。说明了学艺不精。郁闷。问个问题。 Ajax dwr框架 错误req未定义 初学EE看什么书比较好? struts中的动态actionform 求救:关于hibernate的问题! jb8、9版本 用weblogic 7 的问题!!!!!!!!! 应该怎么部署呢? java实现批量下载 帮____wo,给我一个思路,我能撑起整个银河! 谁能给我发一下x-fire整合Spring的示例给我...?
WSDL 文档结构
WSDL 文档是利用这些主要的元素来描述某个 web service 的:元素 定义
<portType> web service 执行的操作
<message> web service 使用的消息
<types> web service 使用的数据类型
<binding> web service 使用的通信协议 一个 WSDL 文档的主要结构是类似这样的:<definitions><types>
definition of types........
</types><message>
definition of a message....
</message><portType>
definition of a port.......
</portType><binding>
definition of a binding....
</binding></definitions>WSDL 文档可包含其它的元素,比如 extension 元素,以及一个 service 元素,此元素可把若干个 web services 的定义组合在一个单一的 WSDL 文档中。如需完整的语法概述,请访问 WSDL 语法 这一节。
WSDL 端口
<portType> 元素是最重要的 WSDL 元素。
它可描述一个 web service、可被执行的操作,以及相关的消息。
可以把 <portType> 元素比作传统编程语言中的一个函数库(或一个模块、或一个类)。WSDL 消息
<message> 元素定义一个操作的数据元素。
每个消息均由一个或多个部件组成。可以把这些部件比作传统编程语言中一个函数调用的参数。WSDL types
<types> 元素定义 web service 使用的数据类型。
为了最大程度的平台中立性,WSDL 使用 XML Schema 语法来定义数据类型。WSDL Bindings
<binding> 元素为每个端口定义消息格式和协议细节。WSDL 实例
这是某个 WSDL 文档的简化的片段:
<message name="getTermRequest">
<part name="term" type="xs:string"/>
</message><message name="getTermResponse">
<part name="value" type="xs:string"/>
</message><portType name="glossaryTerms">
<operation name="getTerm">
<input message="getTermRequest"/>
<output message="getTermResponse"/>
</operation>
</portType>
在这个例子中,<portType> 元素把 "glossaryTerms" 定义为某个端口的名称,把 "getTerm" 定义为某个操作的名称。操作 "getTerm" 拥有一个名为 "getTermRequest" 的输入消息,以及一个名为 "getTermResponse" 的输出消息。<message> 元素可定义每个消息的部件,以及相关联的数据类型。对比传统的编程,glossaryTerms 是一个函数库,而 "getTerm" 是带有输入参数 "getTermRequest" 和返回参数 getTermResponse 的一个函数。