Hi,

I assume that interceptor validates request on the service side (not on the 
client).
In request is invalid, should client receive normal response or SOAP Fault?
In case of SOAP Fault you can simply throw org.apache.cxf.interceptor.Fault 
exception with desired data.

Regards,
Andrei.

> -----Original Message-----
> From: sumit_chauhan [mailto:[email protected]]
> Sent: Freitag, 14. Juni 2013 06:25
> To: [email protected]
> Subject: CXF Custom Validation Interceptor with custom response not
> working
> 
> I am trying to write a Custom CXF Interceptor to do some validations on SOAP
> request to a web service. Based on the validation results, I want to block the
> request to web service and return the response with some modified
> parameters.
> For this, I have written custom CXF ininterceptor extending from
> AbstractPhaseInterceptor, to run in phase USER_LOGICAL, which does
> validations, but I am not able to stop the subsequent call to web service and
> also not able to pass the Custom Response object(Custom Response object
> type is same as web service return type).
> I have also tried aborting the interceptor chain, but this does not return a
> response at all.
> How can I do this using interceptors?
> 
> 
> 
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-
> Custom-Validation-Interceptor-with-custom-response-not-working-
> tp5729251.html
> Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to