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

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

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

Service.initService介绍

[英]Common code for building up the Service from a WSDL document
[中]从WSDL文档构建服务的通用代码

代码示例

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

/**
 * Constructs a new Service object for the service in the WSDL document
 *
 * @param parser          Parser for this service
 * @param serviceName      Qualified name of the desired service
 * @throws ServiceException If there's an error
 */
public Service(Parser parser, QName serviceName) throws ServiceException {
  this.serviceName = serviceName;
  engine = getAxisClient();
  initService(parser, serviceName);
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 *
 * @param parser          Parser for this service
 * @param serviceName      Qualified name of the desired service
 * @throws ServiceException If there's an error
 */
public Service(Parser parser, QName serviceName) throws ServiceException {
  this.serviceName = serviceName;
  engine = getAxisClient();
  initService(parser, serviceName);
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 *
 * @param parser          Parser for this service
 * @param serviceName      Qualified name of the desired service
 * @throws ServiceException If there's an error
 */
public Service(Parser parser, QName serviceName) throws ServiceException {
  this.serviceName = serviceName;
  engine = getAxisClient();
  initService(parser, serviceName);
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * pointed to by the wsdlLocation and serviceName parameters.  This is
 * just like the previous constructor but instead of URL the
 * wsdlLocation parameter points to a file on the filesystem relative
 * to the current directory.
 *
 * @param  wsdlLocation    Location of the WSDL relative to the current dir
 * @param  serviceName     Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(String wsdlLocation, QName serviceName)
    throws ServiceException {
  this.serviceName = serviceName;
  this.wsdlLocation = wsdlLocation;
  engine = getAxisClient();
  // Start by reading in the WSDL using Parser
  Parser parser = null;
  if (cachingWSDL &&
      (parser = (Parser) cachedWSDL.get(wsdlLocation)) != null) {
    initService(parser, serviceName);
  } else {
    initService(wsdlLocation, serviceName);
  }
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * pointed to by the wsdlLocation and serviceName parameters.  This is
 * just like the previous constructor but instead of URL the
 * wsdlLocation parameter points to a file on the filesystem relative
 * to the current directory.
 *
 * @param  wsdlLocation    Location of the WSDL relative to the current dir
 * @param  serviceName     Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(String wsdlLocation, QName serviceName)
    throws ServiceException {
  this.serviceName = serviceName;
  this.wsdlLocation = wsdlLocation;
  engine = getAxisClient();
  // Start by reading in the WSDL using Parser
  Parser parser = null;
  if (cachingWSDL &&
      (parser = (Parser) cachedWSDL.get(wsdlLocation)) != null) {
    initService(parser, serviceName);
  } else {
    initService(wsdlLocation, serviceName);
  }
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * pointed to by the wsdlDoc URL and serviceName parameters.
 *
 * @param wsdlDoc          URL of the WSDL document
 * @param serviceName      Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(URL wsdlDoc, QName serviceName) throws ServiceException {
  this.serviceName = serviceName;
  engine = getAxisClient();
  wsdlLocation = wsdlDoc.toString();
  Parser parser = null;
  if (cachingWSDL &&
      (parser = (Parser) cachedWSDL.get(this.wsdlLocation.toString())) != null) {
    initService(parser, serviceName);
  } else {
    initService(wsdlDoc.toString(), serviceName);
  }
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * pointed to by the wsdlDoc URL and serviceName parameters.
 *
 * @param wsdlDoc          URL of the WSDL document
 * @param serviceName      Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(URL wsdlDoc, QName serviceName) throws ServiceException {
  this.serviceName = serviceName;
  engine = getAxisClient();
  wsdlLocation = wsdlDoc.toString();
  Parser parser = null;
  if (cachingWSDL &&
      (parser = (Parser) cachedWSDL.get(this.wsdlLocation.toString())) != null) {
    initService(parser, serviceName);
  } else {
    initService(wsdlDoc.toString(), serviceName);
  }
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * pointed to by the wsdlDoc URL and serviceName parameters.
 *
 * @param wsdlDoc          URL of the WSDL document
 * @param serviceName      Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(URL wsdlDoc, QName serviceName) throws ServiceException {
  this.serviceName = serviceName;
  engine = getAxisClient();
  wsdlLocation = wsdlDoc.toString();
  Parser parser = null;
  if (cachingWSDL &&
      (parser = (Parser) cachedWSDL.get(this.wsdlLocation.toString())) != null) {
    initService(parser, serviceName);
  } else {
    initService(wsdlDoc.toString(), serviceName);
  }
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * pointed to by the wsdlLocation and serviceName parameters.  This is
 * just like the previous constructor but instead of URL the
 * wsdlLocation parameter points to a file on the filesystem relative
 * to the current directory.
 *
 * @param  wsdlLocation    Location of the WSDL relative to the current dir
 * @param  serviceName     Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(String wsdlLocation, QName serviceName)
    throws ServiceException {
  this.serviceName = serviceName;
  this.wsdlLocation = wsdlLocation;
  engine = getAxisClient();
  // Start by reading in the WSDL using Parser
  Parser parser = null;
  if (cachingWSDL &&
      (parser = (Parser) cachedWSDL.get(wsdlLocation)) != null) {
    initService(parser, serviceName);
  } else {
    initService(wsdlLocation, serviceName);
  }
}

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

/**
 * Common code for building up the Service from a WSDL document
 *
 * @param url               URL for the WSDL document
 * @param serviceName       Qualified name of the desired service
 * @throws ServiceException  If there's an error finding or parsing the WSDL
 */
private void initService(String url, QName serviceName)
    throws ServiceException {
  try {
    // Start by reading in the WSDL using Parser
    Parser parser = new Parser();
    parser.run(url);
    if (cachingWSDL && this.wsdlLocation != null)
      cachedWSDL.put(url, parser);
    initService(parser, serviceName);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp),
        exp);
  }
}

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

/**
 * Common code for building up the Service from a WSDL document
 *
 * @param url               URL for the WSDL document
 * @param serviceName       Qualified name of the desired service
 * @throws ServiceException  If there's an error finding or parsing the WSDL
 */
private void initService(String url, QName serviceName)
    throws ServiceException {
  try {
    // Start by reading in the WSDL using Parser
    Parser parser = new Parser();
    parser.run(url);
    if (cachingWSDL && this.wsdlLocation != null)
      cachedWSDL.put(url, parser);
    initService(parser, serviceName);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp),
        exp);
  }
}

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

/**
 * Common code for building up the Service from a WSDL document
 *
 * @param url               URL for the WSDL document
 * @param serviceName       Qualified name of the desired service
 * @throws ServiceException  If there's an error finding or parsing the WSDL
 */
private void initService(String url, QName serviceName)
    throws ServiceException {
  try {
    // Start by reading in the WSDL using Parser
    Parser parser = new Parser();
    parser.run(url);
    if (cachingWSDL && this.wsdlLocation != null)
      cachedWSDL.put(url, parser);
    initService(parser, serviceName);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp),
        exp);
  }
}

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

/**
 * Common code for building up the Service from a WSDL document
 *
 * @param context           Context URL
 * @param doc               A DOM document containing WSDL
 * @param serviceName       Qualified name of the desired service
 * @throws ServiceException  If there's an error finding or parsing the WSDL
 */
private void initService(String context, Document doc, QName serviceName)
    throws ServiceException {
  try {
    // Start by reading in the WSDL using Parser
    Parser parser = new Parser();
    parser.run(context, doc);
    initService(parser, serviceName);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp));
  }
}

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

/**
 * Common code for building up the Service from a WSDL document
 *
 * @param context           Context URL
 * @param doc               A DOM document containing WSDL
 * @param serviceName       Qualified name of the desired service
 * @throws ServiceException  If there's an error finding or parsing the WSDL
 */
private void initService(String context, Document doc, QName serviceName)
    throws ServiceException {
  try {
    // Start by reading in the WSDL using Parser
    Parser parser = new Parser();
    parser.run(context, doc);
    initService(parser, serviceName);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp));
  }
}

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

/**
 * Common code for building up the Service from a WSDL document
 *
 * @param context           Context URL
 * @param doc               A DOM document containing WSDL
 * @param serviceName       Qualified name of the desired service
 * @throws ServiceException  If there's an error finding or parsing the WSDL
 */
private void initService(String context, Document doc, QName serviceName)
    throws ServiceException {
  try {
    // Start by reading in the WSDL using Parser
    Parser parser = new Parser();
    parser.run(context, doc);
    initService(parser, serviceName);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp));
  }
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * in the wsdlInputStream and serviceName parameters.  This is
 * just like the previous constructor but instead of reading the WSDL
 * from a file (or from a URL) it is in the passed in InputStream.
 *
 * @param  wsdlInputStream InputStream containing the WSDL
 * @param  serviceName     Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(InputStream wsdlInputStream, QName serviceName)
    throws ServiceException {
  engine = getAxisClient();
  Document doc = null;
  try {
    doc = XMLUtils.newDocument(wsdlInputStream);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp));
  }
  initService(null, doc, serviceName);
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * in the wsdlInputStream and serviceName parameters.  This is
 * just like the previous constructor but instead of reading the WSDL
 * from a file (or from a URL) it is in the passed in InputStream.
 *
 * @param  wsdlInputStream InputStream containing the WSDL
 * @param  serviceName     Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(InputStream wsdlInputStream, QName serviceName)
    throws ServiceException {
  engine = getAxisClient();
  Document doc = null;
  try {
    doc = XMLUtils.newDocument(wsdlInputStream);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp));
  }
  initService(null, doc, serviceName);
}

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

/**
 * Constructs a new Service object for the service in the WSDL document
 * in the wsdlInputStream and serviceName parameters.  This is
 * just like the previous constructor but instead of reading the WSDL
 * from a file (or from a URL) it is in the passed in InputStream.
 *
 * @param  wsdlInputStream InputStream containing the WSDL
 * @param  serviceName     Qualified name of the desired service
 * @throws ServiceException If there's an error finding or parsing the WSDL
 */
public Service(InputStream wsdlInputStream, QName serviceName)
    throws ServiceException {
  engine = getAxisClient();
  Document doc = null;
  try {
    doc = XMLUtils.newDocument(wsdlInputStream);
  } catch (Exception exp) {
    throw new ServiceException(
        Messages.getMessage("wsdlError00", "" + "", "\n" + exp));
  }
  initService(null, doc, serviceName);
}

相关文章