throw ExceptionFactory.
makeWebServiceException(Messages.getMessage("invalidEndpointReference",
e.toString()));
}
EndpointDescription endpointDesc =
DescriptionFactory.updateEndpoint(serviceDescription, null, axis2EPR,
addressingNamespace,
DescriptionFactory.UpdateType.CREATE_DISPATCH,
this);
if (endpointDesc == null) {
throw ExceptionFactory.makeWebServiceException(
Messages.getMessage("endpointDescriptionConstructionFailure",
jaxwsEPR.toString()));
}
XMLDispatch<T> dispatch = new XMLDispatch<T>(this, endpointDesc, axis2EPR, addressingNamespace, features);
if (mode != null) {
dispatch.setMode(mode);
} else {
dispatch.setMode(Service.Mode.PAYLOAD);
}
if (serviceClient == null)
serviceClient = getServiceClient(endpointDesc.getPortQName());
if(type == OMElement.class) {
if (log.isDebugEnabled()) {
log.debug("This a Dispatch<OMElement>. The custom builder is installed.");
}