gpt4 book ai didi

org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlReader类的使用及代码示例

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

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

WSDL4ComplexWsdlReader介绍

暂无

代码示例

代码示例来源:origin: org.ow2.petals/petals-bc-soap

/**
 * Get the service definition document (WSDL)
 * 
 * It is used by {@link AxisServicesHelper} during the Axis processing, it should only throw {@link AxisFault}.
 * 
 * @return never <code>null</code>!!
 * 
 */
public static Description getDescription(final Consumes consumes, final AbstractComponent componentContext,
    final Logger logger) throws AxisFault {
  final Document doc;
  try {
    doc = getServiceDefinition(consumes, componentContext, logger);
  } catch (final JBIException e) {
    // everything should be said in the JBI Error
    throw new AxisFault(e.getMessage(), FAULT_SERVER, e);
  }
  if (doc != null) {
    try {
      return WSDL4ComplexWsdlFactory.newInstance()
          .newWSDLReader(Collections.singletonMap(FeatureConstants.IMPORT_DOCUMENTS, (Object) true))
          .read(doc);
    } catch (WSDL4ComplexWsdlException | URISyntaxException e) {
      throw new AxisFault("Can't parse the JBI endpoint WSDL description for " + doc, FAULT_SERVER, e);
    }
  } else {
    throw new AxisFault("No WSDL associated to the JBI endpoint", FAULT_SERVER);
  }
}

代码示例来源:origin: org.ow2.petals/petals-bc-soap

try {
  desc = WSDL4ComplexWsdlFactory.newInstance().newWSDLReader().read(doc);
} catch (final WSDL4ComplexWsdlException | URISyntaxException e) {
  throw new ServletException("Can't parse the JBI endpoint WSDL description for " + doc, e);

代码示例来源:origin: org.ow2.petals/petals-message-exchange

try {
  wsdl4ComplexWsdlReader = WSDL4ComplexWsdlReaders.takeWSDL4ComplexWsdlReader();
  Description wsdlDescription = wsdl4ComplexWsdlReader.read(doc);

代码示例来源:origin: org.ow2.petals/petals-bc-soap

protected static void printWSDL(final Document wsdl, final String serviceAddress,
    final Collection<PolicyComponent> wssPolicies, final OutputStream out)
    throws Exception {
  assert wsdl != null;
  // create a easyWSDL description
  final Description desc = WSDL4ComplexWsdlFactory.newInstance().newWSDLReader().read(wsdl);
  // delete imported documents
  desc.deleteImportedDocumentsInWsdl(new URI(serviceAddress + "?wsdl="));
  // recreate a Document without imports
  final Document descWithoutImport = WSDL4ComplexWsdlFactory.newInstance().newWSDLWriter().getDocument(desc);
  // And add the WSS-Policy if exists
  for (final PolicyComponent wssPolicy : wssPolicies) {
    final OMElement policyElt = PolicyUtil.getPolicyComponentAsOMElement(wssPolicy);
    final Node policyNode = descWithoutImport.adoptNode(XMLUtils.toDOM(policyElt));
    // Remove Apache Rampart configuration from WS-Policy
    final NodeList rampartConfigElts = ((Element) policyNode)
        .getElementsByTagNameNS("http://ws.apache.org/rampart/policy", "RampartConfig");
    for (int i = 0; i < rampartConfigElts.getLength(); i++) {
      final Node rampartConfigElt = rampartConfigElts.item(i);
      rampartConfigElt.getParentNode().removeChild(rampartConfigElt);
    }
    descWithoutImport.getDocumentElement().appendChild(policyNode);
  }
  XMLPrettyPrinter.prettify(descWithoutImport, out, XMLPrettyPrinter.getEncoding(descWithoutImport));
}

代码示例来源:origin: org.ow2.petals/petals-message-exchange

try {
  wsdl4ComplexWsdlReader = WSDL4ComplexWsdlReaders.takeWSDL4ComplexWsdlReader();
  Description wsdlDescription = wsdl4ComplexWsdlReader.read(doc);

代码示例来源:origin: org.ow2.petals/petals-kernel

endpoint.setName(endpointName);
try {
  Description desc = WSDL4ComplexWsdls.getDefaultReader().read(
      ep.getDescription());
  Map<URI, org.w3c.dom.Document> imports = desc.deleteImportedDocumentsInWsdl();

代码示例来源:origin: org.ow2.petals/petals-bc-rest

final QName interfaceName, final Document domDescription) throws MessagingException {
try {
  final Description description = WSDL4ComplexWsdlFactory.newInstance().newWSDLReader().read(domDescription);
  final InterfaceType wsdlInterface = description.getInterface(interfaceName);
  if (wsdlInterface == null) {

代码示例来源:origin: org.ow2.petals.dsb/dsb-kernel

try {
  Description desc = WSDL4ComplexWsdlFactory.newInstance().newWSDLReader()
      .read(ep.getDescription());
  Map<URI, org.w3c.dom.Document> imports = desc.deleteImportedDocumentsInWsdl();
  String rootWSDL = WSDL4ComplexWsdlFactory.newInstance().newWSDLWriter()

代码示例来源:origin: org.ow2.petals/petals-bc-rest

public static Map<QName, RESTRequestConfiguration> getRESTMessages(final Logger logger, final Document wsdlDoc,
    final String suName, final String installRoot, final Provides provides,
    final Properties componentPlaceholders) throws PEtALSCDKException {
  try {
    Map<QName, RESTRequestConfiguration> operations = null;
    final Description wsdl = WSDL4ComplexWsdlFactory.newInstance().newWSDLReader().read(wsdlDoc);
    if (wsdl != null) {
      final WSDLVersionConstants wsdlVersion = wsdl.getVersion();
      if (wsdlVersion == WSDLVersionConstants.WSDL20) {
        // operations = processWSDL20(wsdl);
      } else {
        // it is a WSDL 1.1, use the SU parameters
        operations = processSUProvidesMapping(logger, suName, installRoot, provides, componentPlaceholders);
      }
    } else {
      RESTConfiguration.handleMissingMandatoryParameterError(WSDL);
    }
    return operations;
  } catch (final WSDLException | URISyntaxException e) {
    throw new PEtALSCDKException(e);
  }
}

代码示例来源:origin: org.ow2.petals/petals-bc-gateway

description = WSDL4ComplexWsdlFactory.newInstance().newWSDLReader().read(originalDescription);
} catch (final WSDLException | URISyntaxException e) {
  final String msg = "Couldn't read the received description for " + originalKey

代码示例来源:origin: org.ow2.petals/petals-bc-soap

/**
 * Replace the endpoint address in the WSDL
 * 
 * @return
 * @throws WSDL4ComplexWsdlException
 * @throws URISyntaxException
 */
private static Document replaceServiceAddressInWSDL(final Document doc,
    final String address) throws WSDL4ComplexWsdlException, URISyntaxException {
  Document result = null;
  final WSDL4ComplexWsdlFactory wsdlFactory = WSDL4ComplexWsdlFactory.newInstance();
  final WSDL4ComplexWsdlWriter wsdlWriter = wsdlFactory.newWSDLWriter();
  final WSDL4ComplexWsdlReader reader = wsdlFactory.newWSDLReader();
  final Description desc = reader.read(doc);
  final List<Service> services = desc.getServices();
  for (final Service service : services) {
    final List<Endpoint> endpoints = service.getEndpoints();
    for (final Endpoint endpoint : endpoints) {
      endpoint.setAddress(address);
    }
  }
  result = wsdlWriter.getDocument(desc);
  return result;
}

代码示例来源:origin: org.ow2.petals/petals-kernel

List<QName> result = new ArrayList<QName>();
try {
  final Description wsdlDescription =  WSDL4ComplexWsdls.getDefaultReader().read(doc);
  if ((wsdlDescription != null) && (wsdlDescription.getServices() != null)) {
    Service ss = wsdlDescription.getService(serviceName);

代码示例来源:origin: org.ow2.petals/petals-se-camel

final Description desc = reader.read(doc);

代码示例来源:origin: org.ow2.petals/petals-bc-soap

context.setServiceDescription(WSDL4ComplexWsdlFactory.newInstance().newWSDLReader().read(doc));
} catch (final WSDL4ComplexWsdlException e) {
  logger.log(Level.WARNING, "Wsdl reading error", e);

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