This example shows you how to create a new SOAP header for the ServiceMessageObject object inside a Custom Mediation primitive.
import com.ibm.websphere.sibx.smobo.SOAPHeaderType; import com.ibm.websphere.sibx.smobo.ServiceMessageObjectFactory;
. . . ServiceMessageObjectFactory smoFactory = ServiceMessageObjectFactory.eINSTANCE; SOAPHeaderType SoapHeader = smoFactory.createSOAPHeaderType();This code sample creates a new SOAP header. An exception occurs if the code sample fails.