public void accept(WebService webService) { wsdlFileUris_.add(webService.getWsdlFileUri()); }
private void checkCatalog(BundleDescriptor bundle, WebService ws, File moduleDir) throws DeploymentException { // If no catalog file is present, return File catalogFile = new File(moduleDir, bundle.getDeploymentDescriptorDir() + File.separator + "jax-ws-catalog.xml"); if(!catalogFile.exists()) { return; } resolveCatalog(catalogFile, ws.getWsdlFileUri(), ws); }
/** * 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; }
if (ws.getWsdlFileUri().startsWith("http")) { try { wsdlFileUri = downloadWsdlsAndSchemas( new URL(ws.getWsdlFileUri()), wsdlDir); } catch(Exception e) { throw new DeploymentException(e.toString(), e); wsdlFileUri = ws.getWsdlFileUri(); File wsdlFileAbs = new File(wsdlFileUri); wsdlFile = wsdlFileAbs.isAbsolute()? wsdlFileAbs : new File(moduleDir, wsdlFileUri); ws.getWsdlFileUri(), bundle.getModuleDescriptor().getArchiveUri()); logger.severe(errorMessage); throw new DeploymentException(errorMessage);
if ((webService.getWsdlFileUri() != null) && (aWS.getWsdlFileUri() != null) && (webService.getWsdlFileUri().equals(aWS.getWsdlFileUri()))) { endpointsCopy.addAll(aWS.getEndpoints()); } else if ((webService.getWsdlFileUrl() != null) &&
String wsdlFileUri = webService.getWsdlFileUri(); URL wsdlFileURL=null; try {
String wsdlFileUri = webService.getWsdlFileUri(); URL wsdlFileURL=null; try {
webService.getBundleDescriptor().getModuleDescriptor(); if( wsdlPath.equals(webService.getWsdlFileUri())){ String finalWsdlPath = finalWsdlUrl.getPath(); String wsdlDirPath = finalWsdlPath.substring(0, finalWsdlPath.length()-webService.getWsdlFileUri().length()); File wsdlDir = new File(wsdlDirPath); File wsdlFile = new File(wsdlDir, wsdlPath.replace('/', File.separatorChar));
File f = new File(dc.getSourceDir(),next.getWsdlFileUri()) ; url = f.toURL(); String wsdlFileDir = next.getWsdlFileUri().substring(0, next.getWsdlFileUri().lastIndexOf('/')); (new File(genXmlDir, wsdlFileDir)).mkdirs(); File genWsdlFile = new File(genXmlDir, next.getWsdlFileUri()); wsUtil.generateFinalWsdl(url, next, wsUtil.getWebServerInfoForDAS(), genWsdlFile);
String wsdlFileUri = webService.getWsdlFileUri(); if (!webService.hasWsdlFile()) { "enterprise.deployment.util.servicewsdlfilenotreadable", "wsdl file {0} for service-ref {1} cannot be opened : {2}", new Object[] {webService.getWsdlFileUri(), webService.getName(), ioe.getMessage()}); DOLUtils.getDefaultLogger().severe(msg); throw new RuntimeException(ioe);
String wsdlFileUri = webService.getWsdlFileUri(); if (!webService.hasWsdlFile()) { "enterprise.deployment.util.servicewsdlfilenotreadable", "wsdl file {0} for service-ref {1} cannot be opened : {2}", new Object[] {webService.getWsdlFileUri(), webService.getName(), ioe.getMessage()}); DOLUtils.getDefaultLogger().severe(msg); throw new RuntimeException(ioe);
pkgedWsdl = servletContext.getResource('/' + endpoint.getWebService().getWsdlFileUri()); } catch (MalformedURLException e) { logger.severe("Cannot load the wsdl from the aplication : " + e.getMessage());
if(deployedDir != null) { if(endpoint.getBundleDescriptor().getApplication().isVirtual()) { pkgedWsdl = deployedDir.resolve(endpoint.getWebService().getWsdlFileUri()).toURL(); } else { String moduleUri1 = endpoint.getBundleDescriptor().getModuleDescriptor().getArchiveUri(); pkgedWsdl = deployedDir.resolve(moduleUri+"/"+endpoint.getWebService().getWsdlFileUri()).toURL();
/** * write the method descriptor class to a query-method DOM tree and * return it * * @param parent node in the DOM tree * @param node name for the root element of this xml fragment * @param the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, WebService descriptor) { Node topNode = super.writeDescriptor(parent, nodeName, descriptor); writeDisplayableComponentInfo(topNode, descriptor); appendTextChild(topNode, WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME, descriptor.getName()); appendTextChild(topNode, WebServicesTagNames.WSDL_FILE, descriptor.getWsdlFileUri()); appendTextChild(topNode, WebServicesTagNames.JAXRPC_MAPPING_FILE, descriptor.getMappingFileUri()); WebServiceEndpointNode endpointNode = new WebServiceEndpointNode(); for(WebServiceEndpoint next : descriptor.getEndpoints()) { endpointNode.writeDescriptor (topNode, WebServicesTagNames.PORT_COMPONENT, next); } return topNode; }
/** * write the method descriptor class to a query-method DOM tree and * return it * * @param parent node in the DOM tree * @param nodeName name for the root element of this xml fragment * @param descriptor the descriptor to write * @return the DOM tree top node */ public Node writeDescriptor(Node parent, String nodeName, WebService descriptor) { Node topNode = super.writeDescriptor(parent, nodeName, descriptor); writeDisplayableComponentInfo(topNode, descriptor); appendTextChild(topNode, WebServicesTagNames.WEB_SERVICE_DESCRIPTION_NAME, descriptor.getName()); appendTextChild(topNode, WebServicesTagNames.WSDL_FILE, descriptor.getWsdlFileUri()); appendTextChild(topNode, WebServicesTagNames.JAXRPC_MAPPING_FILE, descriptor.getMappingFileUri()); WebServiceEndpointNode endpointNode = new WebServiceEndpointNode(); for(WebServiceEndpoint next : descriptor.getEndpoints()) { endpointNode.writeDescriptor (topNode, WebServicesTagNames.PORT_COMPONENT, next); } return topNode; }
if(newWS.getWsdlFileUri() == null) { if(wsdlLocation != null) { newWS.setWsdlFileUri(wsdlLocation);
if(newWS.getWsdlFileUri() == null) { if(wsdlLocation != null) { newWS.setWsdlFileUri(wsdlLocation);
if(newWS.getWsdlFileUri() == null) {
if(newWS.getWsdlFileUri() == null) {