gpt4 book ai didi

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

转载 作者:知者 更新时间:2024-03-21 09:09:05 25 4
gpt4 key购买 nike

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

WebService.getWsdlFileUrl介绍

暂无

代码示例

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

private J2EEModelInfo createFullMappingModelInfo(WebService webService)
    throws Exception {
  URL mappingFileUrl = webService.getMappingFile().toURL();
  URL wsdlFileUrl = webService.getWsdlFileUrl();
  return createFullMappingModelInfo(mappingFileUrl, wsdlFileUrl);
}

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

private NoMetadataModelInfo createNoMetadataModelInfo
    (WebService webService, JaxrpcMappingDescriptor mappingDesc)
    throws Exception {
  NoMetadataModelInfo modelInfo = rpcFactory.createNoMetadataModelInfo();
  URL wsdlFileUrl = webService.getWsdlFileUrl();
  Collection endpoints = webService.getEndpoints();
  if( endpoints.size() != 1 ) {
    throw new Exception
        ("Deployment code generation error for webservice " +
            webService.getName() + ". " +
            " jaxrpc-mapping-file is required if web service has " +
            "multiple endpoints");
  }
  WebServiceEndpoint endpoint = (WebServiceEndpoint)
      endpoints.iterator().next();
  modelInfo.setLocation(wsdlFileUrl.toExternalForm());
  modelInfo.setInterfaceName(endpoint.getServiceEndpointInterface());
  modelInfo.setPortName(endpoint.getWsdlPort());
  addNamespaceMappingRegistry(modelInfo, mappingDesc);
  return modelInfo;
}

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

wsdlUrl = webService.getWsdlFileUrl();
  } else if( isWsdlContent(wsdlPath, 
               webService.getBundleDescriptor()) ) {
    URL finalWsdlUrl = webService.getWsdlFileUrl();
    String finalWsdlPath = finalWsdlUrl.getPath();
wsdlUrl = webService.getWsdlFileUrl();
  if (wsdlUrl.toURI().equals(webService.getWsdlFileUrl().toURI())) {
      URL url = webService.getWsdlFileUrl();
      File originalWsdlFile = new File(url.getPath()+"__orig");
      if(!originalWsdlFile.exists()) {

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

if( webService.hasWsdlFile() && (webService.getWsdlFileUrl()==null || forceWSDLURLs) ) {
  String wsdlFileUri = webService.getWsdlFileUri();
  URL wsdlFileURL=null;

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

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

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

if( webService.hasWsdlFile() && (webService.getWsdlFileUrl()==null || forceWSDLURLs) ) {
  String wsdlFileUri = webService.getWsdlFileUri();
  URL wsdlFileURL=null;

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

public String getGeneratedWsdlFilePath() {
  if (hasWsdlFile()) {
    String xmlDir = getBundleDescriptor().getApplication().getGeneratedXMLDirectory();
    if(!getBundleDescriptor().getModuleDescriptor().isStandalone()) {
      String uri = getBundleDescriptor().getModuleDescriptor().getArchiveUri();
      xmlDir = xmlDir + File.separator + uri.replaceAll("\\.", "_");
    }
    if(xmlDir == null) {
      return null;
    }
    return  xmlDir + File.separator + wsdlFileUri;
  } else {
    return getWsdlFileUrl().getPath();
  }
}

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

public String getGeneratedWsdlFilePath() {
  if (hasWsdlFile()) {
    String xmlDir = getBundleDescriptor().getApplication().getGeneratedXMLDirectory();
    if(!getBundleDescriptor().getModuleDescriptor().isStandalone()) {
      String uri = getBundleDescriptor().getModuleDescriptor().getArchiveUri();
      xmlDir = xmlDir + File.separator + uri.replaceAll("\\.", "_");
    }
    if(xmlDir == null) {
      return null;
    }
    return  xmlDir + File.separator + wsdlFileUri;
  } else {
    return getWsdlFileUrl().getPath();
  }
}

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

URL url = next.getWsdlFileUrl();
if (url == null ) {
  File f = new File(dc.getSourceDir(),next.getWsdlFileUri()) ;

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

private void jaxrpcWebService(WebService webService, ArrayList<String> files)
    throws Exception {
  if((webService.getWsdlFileUrl() == null) ||
      (webService.getMappingFileUri() == null)) {
    throw new Exception(localStrings.getLocalString(
        "enterprise.webservice.jaxrpcFilesNotFound",
        "Service {0} seems to be a JAXRPC based web service but without "+
            "the mandatory WSDL and Mapping file. Deployment cannot proceed",
        new Object[] {webService.getName()}));
  }
  ModelInfo modelInfo = createModelInfo(webService);
  String args[] = createJaxrpcCompileArgs(true, false);
  CompileTool wscompile =
      rpcFactory.createCompileTool(System.out, "wscompile");
  wscompileForWebServices = wscompile;
  WsCompile delegate = new WsCompile(wscompile, webService);
  delegate.setModelInfo(modelInfo);
  wscompile.setDelegate(delegate);
  jaxrpc(args, delegate, webService, files);
}

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

pkgedWsdl = endpoint.getWebService().getWsdlFileUrl();

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

if (wsdlOverride!=null) {
  wsdlOverriden = true;
  serviceRef.setWsdlOverride(linkedPortComponent.getWebService().getWsdlFileUrl());

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

pkgedWsdl = endpoint.getWebService().getWsdlFileUrl();

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com