Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536.1K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.6K Security Software
how to change SOAP Header elment in OSB?

I need to change the soap header in OSB message flow,which action can be used here?
before change
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Header>
</soap:Header>
...
...
</soap:Envelope>
after chage
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Header>
<id>11<id>
<name>XX</name>
</soap:Header>
...
...
</soap:Envelope>
Best Answer
-
Use a replace/assign action to the $header context variable..
Answers
-
Use a replace/assign action to the $header context variable..
-
year,it works! thanks!
by the way, can i use insert action to change it?
-
i have a try, insert action also can do this . My XPATH expression xpression is write wrong before.
-
The After soap header is invalid.
All immediate children of soap:Header MUST be namespace-qualified.
Vlad
P.S. Insert action is a better choice because it doesn't remove any existing headers that may be inject by some future intermediary systems you may not know about at the development time.