BusFactory.setDefaultBus(bus);
URL wsdlURL = XmlBeansTest.class.getResource("/wsdl/xmlbeanstest.wsdl");
SOAPMineService ss =
new SOAPMineService(wsdlURL,
new QName("http://cxf.apache.org/xmlbeans/wsdltest", "SOAPMineService"));
GreeterMine port = ss.getSoapPort();
((BindingProvider)port).getRequestContext()
.put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
"http://localhost:" + PORT + "/SoapContext/SoapPort");
SayHi2MessageDocument document = SayHi2MessageDocument.Factory.newInstance();
StringListType stringListType = document.addNewSayHi2Message();
stringListType.setMyname("sean");
stringListType.setMyaddress("home");
port.sayHi2(document);
}