Thanks a lot for your answer!!! I think I'm gonna build an interceptor. The one given in the configuration_interceptor example should do the trick! But I don't understand how I can activate my interceptor...I took the server.xml of the example, put it where it should be, aside from the cxf-servlet.xml and web.xml files, I added this in my web.xml file: <context-param> <param-name>serverConfig</param-name> <param-value>WEB-INF/server.xml</param-value> </context-param> but it is not activated and "intercepts" nothing...:-( What should I do???
Glen Mazza-2 wrote: > > > Am Mittwoch, den 12.12.2007, 08:58 -0800 schrieb Tophebboy: >> Hi everybody! >> I'm building an application using CXF and it can be used by people >> having a >> quite bad network and who have to get big amounts of datas via my web >> service. >> When I tested the application on such networks, I found out that the >> time >> used to transfert the SOAP flow was very long. >> I also checked the size of a xml like file I could get calling my web >> service via a web browser, and I saw that I could divide its size by 4 >> zipping it. >> So I was wondering: is it possible to configure CXF so it compresses >> the >> SOAP messages? > > http://netzooid.com/blog/2007/07/01/working-with-non-xml-formats-in-cxf-interceptors/ > ? > > >> I checked this: >> http://cwiki.apache.org/CXF20DOC/server-http-transport.html >> And I saw that you could set a "C=contentEncoding" to "Compress" in the >> "The >> server element". Is it what I'm looking for??? If it is, where could I >> put >> all the stuff described in this tutorial? >> I'm a newbie to web services and it is quite hard for me :-( >> . >> I tried tu put this in my cxf-servlet.xml file but when I build the web >> service package (I use Eclipse STP), my cxf-servlet.xml is automatically >> overriden by the default one. > > ? I didn't know there is a "default" cxf-servlet.xml. Usually just > keeping that file in your WEB-INF directory should work. This is how > I've managed to build a web service using Maven[1] and Ant[2]. > > HTH, > Glen > > [1] http://www.jroller.com/gmazza/date/20071205 > [2] http://www.jroller.com/gmazza/date/20071019 > > >> >> Could somebody please help me??? >> Thanks very much in advance!!! >> >> Chris > > > -- View this message in context: http://www.nabble.com/SOAP-flow-Compression--tp14299256p14313632.html Sent from the cxf-user mailing list archive at Nabble.com.