WSDLFactory factory = WSDLFactory.newInstance();
WSDLReader reader = factory.newWSDLReader();
Definition definition = reader.readWSDL("wsdl_file_url");
Map<?, ?> namespaces = definition.getNamespaces();
Map<?, ?> services = definition.getServices();
Map<?, ?> ports = definition.getPorts();
Map<?, ?> services = definition.getServices();
Service service = services.values().iterator().next();
Binding binding = service.getPorts().values().iterator().next().getBinding();
List<?> operations = binding.getBindingOperations();
for (Object operationObj : operations) {
BindingOperation operation = (BindingOperation) operationObj;
}
JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
factory.setServiceClass(YourServiceInterface.class);
factory.setAddress("service_url");
YourServiceInterface client = (YourServiceInterface) factory.create();