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

兩個SOAP封裝例子

網(wǎng)絡 網(wǎng)絡管理
這里我們針對SOAP封裝的內(nèi)容,列舉了兩個代碼例子。那么通過下面的兩則例子,希望大家能夠得到一些有價值的參考。

對于SOAP協(xié)議的內(nèi)容,我們在前面的文章中已經(jīng)講解過了它的基礎內(nèi)容。這里我們主要針對SOAP封裝進行一下案例的分析。那么下邊我們主要舉出了兩個SOAP封裝的例子,給大家提供一個參考。

SOAP封裝:請求編碼舉例

SOAP封裝例1

  1. POST /StockQuote HTTP/1.1  
  2. Host: www.stockquoteserver.com  
  3. Content-Type: text/xml; charset="utf-8" 
  4. Content-Length: nnnn  
  5. SOAPAction: "Some-URI"  
  6. <SOAP-ENV:Envelope 
  7. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
  8. SOAP-ENV:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
  9. <SOAP-ENV:Header> 
  10. <t:Transaction 
  11. xmlns:t="some-URI" 
  12. SOAP-ENV:mustUnderstand="1"> 
  13. 5  
  14. </t:Transaction> 
  15. </SOAP-ENV:Header> 
  16. <SOAP-ENV:Body> 
  17. <m:GetLastTradePrice xmlns:m="Some-URI"> 
  18. <symbol>DEF</symbol> 
  19. </m:GetLastTradePrice> 
  20. </SOAP-ENV:Body> 
  21. </SOAP-ENV:Envelope> 

SOAP封裝例2

  1. POST /StockQuote HTTP/1.1  
  2. Host: www.stockquoteserver.com  
  3. Content-Type: text/xml; charset="utf-8" 
  4. Content-Length: nnnn  
  5. SOAPAction: "Some-URI"  
  6. <SOAP-ENV:Envelope 
  7. xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
  8. SOAP-ENV:encodingstyle="http://schemas.xmlsoap.org/soap/encoding/"/> 
  9. <SOAP-ENV:Body> 
  10. <m:GetLastTradePriceDetailed 
  11. xmlns:m="Some-URI"> 
  12. <Symbol>DEF</Symbol> 
  13. <Company>DEF Corp</Company> 
  14. <Price>34.1</Price> 
  15. </m:GetLastTradePriceDetailed> 
  16. </SOAP-ENV:Body> 
  17. </SOAP-ENV:Envelope> 

 

責任編輯:佟健 來源: hi.baidu.com
相關推薦

2010-09-10 15:33:26

SOAP協(xié)議應答編碼

2009-08-12 16:37:22

C#變量類型轉(zhuǎn)換

2021-02-07 21:59:39

Java回調(diào)機制

2022-06-17 09:46:51

Chrome 102Chrome瀏覽器

2020-11-13 07:16:09

線程互斥鎖死循環(huán)

2009-07-16 10:39:00

SwingUtilit

2009-07-15 18:29:22

Jython應用

2021-08-03 08:13:47

數(shù)據(jù)

2017-01-15 01:45:37

簡歷簡歷模板數(shù)據(jù)

2010-07-02 12:26:51

LEACH協(xié)議

2010-09-17 09:51:37

SIP路由

2019-06-25 10:46:04

Flutter開發(fā)APP

2016-03-31 11:28:21

imageView圖片輪播

2010-07-25 14:31:54

Telnet程序

2013-05-30 22:47:40

阿里巴巴阿里云昆塔盒子總動員

2012-01-18 11:02:37

Tomcat

2010-02-25 16:45:13

WCF應用技巧

2010-08-23 17:34:06

DHCP協(xié)議

2012-10-18 09:24:14

Office 365
點贊
收藏

51CTO技術棧公眾號