org.apache.axis.client.Service.getServiceName()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(3.7k)|赞(0)|评价(0)|浏览(144)

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

Service.getServiceName介绍

[英]Returns the qualified name of the service (if one is set).
[中]返回服务的限定名称(如果已设置)。

代码示例

代码示例来源:origin: axis/axis

reference.add(addr);
QName serviceName = getServiceName();
if (serviceName != null) {
  addr = new StringRefAddr(ServiceFactory.SERVICE_NAMESPACE,

代码示例来源:origin: org.apache.axis/axis

reference.add(addr);
QName serviceName = getServiceName();
if (serviceName != null) {
  addr = new StringRefAddr(ServiceFactory.SERVICE_NAMESPACE,

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

reference.add(addr);
QName serviceName = getServiceName();
if (serviceName != null) {
  addr = new StringRefAddr(ServiceFactory.SERVICE_NAMESPACE,

代码示例来源:origin: axis/axis

private Service createService(String serviceImplementationName) throws ServiceException {
    if(serviceImplementationName == null) {
      throw new IllegalArgumentException(Messages.getMessage("serviceFactoryInvalidServiceName"));
    }
    try {
      Class serviceImplementationClass;
      serviceImplementationClass = Thread.currentThread().getContextClassLoader().loadClass(serviceImplementationName);
      if (!(org.apache.axis.client.Service.class).isAssignableFrom(serviceImplementationClass)) {
        throw new ServiceException(
            Messages.getMessage("serviceFactoryServiceImplementationRequirement", serviceImplementationName));
      }
      Service service = (Service) serviceImplementationClass.newInstance();
      if (service.getServiceName() != null) {
        return service;
      } else {
        throw new ServiceException(Messages.getMessage("serviceFactoryInvalidServiceName"));
      }
    } catch (ServiceException e) {
      throw e;
    } catch (Exception e){
      throw new ServiceException(e);
    }
    
  }
}

代码示例来源:origin: org.apache.axis/com.springsource.org.apache.axis

private Service createService(String serviceImplementationName) throws ServiceException {
    if(serviceImplementationName == null) {
      throw new IllegalArgumentException(Messages.getMessage("serviceFactoryInvalidServiceName"));
    }
    try {
      Class serviceImplementationClass;
      serviceImplementationClass = Thread.currentThread().getContextClassLoader().loadClass(serviceImplementationName);
      if (!(org.apache.axis.client.Service.class).isAssignableFrom(serviceImplementationClass)) {
        throw new ServiceException(
            Messages.getMessage("serviceFactoryServiceImplementationRequirement", serviceImplementationName));
      }
      Service service = (Service) serviceImplementationClass.newInstance();
      if (service.getServiceName() != null) {
        return service;
      } else {
        throw new ServiceException(Messages.getMessage("serviceFactoryInvalidServiceName"));
      }
    } catch (ServiceException e) {
      throw e;
    } catch (Exception e){
      throw new ServiceException(e);
    }
    
  }
}

代码示例来源:origin: org.apache.axis/axis

private Service createService(String serviceImplementationName) throws ServiceException {
    if(serviceImplementationName == null) {
      throw new IllegalArgumentException(Messages.getMessage("serviceFactoryInvalidServiceName"));
    }
    try {
      Class serviceImplementationClass;
      serviceImplementationClass = Thread.currentThread().getContextClassLoader().loadClass(serviceImplementationName);
      if (!(org.apache.axis.client.Service.class).isAssignableFrom(serviceImplementationClass)) {
        throw new ServiceException(
            Messages.getMessage("serviceFactoryServiceImplementationRequirement", serviceImplementationName));
      }
      Service service = (Service) serviceImplementationClass.newInstance();
      if (service.getServiceName() != null) {
        return service;
      } else {
        throw new ServiceException(Messages.getMessage("serviceFactoryInvalidServiceName"));
      }
    } catch (ServiceException e) {
      throw e;
    } catch (Exception e){
      throw new ServiceException(e);
    }
    
  }
}

相关文章