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

Last updated on JULY 14, 2015

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="http://www.w3.org/2005/08/addressing">
- <env:Header>
- <SessionMaintainParams xmlns="http://drm.webservices.epm.oracle" xmlns:xsi="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="http://www.w3.org/2005/08/addressing">
- <env:Header>
- <AppParameters xmlns="http://drm.webservices.epm.oracle" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <serverUrl>http://mutsubra-pc:5241/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="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).




Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms