com.sun.enterprise.deployment.WebService.getWsdlFileUri()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(7.9k)|赞(0)|评价(0)|浏览(165)

本文整理了Java中com.sun.enterprise.deployment.WebService.getWsdlFileUri()方法的一些代码示例,展示了WebService.getWsdlFileUri()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebService.getWsdlFileUri()方法的具体详情如下:
包路径:com.sun.enterprise.deployment.WebService
类名称:WebService
方法名:getWsdlFileUri

WebService.getWsdlFileUri介绍

暂无

代码示例

代码示例来源:origin: org.glassfish.deployment/dol

public void accept(WebService webService) {
  wsdlFileUris_.add(webService.getWsdlFileUri());
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

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);
}

代码示例来源:origin: org.glassfish.main.deployment/dol

/**
 * 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;
}

代码示例来源:origin: org.glassfish.deployment/dol

/**
 * 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;
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

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);

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

if ((webService.getWsdlFileUri() != null) &&
   (aWS.getWsdlFileUri() != null) &&
   (webService.getWsdlFileUri().equals(aWS.getWsdlFileUri()))) {
  endpointsCopy.addAll(aWS.getEndpoints());
} else if ((webService.getWsdlFileUrl() != null) &&

代码示例来源:origin: org.glassfish.deployment/dol

String wsdlFileUri = webService.getWsdlFileUri();
URL wsdlFileURL=null;
try {

代码示例来源:origin: org.glassfish.main.deployment/dol

String wsdlFileUri = webService.getWsdlFileUri();
URL wsdlFileURL=null;
try {

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

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));

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

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);

代码示例来源:origin: org.glassfish.main.deployment/dol

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);

代码示例来源:origin: org.glassfish.deployment/dol

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);

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

pkgedWsdl = servletContext.getResource('/' + endpoint.getWebService().getWsdlFileUri());
} catch (MalformedURLException e) {
  logger.severe("Cannot load the wsdl from the aplication : " + e.getMessage());

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

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();

代码示例来源:origin: org.glassfish.deployment/dol

/**
 * 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;
}

代码示例来源:origin: org.glassfish.main.webservices/webservices-connector

/**
 * 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;
}

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

if(newWS.getWsdlFileUri() == null) {
  if(wsdlLocation != null) {
    newWS.setWsdlFileUri(wsdlLocation);

代码示例来源:origin: org.glassfish.main.webservices/webservices-connector

if(newWS.getWsdlFileUri() == null) {
  if(wsdlLocation != null) {
    newWS.setWsdlFileUri(wsdlLocation);

代码示例来源:origin: org.glassfish.webservices/jsr109-impl

if(newWS.getWsdlFileUri() == null) {

代码示例来源:origin: org.glassfish.main.webservices/webservices-connector

if(newWS.getWsdlFileUri() == null) {

相关文章