0
我想從wsdl文件中映射所有http的方法。肥皂http方法Java
我目前有:
String url = "http://ws.cdyne.com/emailverify/Emailvernotestemail.asmx";
String wsdl = url + "?wsdl";
WSDLParser parser = new WSDLParser();
Definitions defs = parser.parse(wsdl);
String targetNamespace = defs.getTargetNamespace();
String prefix = defs.getTargetNamespacePrefix();
defs.getServices().forEach(service -> {
System.out.println("Service -> " + service.getName());
service.getPorts().forEach(port -> {
String bindingName = port.getBinding().getName();
System.out.println("\tBinding -> " + bindingName);
System.out.println("\tAddress -> " + port.getAddress().getLocation());
Binding binding = defs.getBinding(bindingName);
});
});
但我想獲得在各方面嘗試HTTPBinding
,但還沒有找到一個解決方案
可以指定你在此使用的WSDL罐子名。 –