private void inferEndpoint(MessageContext msgCtx, AxisService service) { if (!msgCtx.isServerSide()) { return; } String transport = null; TransportInDescription transportIn = msgCtx.getTransportIn(); if (transportIn != null) { transport = transportIn.getName(); if (transport == null) { return; } } AxisEndpoint endpoint = null; Map endpointMapping = service.getEndpoints(); String serviceName = service.getName(); if (msgCtx.isDoingREST()) { endpoint = (AxisEndpoint) endpointMapping.get(WSDLUtil. getEndpointName(serviceName, transport)); } if (endpoint != null) { msgCtx.setProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME, endpoint); } } }
private void inferEndpoint(MessageContext msgCtx, AxisService service) { if (!msgCtx.isServerSide()) { return; } String transport = null; TransportInDescription transportIn = msgCtx.getTransportIn(); if (transportIn != null) { transport = transportIn.getName(); if (transport == null) { return; } } AxisEndpoint endpoint = null; Map endpointMapping = service.getEndpoints(); String serviceName = service.getName(); if (msgCtx.isDoingREST()) { endpoint = (AxisEndpoint) endpointMapping.get(WSDLUtil. getEndpointName(serviceName, transport)); } if (endpoint != null) { msgCtx.setProperty(WSDL2Constants.ENDPOINT_LOCAL_NAME, endpoint); } } }