当前位置: 首页>>代码示例>>Java>>正文


Java WSDLReaderImpl类代码示例

本文整理汇总了Java中com.ibm.wsdl.xml.WSDLReaderImpl的典型用法代码示例。如果您正苦于以下问题:Java WSDLReaderImpl类的具体用法?Java WSDLReaderImpl怎么用?Java WSDLReaderImpl使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


WSDLReaderImpl类属于com.ibm.wsdl.xml包,在下文中一共展示了WSDLReaderImpl类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getPortTypeOperations

import com.ibm.wsdl.xml.WSDLReaderImpl; //导入依赖的package包/类
/**
 * 参考SoapMessageBuilder.SoapMessageBuilder(URL wsdlUrl)方法
 * 获取portType中的所有operation
 *
 * @param wsdlUrl
 * @return
 */
private static List<Operation> getPortTypeOperations(String wsdlUrl) {
    List<Operation> operationList = new ArrayList();
    try {
        WSDLReader reader = new WSDLReaderImpl();
        reader.setFeature("javax.wsdl.verbose", false);
        Definition definition = reader.readWSDL(wsdlUrl.toString());
        Map<String, PortTypeImpl> defMap = definition.getAllPortTypes();
        Collection<PortTypeImpl> collection = defMap.values();
        for (PortTypeImpl portType : collection) {
            operationList.addAll(portType.getOperations());
        }
    } catch (WSDLException e) {
        System.out.println("get wsdl operation fail.");
        e.printStackTrace();
    }
    return operationList;
}
 
开发者ID:wuxinshui,项目名称:boosters,代码行数:25,代码来源:OperatonUtils.java

示例2: getAllBindingOperation

import com.ibm.wsdl.xml.WSDLReaderImpl; //导入依赖的package包/类
/**
 * 参考SoapMessageBuilder.SoapMessageBuilder(URL wsdlUrl)方法
 * 获取binding节点的所有operation
 *
 * @param wsdlUrl
 * @return
 */
public static List<String> getAllBindingOperation(String wsdlUrl) {
    List<BindingOperation> operationList = new ArrayList();
    List<String> nameList = new ArrayList();
    try {
        WSDLReader reader = new WSDLReaderImpl();
        reader.setFeature("javax.wsdl.verbose", false);
        Definition definition = reader.readWSDL(wsdlUrl.toString());
        Map<String, BindingImpl> defMap = definition.getAllBindings();
        Collection<BindingImpl> collection = defMap.values();
        for (BindingImpl binding : collection) {
            operationList.addAll(binding.getBindingOperations());
        }
        for (BindingOperation operation:operationList) {
            nameList.add(operation.getName());
        }
    } catch (WSDLException e) {
        System.out.println("get wsdl operation fail.");
        e.printStackTrace();
    }
    return nameList;
}
 
开发者ID:wuxinshui,项目名称:boosters,代码行数:29,代码来源:OperatonUtils.java

示例3: ExWSDLReaderImpl

import com.ibm.wsdl.xml.WSDLReaderImpl; //导入依赖的package包/类
public ExWSDLReaderImpl(WSDLReaderImpl reader) {
    this.reader = reader;
}
 
开发者ID:wso2,项目名称:carbon-registry,代码行数:4,代码来源:ExWSDLReaderImpl.java


注:本文中的com.ibm.wsdl.xml.WSDLReaderImpl类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。