自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

四個SOAP協(xié)議應(yīng)答編碼例子

網(wǎng)絡(luò) 網(wǎng)絡(luò)管理
這里我們主要講解了4個SOAP協(xié)議應(yīng)答編碼的例子,希望大家通過下面的例子可以得到一些參考,對于今后的學(xué)習(xí)能夠有一個輔助。

對于SOAP協(xié)議的一些基本概念我們在這里不多贅述了。前面我們也對SOAP封裝的內(nèi)容進行了一些舉例講解,這里我們再來對SOAP協(xié)議應(yīng)答編碼的一些例子盡心改一下介紹。

SOAP協(xié)議應(yīng)答編碼例1

  1. HTTP/1.1 200 OK  
  2. Content-Type: text/xml; charset="utf-8" 
  3. Content-Length: nnnn  
  4. <SOAP-ENV:Envelope 
  5. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
  6. SOAP-ENV:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
  7. <SOAP-ENV:Header> 
  8. <t:Transaction xmlns:t="some-URI" xsi:type="xsd:int" mustUnderstand="1"> 5 </t:Transaction> 
  9. </SOAP-ENV:Header> 
  10. <SOAP-ENV:Body> 
  11. <m:GetLastTradePriceResponse xmlns:m="Some-URI"> 
  12. <Price>34.5</Price> 
  13. </m:GetLastTradePriceResponse> 
  14. </SOAP-ENV:Body> 
  15. </SOAP-ENV:Envelope> 

SOAP協(xié)議應(yīng)答編碼例2

  1. HTTP/1.1 200 OK  
  2. Content-Type: text/xml; charset="utf-8" 
  3. Content-Length: nnnn  
  4. <SOAP-ENV:Envelope 
  5. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
  6. SOAP-ENV:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
  7. <SOAP-ENV:Body> 
  8. <m:GetLastTradePriceResponse 
  9. xmlns:m="Some-URI"> 
  10. <PriceAndVolume> 
  11. <LastTradePrice> 34.5 </LastTradePrice> 
  12. <DayVolume> 10000 </DayVolume> 
  13. </PriceAndVolume> 
  14. </m:GetLastTradePriceResponse> 
  15. </SOAP-ENV:Body> 
  16. </SOAP-ENV:Envelope> 

SOAP協(xié)議應(yīng)答編碼例3

  1. HTTP/1.1 500 Internal Server Error  
  2. Content-Type: text/xml; charset="utf-8" 
  3. Content-Length: nnnn  
  4. <SOAP-ENV:Envelope 
  5. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
  6. <SOAP-ENV:Body> 
  7. <SOAP-ENV:Fault> 
  8. <faultcode>SOAP-ENV:MustUnderstand</faultcode> 
  9. <faultstring>SOAP Must Understand Error</faultstring> 
  10. </SOAP-ENV:Fault> 
  11. </SOAP-ENV:Body> 
  12. </SOAP-ENV:Envelope> 

SOAP協(xié)議應(yīng)答編碼例4

  1. HTTP/1.1 500 Internal Server Error  
  2. Content-Type: text/xml; charset="utf-8" 
  3. Content-Length: nnnn  
  4. <SOAP-ENV:Envelope 
  5. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> 
  6. <SOAP-ENV:Body> 
  7. <SOAP-ENV:Fault> 
  8. <faultcode>SOAP-ENV:Server</faultcode> 
  9. <faultstring>Server Error</faultstring> 
  10. <detail> 
  11. <e:myfaultdetails xmlns:e="Some-URI"> 
  12. <message> 
  13. My application didn't work  
  14. </message> 
  15. <errorcode> 1001 </errorcode> 
  16. </e:myfaultdetails> 
  17. </detail> 
  18. </SOAP-ENV:Fault> 
  19. </SOAP-ENV:Body> 
  20. </SOAP-ENV:Envelope> 

 

責(zé)任編輯:佟健 來源: 互聯(lián)網(wǎng)
相關(guān)推薦

2009-05-20 10:09:55

編碼習(xí)慣代碼風(fēng)格Java

2010-09-10 15:26:05

SOAP封裝

2022-02-23 15:09:18

數(shù)字化轉(zhuǎn)型國有企業(yè)數(shù)據(jù)

2009-04-21 09:59:00

RIP路由協(xié)議

2010-09-02 16:39:30

SOAP協(xié)議

2010-09-02 16:46:52

SOAP協(xié)議

2013-03-18 13:31:28

2024-06-25 12:45:05

2010-09-02 16:34:13

SOAP協(xié)議

2024-10-10 11:49:27

2020-06-04 08:15:53

Kubernetes容器PaaS

2022-06-27 23:31:01

JavaScript框架開發(fā)

2025-04-21 06:25:00

2010-07-14 17:29:36

SOAP協(xié)議

2020-08-13 10:29:55

項目管理項目經(jīng)理CIO

2022-10-26 14:55:53

AIoT物聯(lián)網(wǎng)人工智能

2022-01-12 15:50:24

JavaScript開發(fā)循環(huán)

2010-12-03 09:53:49

WAN優(yōu)化

2010-05-25 16:56:05

voip系統(tǒng)組成

2009-03-13 09:39:34

JavaScript函數(shù)調(diào)用規(guī)則
點贊
收藏

51CTO技術(shù)棧公眾號