本文整理汇总了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;
}
示例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;
}
示例3: ExWSDLReaderImpl
import com.ibm.wsdl.xml.WSDLReaderImpl; //导入依赖的package包/类
public ExWSDLReaderImpl(WSDLReaderImpl reader) {
this.reader = reader;
}