/** * Given the root portion of a URL representing the <protocol>:<host>:<port> * of the webserver, return the endpoint address used to make web * service invocations on this endpoint. */ public URL composeEndpointAddress(URL root) throws MalformedURLException { return composeEndpointAddress(root, null); }
/** * Given the root portion of a URL representing the <protocol>:<host>:<port> * of the webserver, return the endpoint address used to make web * service invocations on this endpoint. */ public URL composeEndpointAddress(URL root) throws MalformedURLException { return composeEndpointAddress(root, null); }
/** * Generate a URL pointing to the initial wsdl document for this * endpoint's web service. */ public URL composeFinalWsdlUrl(URL root) throws MalformedURLException { // WSDL for this webservice is published in a subcontext created // under the endpoint address uri. The hierarchy under there mirrors // the structure of the module file in which this endpoint's // webservice is defined. This allows easy retrieval of the wsdl // content using jar URLs. URL context = composeEndpointAddress(root); String mainFile = context.getFile() + "/" + PUBLISHING_SUBCONTEXT + "/" + webService.getWsdlFileUri(); URL finalWsdlUrl = new URL(context.getProtocol(), context.getHost(), context.getPort(), mainFile); return finalWsdlUrl; }
/** * Generate a URL pointing to the initial wsdl document for this * endpoint's web service. */ public URL composeFinalWsdlUrl(URL root) throws MalformedURLException { // WSDL for this webservice is published in a subcontext created // under the endpoint address uri. The hierarchy under there mirrors // the structure of the module file in which this endpoint's // webservice is defined. This allows easy retrieval of the wsdl // content using jar URLs. URL context = composeEndpointAddress(root); String mainFile = context.getFile() + "/" + PUBLISHING_SUBCONTEXT + "/" + webService.getWsdlFileUri(); URL finalWsdlUrl = new URL(context.getProtocol(), context.getHost(), context.getPort(), mainFile); return finalWsdlUrl; }
URL actualAddress = next.composeEndpointAddress(rootURL);
WebServerInfo wsi = wsUtil.getWebServerInfoForDAS(); URL rootURL = wsi.getWebServerRootURL(linkedPortComponent.isSecure()); URL actualAddress = linkedPortComponent.composeEndpointAddress(rootURL); if(jaxwsClient) { portInfo.addStubProperty(javax.xml.ws.BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
URL rootURL = wsi.getWebServerRootURL(nextEndpoint.isSecure()); String contextRoot = webBunDesc.getContextRoot(); URL actualAddress = nextEndpoint.composeEndpointAddress(rootURL, contextRoot);