Sunday, December 4, 2011

SOA11G: SOAP Header in Mediator 11G - BUG

Passing SOAP Header in Mediator is supported in 11G with very GUI support.

To receive the SOAP elements in mediator expression builder it is necessary that a SOAP Header is explicitly declared in the WSDL of the mediator. Likewise to send SOAP elements from Mediator to a target SOAP service, for expression builder a SOAP Header is to be defined explicitly in the WSDL of target SOAP Service.

For better understanding on defining SOAP Header in WSDL -
http://www.ibm.com/developerworks/xml/library/ws-tip-headers/index.html

Defining SOAP Header in the WSDLs:


In Mediator Expression Builder for Assign Values, we can select SOAP Header:


In Mediator Expression Builder for Assign Values, we can assign SOAP Header:


This way SOAP Header could be passed.

BUG Description: Observe how the root element of the SOAP Header has ns2_ETHHEADER (namespacePrefix_ElementName). Now what if the Element name itself has an Underscore in it, i.e. ETH_HEADER. Its an identified BUG with Oracle and has been solved in 11.1.1.6.

SOLUTION:
• Oracle has given a back-port FIX for 11.1.1.4
• Don’t have underscore in the SOAP root element.
• Go for SOA 11.1.1.6

No comments:

Post a Comment