Sergey,
I sincerely appreciate your help on this, but I'm having an issue getting
the Interceptor registered, it appears. I've added a simple
System.out.println() in the handleMessage() method of my Interceptor, and
it's never displaying in the logs, however other debugging output before and
after is showing.
Just to reiterate, this is on the client side, making a post to a remote
server who is returning "text" as the content-type.
Here's how I have it setup right now... can you see an obvious issue?
JAXRSClientFactoryBean bean = new JAXRSClientFactoryBean();
bean.getInInterceptors().add(new
ReplaceContentTypeInterceptor());
bean.setAddress(endpoint);
WebClient client = bean.createWebClient();
I also tried it like:
WebClient client = WebClient.create(endpoint);
WebClient.getConfig(client).getInInterceptors().add(new
ReplaceContentTypeInterceptor());
Neither way is working. Thanks in advance!
-Ben
--
View this message in context:
http://cxf.547215.n5.nabble.com/Media-type-separator-is-missing-how-to-troubleshoot-tp5711524p5711592.html
Sent from the cxf-user mailing list archive at Nabble.com.