- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlReader.read()
方法的一些代码示例,展示了WSDL4ComplexWsdlReader.read()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WSDL4ComplexWsdlReader.read()
方法的具体详情如下:
包路径:org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlReader
类名称:WSDL4ComplexWsdlReader
方法名:read
暂无
代码示例来源: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);
我一直在使用 easywsdl Android Studio 插件基于 wsdl 自动生成 ksoap2 代码。 每次生成代码时,easywsdl 都会在 Java 类名前面添加 3 个随机大写字符。
本文整理了Java中org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlReader类的一些代码示例,展示了WSDL4Co
本文整理了Java中org.ow2.easywsdl.extensions.wsdl4complexwsdl.api.WSDL4ComplexWsdlReader.read()方法的一些代码示例,展示
我是一名优秀的程序员,十分优秀!