return new Axis2SynapseMessage(msgCtx);
}
public static Axis2SynapseMessage createSampleSOAP11MessageWithAddressing(
String testingRepository) {
Axis2SynapseMessage sm =
createSampleSOAP11MessageWithoutAddressing(testingRepository);
SOAPFactory fac = OMAbstractFactory.getSOAP11Factory();
OMNamespace wsaTo = fac.createOMNamespace(Submission.WSA_NAMESPACE,"wsa");
SOAPHeaderBlock addressingToHeaderBlock = fac.createSOAPHeaderBlock("To",wsaTo, sm.getEnvelope().getHeader());
addressingToHeaderBlock.setText(URN_SAMPLE_TO_ADDRESS);
sm.getEnvelope().getHeader().addChild(addressingToHeaderBlock);
return sm;
}