WSDL常用的名称空间 Prefix Namespace URI SynopsIs wsdlhttp:/schemas.xmlsoap.orgwsdl Namespace of WSDL grammar soaphttp://schemas.xmlsoap.orgwsdlsoap Namespace of WSDL extension binding for SOAP message http hitp://schemas.xm/soap.orgwsdlhttp Namespace of Wsdl extension binding Http protocol m⊥me hitp: /schemas. xmlsoap. org wsdl mime Namespace of WSDL extension binding for MIME protocol soapenchitp: /schemas. xmlsoap. org soap encoding Namespace of schema governing SOAP 1. I encoding soapenvhtp: //schemas.xmlsoap. org soap envelope Namespace of schema governing SOAP 1. I envelopes htp/www.w3.org200010xmlsCheMd- Namespace of schema governing XML Schema xsi instances. An instance is an XMl doct nstance conforms to a given XML Schema (xsd) fif ment that xsd hitp:/www.w3.org200010xmlschema Namespace of schema governing XML Schema (xsd tiles Namespace convention used to refer to the current WSDL document. The prefix is an acronym for"this tns (application or context-dependent) namespace. Assigning the targetNamespace value to this prefix is customary
WSDL——常用的名称空间
WSDL— import元素 < import>元素 能把服务定义的元素分割成独立的文档并在主文档中适当 的地方包含他们 a< import>元素导入另一个文件的名称空间 I<importnamespace=http://asf.gilsnet/xer" location="http://asf.gilsnet/xer/ez.xsd"/>
WSDL——import元素 ◼ <import>元素 ◼ 能把服务定义的元素分割成独立的文档并在主文档中适当 的地方包含他们. ◼ <import>元素导入另一个文件的名称空间
WSDL 基本服务描述 服务接口定义 是一种抽象的服务定义,它可以被多个服务实现定义实例 化和引用 与具体的 Web services部署细节无关,是可以复用的描述 服务接口包含WSDL元素,它们组成了服务描述中的可重 用部分 ty pes message operations portType
WSDL ◼ 基本服务描述 ◼ 服务接口定义 ◼ 是一种抽象的服务定义,它可以被多个服务实现定义实例 化和引用 ◼ 与具体的Web Services部署细节无关,是可以复用的描述 ◼ 服务接口包含 WSDL 元素,它们组成了服务描述中的可重 用部分 ◼ types : ◼ message : ◼ operations ◼ portType:
WSDL 基本服务描述 服务接口定义 ty pes 是一个数据类型定义的容器,包含了所有在消息定义 中需要的XML元素的类型定义 采用 XML Schema作为数据的规范定义 数据类型将映射到相应语言的相应类型如xsd: any Type元素 一般映射为 java. lang object类 <complexType name"SOAPStruct"> <all>> <element names"varString"type="string>> <element name=varInt"type=int"/> <element name"var Float"type=float>> </complexType>
WSDL ◼ 基本服务描述 ◼ 服务接口定义 ◼ types : ◼ 是一个数据类型定义的容器,包含了所有在消息定义 中需要的XML元素的类型定义 ◼ 采用XML Schema作为数据的规范定义 ◼ 数据类型将映射到相应语言的相应类型,如xsd:anyType元素 一般映射为java.lang.object类
WSDL 基本服务描述 n服务接口定义 a message 具体定义了在通信中使用的消息的数据结构 个消息包含一个或者多个<part>子元素,<part>子元素标识 独立的数据块和数据块所属的数据类型 <message name"EncodevalueRequest part name"value"type"xs int"/> <message> <message name"Encode valueResponse"> part name-return"type=xs: double </message>> <message names"Decodevaluerequest part name-value"type="xs: double/> </message> <message names"Decodevalueresponse> <part name=return"type=xs int"/> </message>
WSDL ◼ 基本服务描述 ◼ 服务接口定义 ◼ message : ◼ 具体定义了在通信中使用的消息的数据结构 ◼ 一个消息包含一个或者多个<part>子元素,<part>子元素标识 独立的数据块和数据块所属的数据类型