Re: How to handle unexpected text/html ContentType in Response

2010-02-22 Thread Daniel Kulp
On Sun February 21 2010 9:48:49 am SaravananRamamoorthy wrote: > Hi Dan, > > Can we get html mime headers using the interceptor? If it so could you > please send some links on the same. Well, the easy thing to do is do: Map> reqHeaders = (Map)message.get(Message.PROTOCOL_HEADERS)); And then lo

Re: How to handle unexpected text/html ContentType in Response

2010-02-21 Thread SaravananRamamoorthy
it = (HTTPConduit) client.getConduit(); >>> >>> HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); >>> httpClientPolicy.setAllowChunking(false); >>> httpConduit.setClient(httpClientPolicy); >>> >>> Am I missing something? >>> >>> Regards >>> Saravanan Ramamoorthy >> >> -- >> Daniel Kulp >> dk...@apache.org >> http://www.dankulp.com/blog >> >> > > -- View this message in context: http://old.nabble.com/How-to-handle-unexpected-text-html-ContentType-in-Response-tp27620329p27676228.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: How to handle unexpected text/html ContentType in Response

2010-02-17 Thread SaravananRamamoorthy
TTPClientPolicy httpClientPolicy = new HTTPClientPolicy(); >> httpClientPolicy.setAllowChunking(false); >> httpConduit.setClient(httpClientPolicy); >> >> Am I missing something? >> >> Regards >> Saravanan Ramamoorthy > > -- > Daniel Kulp > dk...@apache.org > http://www.dankulp.com/blog > > -- View this message in context: http://old.nabble.com/How-to-handle-unexpected-text-html-ContentType-in-Response-tp27620329p27631685.html Sent from the cxf-user mailing list archive at Nabble.com.

Re: How to handle unexpected text/html ContentType in Response

2010-02-17 Thread Daniel Kulp
Sounds like a very poorly implemented webservice that isn't adhering to specs. :-( My only thought is to write an interceptor that would "process" the html page into something a bit more tolerable. Dan On Wed February 17 2010 3:20:03 am SaravananRamamoorthy wrote: > Hi All, > > I have cre

How to handle unexpected text/html ContentType in Response

2010-02-17 Thread SaravananRamamoorthy
(httpClientPolicy); Am I missing something? Regards Saravanan Ramamoorthy -- View this message in context: http://old.nabble.com/How-to-handle-unexpected-text-html-ContentType-in-Response-tp27620329p27620329.html Sent from the cxf-user mailing list archive at Nabble.com.