Thanks a lot Vivek for pointing to interceptor. I will be using that to capture the incomig XML.
Also, I have once more doubt. is it possible to send an already created XML file in the response without calling the marshaller to create the XML from the java object. However, the incoming request should go though the normal unmarshalling process. If I don't set the marshaller property in the applicationContext will it work that way?
You can register an EndpointInterceptor with spring-ws and manipulate the response to your liking. I think Spring-WS will try to add SOAP stuff to your XML (as it is SOAP centric implementation), So you will have to use interceptors.