private void createCallbackEPR( String callbackAddress, MessageContext inMC, Message msg ) throws AxisFault {
if (callbackAddress != null ) {
// Check for special (& not allowed!) WS_Addressing values
checkCallbackAddress( callbackAddress, inMC );
//
EndpointReference from = assemblyFactory.createEndpointReference();
Endpoint fromEndpoint = assemblyFactory.createEndpoint();
from.setTargetEndpoint(fromEndpoint);
from.setStatus(EndpointReference.Status.WIRED_TARGET_FOUND_AND_MATCHED);
msg.setFrom(from);
RuntimeEndpoint callbackEndpoint = (RuntimeEndpoint)assemblyFactory.createEndpoint();
//
WebServiceBinding cbBinding = webServiceBindingFactory.createWebServiceBinding();
cbBinding.setURI(callbackAddress);
callbackEndpoint.setBinding(cbBinding);
//
callbackEndpoint.setURI(callbackAddress);
callbackEndpoint.setUnresolved(true);
from.setCallbackEndpoint(callbackEndpoint);
} // end if
} // end method createCallbackEPR