String returnIP = null; if (epr != null) { String existingProtocol = org.apache.axis2.util.Utils.getURIScheme(epr); if (existingProtocol != null) { for (int i = 0; i < eprs.length; i++) { if (existingProtocol.equals(org.apache.axis2.util.Utils.getURIScheme(eprs[i]))) { returnIP = eprs[i]; break;
String returnIP = null; if (epr != null) { String existingProtocol = org.apache.axis2.util.Utils.getURIScheme(epr); if (existingProtocol != null) { for (int i = 0; i < eprs.length; i++) { if (existingProtocol.equals(org.apache.axis2.util.Utils.getURIScheme(eprs[i]))) { returnIP = eprs[i]; break;
private void setServiceEPR(AxisService axisService, String urlString) throws Exception { // User can pass multiple location URIs, delimited by a comma. String[] urls = urlString.split(","); for (String url : urls) { Utils.addSoap11Endpoint(axisService, url); Utils.addSoap12Endpoint(axisService, url); if ("http".equals(org.apache.axis2.util.Utils.getURIScheme(url)) || "https".equals(org.apache.axis2.util.Utils.getURIScheme(url))) { Utils.addHttpEndpoint(axisService, url); } } }
private void setServiceEPR(AxisService axisService, String urlString) throws Exception { // User can pass multiple location URIs, delimited by a comma. String[] urls = urlString.split(","); for (String url : urls) { Utils.addSoap11Endpoint(axisService, url); Utils.addSoap12Endpoint(axisService, url); if ("http".equals(org.apache.axis2.util.Utils.getURIScheme(url)) || "https".equals(org.apache.axis2.util.Utils.getURIScheme(url))) { Utils.addHttpEndpoint(axisService, url); } } }
public static void addHttpEndpoint(AxisService axisService, String url) { String protocol = org.apache.axis2.util.Utils.getURIScheme(url); String httpEndpointName = getEndpointName(axisService, protocol, null); AxisEndpoint httpEndpoint = new AxisEndpoint(); httpEndpoint.setName(httpEndpointName); httpEndpoint.setParent(axisService); httpEndpoint.setEndpointURL(url.toString()); httpEndpoint.setTransportInDescription(protocol); populateHttpEndpoint(axisService, httpEndpoint, null); axisService.addEndpoint(httpEndpoint.getName(), httpEndpoint); }
String transportURI = (String) msgctx.getProperty(Constants.Configuration.TRANSPORT_URL); if (transportURI != null && !"".equals(transportURI)) { String transport = Utils.getURIScheme(transportURI); if (transport != null) { TransportOutDescription transportOut = ac.getTransportOut(transport); String transport = Utils.getURIScheme(uri); if (transport != null && ac.getTransportOut(transport) != null) { return ac.getTransportOut(transport);
public static void addSoap12Endpoint(AxisService axisService, String url) throws Exception { String protocol = org.apache.axis2.util.Utils.getURIScheme(url); String soap12EndpointName = getEndpointName(axisService, protocol, "Soap12"); AxisEndpoint httpSoap12Endpoint = new AxisEndpoint(); httpSoap12Endpoint.setName(soap12EndpointName); httpSoap12Endpoint.setParent(axisService); httpSoap12Endpoint.setEndpointURL(url.toString()); httpSoap12Endpoint.setTransportInDescription(protocol); populateSoap12Endpoint(axisService, httpSoap12Endpoint, null); axisService.addEndpoint(httpSoap12Endpoint.getName(), httpSoap12Endpoint); }
String transportURI = (String) msgctx.getProperty(Constants.Configuration.TRANSPORT_URL); if (transportURI != null && !"".equals(transportURI)) { String transport = Utils.getURIScheme(transportURI); if (transport != null) { TransportOutDescription transportOut = ac.getTransportOut(transport); String transport = Utils.getURIScheme(uri); if (transport != null && ac.getTransportOut(transport) != null) { return ac.getTransportOut(transport);
public static void addHttpEndpoint(AxisService axisService, String url) { String protocol = org.apache.axis2.util.Utils.getURIScheme(url); String httpEndpointName = getEndpointName(axisService, protocol, null); AxisEndpoint httpEndpoint = new AxisEndpoint(); httpEndpoint.setName(httpEndpointName); httpEndpoint.setParent(axisService); httpEndpoint.setEndpointURL(url.toString()); httpEndpoint.setTransportInDescription(protocol); populateHttpEndpoint(axisService, httpEndpoint, null); axisService.addEndpoint(httpEndpoint.getName(), httpEndpoint); }
public static void addSoap12Endpoint(AxisService axisService, String url) throws Exception { String protocol = org.apache.axis2.util.Utils.getURIScheme(url); String soap12EndpointName = getEndpointName(axisService, protocol, "Soap12"); AxisEndpoint httpSoap12Endpoint = new AxisEndpoint(); httpSoap12Endpoint.setName(soap12EndpointName); httpSoap12Endpoint.setParent(axisService); httpSoap12Endpoint.setEndpointURL(url.toString()); httpSoap12Endpoint.setTransportInDescription(protocol); populateSoap12Endpoint(axisService, httpSoap12Endpoint, null); axisService.addEndpoint(httpSoap12Endpoint.getName(), httpSoap12Endpoint); }
public static void addSoap11Endpoint(AxisService axisService, String url) throws Exception { String protocol = org.apache.axis2.util.Utils.getURIScheme(url); String soap11EndpointName = getEndpointName(axisService, protocol, "Soap11"); AxisEndpoint httpSoap11Endpoint = new AxisEndpoint(); httpSoap11Endpoint.setName(soap11EndpointName); httpSoap11Endpoint.setParent(axisService); httpSoap11Endpoint.setEndpointURL(url.toString()); httpSoap11Endpoint.setTransportInDescription(protocol); populateSoap11Endpoint(axisService, httpSoap11Endpoint, null); axisService.addEndpoint(httpSoap11Endpoint.getName(), httpSoap11Endpoint); // setting soap11 endpoint as the default endpoint axisService.setEndpointName(soap11EndpointName); }
public static void addSoap11Endpoint(AxisService axisService, String url) throws Exception { String protocol = org.apache.axis2.util.Utils.getURIScheme(url); String soap11EndpointName = getEndpointName(axisService, protocol, "Soap11"); AxisEndpoint httpSoap11Endpoint = new AxisEndpoint(); httpSoap11Endpoint.setName(soap11EndpointName); httpSoap11Endpoint.setParent(axisService); httpSoap11Endpoint.setEndpointURL(url.toString()); httpSoap11Endpoint.setTransportInDescription(protocol); populateSoap11Endpoint(axisService, httpSoap11Endpoint, null); axisService.addEndpoint(httpSoap11Endpoint.getName(), httpSoap11Endpoint); // setting soap11 endpoint as the default endpoint axisService.setEndpointName(soap11EndpointName); }