// we want to use addressing on the client side
String repopath = System.getProperty("basedir", ".") + "/"
+ System.getProperty("build.repository", "target/client-repo");
String axis2xmlpath = System.getProperty("basedir", ".")
+ "/test-resources/axis2_addressing.xml";
FileSystemConfigurator configurator = new FileSystemConfigurator(
repopath, axis2xmlpath);
ClientConfigurationFactory factory = new ClientConfigurationFactory(
configurator);
MetadataFactoryRegistry.setFactory(ClientConfigurationFactory.class,
factory);