webservie通過http訪問時的請求報文

<?xml version="1.0" encoding="utf-8"?>  
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">  
  <soap:Body>  
    <test01 xmlns="http://springboot.demo.com/">  
      
    </test01>  
  </soap:Body>  
</soap:Envelope>

請求的content-type要設置爲text/xml。

test01爲請求的方法明名,springboot.demo.com爲請求方法所在類的的包名倒寫,test01方法如有參數可繼續添加xml屬性

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章