@Before
public void before() throws Exception {
JaxWsServerFactoryBean sf = new JaxWsServerFactoryBean();
sf.setAddress("http://localhost:9167/Echo");
sf.setDataBinding(new AegisDatabinding());
sf.setServiceBean(new Echo());
Server server = sf.create();
// turn off nanny in URIMappingInterceptor
server.getEndpoint()
.getService().put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);
ServerFactoryBean sf2 = new ServerFactoryBean();
sf2.setAddress("http://localhost:9167/SimpleEcho");
sf2.setDataBinding(new AegisDatabinding());
sf2.setServiceBean(new Echo());
server = sf2.create();
// turn off nanny in URIMappingInterceptor
server.getEndpoint()
.getService().put(AbstractInDatabindingInterceptor.NO_VALIDATE_PARTS, Boolean.TRUE);