Add child elements to custom SOAP header in Spring-WS

后端 未结 4 856
清酒与你
清酒与你 2020-12-30 04:09

I am calling a SOAP webservice with Spring-WS. The webservice in question requires me to pass some information in the SOAP header as shown here:



        
4条回答
  •  情歌与酒
    2020-12-30 04:43

    I'm not pleased with this solution, but as it turns out you can actually cast the message to a SOAPMessage which gives you full access to all the SAAJ apis. From there you can build whatever elements you want inside the header.

提交回复
热议问题