public static final QName MTOM_SERVICE = new QName("http://cxf.apache.org/mime", "TestMtomService");
public static class Server extends TestServerBase {
protected void run() {
Object implementor = new TestMtomImpl();
String address = "http://localhost:9036/mime-test";
try {
Bus bus = BusFactoryHelper.newInstance().getDefaultBus();
JaxWsImplementorInfo implInfo = new JaxWsImplementorInfo(implementor.getClass());
AbstractServiceFactoryBean serviceFactory = new JaxWsServiceFactoryBean(implInfo);
serviceFactory.setBus(bus);
Service service = serviceFactory.create();
QName endpointName = implInfo.getEndpointName();
EndpointInfo ei = service.getServiceInfo().getEndpoint(endpointName);