Extra Information is Included in the Response Headers Returned as Part of the Response Message

When standard HTTP headers are used in the response headers as part of the response message, extra information is included as part of the returned output data at runtime. This issue occurs only when headers are used in the SOAP Adapter. Without headers, the output is returned without extra information in the response message.

The extra information is not an extra namespace. It is a valid namespace matching the prefix of the element. Without headers, the namespace comes as an attribute in the root element. With headers, since elements are converted from a wrapper, the child elements are copied along with their namespaces.

For example, with a connection that uses the same web service, but one with a header (custom HTTP Header) and another one without a header, the body elements in the response message are different as shown below:

Without a header:

<nstrgmpr:result>            
   <nsmpr6:PartyId>10</nsmpr6:PartyId>
   <nsmpr6:PartyName>Acme Corp</nsmpr6:PartyName>
</nstrgmpr:result>

With a header:

<nsmpr2:result>
   <nsmpr8:PartyId
xmlns:nsmpr8="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/">10
   </nsmpr8:PartyId>
            <nsmpr8:PartyName
xmlns:nsmpr8="http://xmlns.oracle.com/apps/cdm/foundation/parties/organizationService/">Acme Corp
            </nsmpr8:PartyName>
   </nsmpr2:result>