国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁(yè) > 開發(fā) > 綜合 > 正文

SOAP學(xué)習(xí)筆記(1)

2024-07-21 02:15:55
字體:
來(lái)源:轉(zhuǎn)載
供稿:網(wǎng)友

最大的網(wǎng)站源碼資源下載站,


一       soap roles and soap nodes

soap node



the embodiment of the processing logic necessary to transmit, receive, process and/or relay a soap message, according to the set of conventions defined by this recommendation. a soap node is responsible for enforcing the rules that govern the exchange of soap messages (see 2. soap processing model). it accesses the services provided by the underlying protocols through one or more soap bindings.



soap role



a soap receiver's expected function in processing a message. a soap receiver can act in multiple roles.



【理解】



soap node是一個(gè)實(shí)際存在的節(jié)點(diǎn),該節(jié)點(diǎn)可以處理soap消息,soap node是一種物理上的概念;soap role是處理soap消息時(shí),soap node所扮演的角色,是一個(gè)邏輯上的概念。一個(gè)soap node可以扮演多個(gè)soap role,一個(gè)soap role也可以由多個(gè)soap node所扮演。


 


二       預(yù)定義的soap role


short-name



name



description



next

"http://www.w3.org/2003/05/soap-envelope/role/next"

each soap intermediary and the ultimate soap receiver must act in this role.

none

"http://www.w3.org/2003/05/soap-envelope/role/none"

soap nodes must not act in this role.

ultimatereceiver

"http://www.w3.org/2003/05/soap-envelope/role/ultimatereceiver"

the ultimate receiver must act in this role.



 


三       處理soap消息的過程

1.      determine the set of roles in which the node is to act. the contents of the soap envelope, including any soap header blocks and the soap body, may be inspected in making such determination.



2.      identify all header blocks targeted at the node that are mandatory.



3.      if one or more of the soap header blocks identified in the preceding step are not understood by the node then generate a single soap fault with the value of code set to "env:mustunderstand" (see 5.4.8 soap mustunderstand faults). if such a fault is generated, any further processing must not be done. faults relating to the contents of the soap body must not be generated in this step.



4.      process all mandatory soap header blocks targeted at the node and, in the case of an ultimate soap receiver, the soap body. a soap node may also choose to process non-mandatory soap header blocks targeted at it.



5.      in the case of a soap intermediary, and where the soap message exchange pattern and results of processing (e.g. no fault generated) require that the soap message be sent further along the soap message path, relay the message as described in section 2.7 relaying soap messages.




 


四       relaying soap messages (relayable soap header blocks)


role



header block



short-name



assumed



understood & processed



forwarded



next

yes

yes

no, unless reinserted

no

no, unless relay ="true"

user-defined

yes

yes

no, unless reinserted

no

no, unless relay ="true"

no

n/a

yes

ultimatereceiver

yes

yes

n/a

no

n/a

none

no

n/a

yes


【理解】



所謂relaying soap message(soap消息重放)僅是在soap node處理一個(gè)header block,但卻因?yàn)椴荒芾斫庠揾eader block(can’t understand)而忽略該header block時(shí)才有意義,(這個(gè)header block沒有設(shè)置mustunderstand為true,否則無(wú)法理解時(shí)應(yīng)返回一個(gè)soap fault,而不是繼續(xù)向前傳遞soap消息,這時(shí)也沒有relay的意義)。這時(shí)若header block的relay屬性為true,則soap node必須將該header block保留在soap消息中,并向前轉(zhuǎn)發(fā)給下一個(gè)soap node。

總結(jié)來(lái)說(shuō),soap消息重放僅對(duì)soap中間節(jié)點(diǎn)(soap intermediary)有意義,并且僅當(dāng)該中間節(jié)點(diǎn)無(wú)法處理一個(gè)需由它處理但又未設(shè)置mustunderstand屬性為true的header block時(shí)有意義,該header block將被保留在soap消息中,并向前轉(zhuǎn)發(fā)給下一個(gè)soap node。


 


五       soap中間節(jié)點(diǎn)生成的soap消息

soap中間節(jié)點(diǎn)必須按照第三部分所描述的方式處理其收到的soap消息,并按以下方式生成一個(gè)新的soap消息,并將其向前傳遞給下一個(gè)soap node。
remove all processed soap header blocks.

remove all non-relayable soap header blocks that were targeted at the forwarding node but ignored during processing.

retain all relayable soap header blocks that were targeted at the forwarding node but ignored during processing.

insert or reinsert some header blocks if the soap intermediary determined to do that. the header blocks that were inserted or reinserted might be indistinguishable from one or more of the header blocks removed by the intermediary. processing is defined here in terms of re-inserting header blocks (rather than leaving them in place) to emphasize the need to process them at each soap node along the soap message path.



 

發(fā)表評(píng)論 共有條評(píng)論
用戶名: 密碼:
驗(yàn)證碼: 匿名發(fā)表
主站蜘蛛池模板: 大宁县| 绍兴市| 黄浦区| 抚顺市| 凌源市| 沐川县| 安顺市| 宜章县| 澎湖县| 米脂县| 荆门市| 土默特左旗| 双柏县| 城市| 朝阳区| 汉沽区| 青浦区| 大邑县| 赤水市| 兖州市| 普安县| 临武县| 辽阳市| 鹤峰县| 阿荣旗| 怀柔区| 宜宾市| 衡南县| 普洱| 建平县| 芜湖市| 德保县| 双桥区| 柞水县| 乡城县| 宿松县| 德钦县| 渑池县| 沙湾县| 抚州市| 株洲市|