cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From suryavikas <>
Subject CXF 2.4.1 Interceptor
Date Thu, 25 Aug 2011 18:15:10 GMT

I had been using CXF 2.2.9 without any issues, and after reading the
advisory on the CXF site, I have upgraded to CXF 2.4.1. After the upgrade I
have been dealing with issues w.r.t the interceptors. 

With version 2.2.9 this code used to work just fine
public SessionInterceptor() {

	public void handleMessage(Message message) throws Fault {
		// Get the supplied SOAP envelope in the form of an InputStream
		InputStream inputStream = message.getContent(InputStream.class);
And used to give me an entire SOAP envelope like this
[08-25 23:25:48] DEBUG SessionInterceptor [http-8080-2]: <soapenv:Envelope

Now after the upgrade the none of the clients are able to see the wsdls in
the browser or SOAP client as the request triggers the interceptor on any
requests it receives and it expects client to pass the SESSION ID, when not
found it just gives them HTTP 500 error.

I have tried with different phases to sort this issue out, but in all other
phases other than RECEIVE, I do not get the SOAP envelope in my code. 
I have disabled the inInterceptor & loaded the wsdl in SOAP UI and later
enabled back the inInterceptor & the old code was working as expected.
Now when I change the phase to any thing else clients are able to see the
wsdls, but my session checking doesn't work. 

Any suggestion or documentation about the changes in the Phase
implementation compared to 2.2.9 would really help.


View this message in context:
Sent from the cxf-user mailing list archive at

View raw message