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>
但如何形成的头部部分与身体一起在出站网关发送的呢?
有人可以帮忙吗?