珍惜现在的每一分钟,全力以赴自己的梦想。 Jump for the sun, at least you land on the moon.

[StepbyStep]: Notes for SOAP 2 - SOAP元素:Envelope

上一篇 / 下一篇  2008-12-24 13:47:47 / 个人分类:测试技术

SOAP Envelope 元素51Testing软件测试网-B!h7D,c X2nL2b

 

7a4Wky8q0g0

必需的 SOAP Envelope 元素是 SOAP 消息的根元素。它可把 XML 文档定义为 SOAP 消息。注意 xmlns:soap 命名空间的使用。它的值应当始终是:http://www.w3.org/2001/12/soap-envelope并且它可把封装定义为 SOAP 封装:51Testing软件测试网}O+e'`bzz/b

 

SO5I(OP)d0

<?xml version="1.0"?>

%AD^a)Ym0

<soap:Envelope51Testing软件测试网"F ]@![V'v

xmlns:soap="http://www.w3.org/2001/12/soap-envelope"

;[,qJ|&We[0g0

soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

G#\PxOF*sN T0

  ...

)R%w2p @6@)C0

  Message information goes here51Testing软件测试网0h.U kb0U$A c

  ...51Testing软件测试网/ZR;w*a%V'DQ

</soap:Envelope>51Testing软件测试网 CMG4C%mx

 51Testing软件测试网CM/x+N Pz8n4|:oi;^

xmlns:soap 命名空间51Testing软件测试网m#YR!l?5D:NX;Z

 51Testing软件测试网h/ay3N"Z#]

SOAP 消息必须拥有与命名空间 "http://www.w3.org/2001/12/soap-envelope" 相关联的一个 Envelope 元素。如果使用了不同的命名空间,应用程序会发生错误,并抛弃此消息。

y4CTOT*u U(m0

 

kj M,T9[ FvtT*@1[x0

encodingStyle 属性 51Testing软件测试网/J0? ~"k3iz`no}S

 

7U.i$V}$RwP@@0

SOAP encodingStyle 属性用于定义在文档中使用的数据类型。此属性可出现在任何 SOAP 元素中,并会被应用到元素的内容及元素的所有子元素上。SOAP 消息没有默认的编码方式。

)lD~2FM/N9\1A;H/k*j0

 

`&fD"L#G i7\cq*K0

语法51Testing软件测试网}eQ'Q:j6p-J

 51Testing软件测试网(]n5KoIH

soap:encodingStyle="URI"

"R8V!wj?F3Z Ky0

 51Testing软件测试网;p.{Y/o:Ea

实例51Testing软件测试网1PZNN!i*`#k

 51Testing软件测试网 { ^A[3vV0P

<?xml version="1.0"?>51Testing软件测试网,ND8^6s7Pi[4W

<soap:Envelope51Testing软件测试网? C%drTQ+?8?

xmlns:soap="http://www.w3.org/2001/12/soap-envelope"

$AeM&b9f*u4MO0

soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">

kDhy in0

...51Testing软件测试网U#xOwf7Z7\

Message information goes here51Testing软件测试网:Q.a||cyZ CC*uG

...

;Q^kds6Gh0

</soap:Envelope>51Testing软件测试网9G ?&J9e/l h+\


TAG: 测试技术

 

评分:0

我来说两句

Open Toolbar