try {
JaxWsProxyFactoryBean proxyFac = new JaxWsProxyFactoryBean();
proxyFac.setBindingId(soapVersion);
proxyFac.setAddress(mexLoc);
MetadataExchange exc = proxyFac.create(MetadataExchange.class);
Metadata metadata = exc.get2004();
for (MetadataSection s : metadata.getMetadataSection()) {
if ("http://schemas.xmlsoap.org/wsdl/".equals(s.getDialect())) {
//got the wsdl...
Definition definition = bus.getExtension(WSDLManager.class)
.getDefinition((Element)s.getAny());
WSDLServiceFactory factory = new WSDLServiceFactory(bus, definition);