Bus bus = factory.createBus("org/apache/cxf/systest/xmlbeans/cxf_no_wsdl.xml");
BusFactory.setDefaultBus(bus);
URL wsdl = this.getClass().getResource("/wsdl_systest_databinding/xmlbeans/hello_world.wsdl");
assertNotNull("We should have found the WSDL here. " , wsdl);
SOAPService ss = new SOAPService(wsdl, SERVICE_NAME);
QName soapPort = new QName("http://apache.org/hello_world_soap_http/xmlbeans", "SoapPort");
ss.addPort(soapPort, SOAPBinding.SOAP11HTTP_BINDING, "http://localhost:"
+ NOWSDL_PORT + "/SoapContext/SoapPort");
Greeter port = ss.getPort(soapPort, Greeter.class);
String resp;
ClientProxy.getClient(port).getInInterceptors().add(new LoggingInInterceptor());
ClientProxy.getClient(port).getOutInterceptors().add(new LoggingOutInterceptor());
resp = port.sayHi();
assertEquals("We should get the right response", resp, "Bonjour");