private void addWSAddressingInterceptors ( InterceptorProvider provider ) { MAPAggregator mapAggregator = new MAPAggregator ( ) ; MAPCodec mapCodec = new MAPCodec ( ) ; provider . getInInterceptors ( ) . add ( mapAggregator ) ; provider . getInInterceptors ( ) . add ( mapCodec ) ; provider . getOutInterceptors ( ) . add ( mapAggregator ) ; provider . getOutInterceptors ( ) . add ( mapCodec ) ; provider . getInFaultInterceptors ( ) . add ( mapAggregator ) ; provider . getInFaultInterceptors ( ) . add ( mapCodec ) ; provider . getOutFaultInterceptors ( ) . add ( mapAggregator ) ; provider . getOutFaultInterceptors ( ) . add ( mapCodec ) ; }
Add WSAddressing Interceptors to InterceptorProvider in order to using AddressingProperties to get MessageID .