0
需要打一個SOAP服務,其請求結構看,如下使用Spring集成
春天INTEGARTION創建自定義標題,我們可以能夠形成主體部分和打服務,並得到響應。
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2003/05/soap-envelope/"
soap:encodingStyle="http://www.w3.org/2003/05/soap-encoding">
<soap:Header>
<m:Trans xmlns:m="https://www.w3schools.com/transaction/"soap:mustUnderstand="1">234
</m:Trans>
<authheader>
<username> uname</username>
<password>password</password>
</authheader>
</soap:Header>
<soap:Body xmlns:m="http://www.example.org/stock">
<m:GetStockPriceResponse>
<m:Price>34.5</m:Price>
</m:GetStockPriceResponse>
</soap:Body>
但如何形成的頭部部分與身體一起在出站網關發送的呢?
有人可以幫忙嗎?