SOAP 封套
来源:互联网 发布:手机淘宝咸鱼在哪找 编辑:程序博客网 时间:2024/03/28 18:53
SOAP 封套
作者:w3pop.com 翻译/整理:w3pop.comThe mandatory SOAP Envelope element is the root element of a SOAP message.
具有强制性的SOAP封套(Envelope)元素是SOAP信息的根元素。
The SOAP Envelope Element
SOAP封套元素
The required SOAP Envelope element is the root element of a SOAP message. It defines the XML document as a SOAP message.
必要的SOAP封套元素是SOAP元素的根元素。它把XML文件定义为SOAP信息。
Note the use of the xmlns:soap namespace. It should always have the value of:
注意xmlns:soap命名空间(namespace)的使用。它一般含有以下值:
http://www.w3.org/2001/12/soap-envelope
and it defines the Envelope as a SOAP Envelope:
它以SOAP 封套(Envelope)的形式定义了封套(Envelope)。
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
...
Message information goes here
...
</soap:Envelope>
The xmlns:soap Namespace
xmlns:soap命名空间
A SOAP message must always have an Envelope element associated with the "http://www.w3.org/2001/12/soap-envelope" namespace.
SOAP信息必须含有与"http://www.w3.org/2001/12/soap-envelope" 命名空间相关的Envelope元素。
If a different namespace is used, the application must generate an error and discard the message.
如果使用了不同的命名空间,那应用程序肯定会产生一个错误信息并忽略信息。
The encodingStyle Attribute
encodingStyle属性
The SOAP encodingStyle attribute is used to define the data types used in the document. This attribute may appear on any SOAP element, and it will apply to that element's contents and all child elements. A SOAP message has no default encoding.
SOAPencodingStyle属性的作用:定义用于文档中的数据类型。属性可能会在任何SOAP元素中出现,并且会应用于元素的内容及其所有子元素上。SOAP信息没有默认编码。
Syntax
语法
soap:encodingStyle="URI"
Example
实例
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
...
Message information goes here
...
</soap:Envelope>
- SOAP 封套
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- soap
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- SOAP
- 可重用的 Hsqldb 启动、停止之 Ant 任务脚手架
- NetBeans VS Eclipse,新一轮的争端
- 怎么抉摘?
- 一道面试题目4
- 郊外度假
- SOAP 封套
- Dynamic Programming Algorithm (DPA) for Edit-Distance
- netbeans 6.0 里程碑版第9版释出
- ghost参数详细说明
- 什么是刀片服务器
- ghost示例
- sql server里charindex函数的oracle替代?
- SOAP Header
- Ajax技术简介