Hi
I am trying to intercept the soap message in two separate interceptors:
one (InBoundInterceptor.java) for inbound soap message and another
(OutBoundInterceptor.java) for the outbound soap response from the
service.
I have been able to intercept the soap message but only my
InBoundInterceptor.java is intercepting for both the inbound and the
outbound message from the service.
Can anyone tell me what phase my inbound and outbound interceptor should
be in?
I have my inbound and outbound interceptor defined as following:
public class InBoundInterceptor extends AbstractSoapInterceptor {
private Logger logger =
LoggerFactory.getLogger(getClass().getName());
public Interceptor1() {
super(Phase.RECEIVE);
}
@Override
public void handleMessage(SoapMessage soapMessage) {
}
}
public class OutBoundInterceptor extends AbstractSoapInterceptor {
private Logger logger =
LoggerFactory.getLogger(getClass().getName());
public Interceptor1() {
super(Phase.RECEIVE);
}
@Override
public void handleMessage(SoapMessage soapMessage) {
}
}
thanks
Sonam Nepali
[email protected]