偷偷摘套内射激情视频,久久精品99国产国产精,中文字幕无线乱码人妻,中文在线中文a,性爽19p

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

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

對(duì)于SOAP協(xié)議的一些基本概念我們?cè)谶@里不多贅述了。前面我們也對(duì)SOAP封裝的內(nèi)容進(jìn)行了一些舉例講解,這里我們?cè)賮韺?duì)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

2024-10-10 11:49:27

2010-09-02 16:34:13

SOAP協(xié)議

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

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

2022-01-12 15:50:24

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

2022-10-26 14:55:53

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

2022-09-13 15:22:04

邊緣計(jì)算云計(jì)算

2023-02-26 00:00:00

2013-01-10 09:47:09

HBase性能優(yōu)化
點(diǎn)贊
收藏

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