My Oracle Support Banner

SOA Spring Framework sends only a single Java JAXB SOAP Header in the request (Doc ID 1989980.1)

Last updated on MARCH 06, 2019

Applies to:

Oracle SOA Suite - Version 11.1.1.6.0 and later
Information in this document applies to any platform.

Symptoms

On : 11.1.1.6.0 version, BPEL Service Engine

ACTUAL BEHAVIOR
---------------
When an external service is called from a Spring component with multiple parameters (WebParams with header=true) only the last parameter is getting added into the header. Previous headers are getting removed or overwritten. For eg.

 

Application code is inserting 2 parameters in SOAP Header (named AppParameters & sessionParams) and the message sent is only with single header as below).

- <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="" title="Click (or CTRL+Click if using Firefox) to view" name="contextTextUrl_1426517037907" target="_blank">http://www.w3.org/2005/08/addressing">
- <env:Header>
- <SessionMaintainParams xmlns="http://drm.webservices.epm.oracle" xmlns:xsi="" title="Click (or CTRL+Click if using Firefox) to view" name="contextTextUrl_1426517037908" target="_blank">http://www.w3.org/2001/XMLSchema-instance">
 <sessionId>?</sessionId>
 </SessionMaintainParams>

 

In the above, only one header was added and AppParameters was missing.

EXPECTED BEHAVIOR
-----------------------
Spring framework should handle multiple parameters and add all of them. For eg.

- <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="" title="Click (or CTRL+Click if using Firefox) to view" name="contextTextUrl_1426517037907" target="_blank">http://www.w3.org/2005/08/addressing">
- <env:Header>
- <AppParameters xmlns="http://drm.webservices.epm.oracle" xmlns:xsi="" title="Click (or CTRL+Click if using Firefox) to view" name="contextTextUrl_1426517037907" target="_blank">http://www.w3.org/2001/XMLSchema-instance">
 <serverUrl>http://<HOST>:<PORT>/Oracle/Drm/APIAdapter</serverUrl>
 <sessionParams>ProductVersion=11.1.2,CultureName=en-US,TimeZoneOffset=-360</sessionParams>
 </AppParameters>
- <SessionMaintainParams xmlns="http://drm.webservices.epm.oracle" xmlns:xsi="" title="Click (or CTRL+Click if using Firefox) to view" name="contextTextUrl_1426517037908" target="_blank">http://www.w3.org/2001/XMLSchema-instance">
 <sessionId>?</sessionId>
 </SessionMaintainParams>

 

In the above, both parameters are present (all n parameters should present not just one parameter).




Changes

 

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Changes
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.