Set up any transport-specific derived properties in the message context.
if (action != null) {
mc.setUseSOAPAction(true);
mc.setSOAPActionURI(action);
}
// Set up any cookies we know about
if (cookie != null)
mc.setProperty(HTTPConstants.HEADER_COOKIE, cookie);
if (cookie2 != null)
mc.setProperty(HTTPConstants.HEADER_COOKIE2, cookie2);
// Allow the SOAPAction to determine the service, if the service
// (a) has not already been determined, and (b) if a service matching
// the soap action has been deployed.
if (mc.getService() == null) {
mc.setTargetService( (String)mc.getSOAPActionURI() );
}