public void testArrayAndList() throws Exception {
ArrayServiceImpl serviceImpl = new ArrayServiceImpl();
EndpointImpl ep = new EndpointImpl(getBus(), serviceImpl, (String) null);
ep.publish("local://localhost:9090/array");
ep.getServer().getEndpoint().getInInterceptors().add(new LoggingInInterceptor());
ep.getServer().getEndpoint().getOutInterceptors().add(new LoggingOutInterceptor());
QName serviceName = new QName("http://service.jaxws.cxf.apache.org/", "ArrayService");
QName portName = new QName("http://service.jaxws.cxf.apache.org/", "ArrayPort");
// need to set the same bus with service , so use the ServiceImpl
ServiceImpl service = new ServiceImpl(getBus(), (URL)null, serviceName, null);