WebSphere

Example: Creating a new SOAP header

This example shows you how to create a new SOAP header for the ServiceMessageObject object inside a Custom Mediation primitive.

Context

The following code sample shows you how to create a new SOAP header for the ServiceMessageObject object inside a Custom Mediation primitive. The Custom Mediation primitive is used to replace the SOAP header inside an incoming ServiceMessageObject object.

Requirements

You must know how to set up a mediation flow with a Custom Mediation primitive.

Java imports

import com.ibm.websphere.sibx.smobo.SOAPHeaderType; 
import com.ibm.websphere.sibx.smobo.ServiceMessageObjectFactory;

Code sample

. 
. 
. 
ServiceMessageObjectFactory smoFactory = ServiceMessageObjectFactory.eINSTANCE; 
SOAPHeaderType SoapHeader = smoFactory.createSOAPHeaderType();
This code sample creates a new SOAP header. An exception occurs if the code sample fails.

reference Reference topic

Terms of use | Feedback


Timestamp icon Last updated: 20 June 2010 00:39:51 BST (DRAFT)


http://publib.boulder.ibm.com/infocenter/dmndhelp/v6r2mx/topic//com.ibm.wbit.help.medprim620.doc/ref/example_newSOAPheader.html
Copyright IBM Corporation 2005, 2010. All Rights Reserved.
This information center is powered by Eclipse technology (http://www.eclipse.org).
iDoc on