use of org.apache.cxf.ws.addressing.impl.MAPAggregatorImpl in project cxf by apache.
the class NestedAddressingPolicyTest method greetMeWSA.
@Test
public void greetMeWSA() throws Exception {
// use a wsa-enabled client
SpringBusFactory bf = new SpringBusFactory();
bus = bf.createBus();
BusFactory.setDefaultBus(bus);
BasicGreeterService gs = new BasicGreeterService();
final Greeter greeter = gs.getGreeterPort();
updateAddressPort(greeter, PORT);
LoggingInInterceptor in = new LoggingInInterceptor();
LoggingOutInterceptor out = new LoggingOutInterceptor();
MAPCodec mapCodec = MAPCodec.getInstance(bus);
MAPAggregatorImpl mapAggregator = new MAPAggregatorImpl();
bus.getInInterceptors().add(in);
bus.getInInterceptors().add(mapCodec);
bus.getInInterceptors().add(mapAggregator);
bus.getOutInterceptors().add(out);
bus.getOutInterceptors().add(mapCodec);
bus.getOutInterceptors().add(mapAggregator);
String s = greeter.greetMe("mytest");
assertEquals("MYTEST", s);
((Closeable) greeter).close();
}
Aggregations