Earlier I asked about customizing XML serialization in CXF and got some helpful suggestions, but I left out an important detail. I need to write a "streaming" SOAP service that returns an enormous amount of XML without storing the entire response in memory at any time.
In XFire, it was straightforward to do this by creating a custom type mapping for the return value to override the generation of XML for the schema and response. http://xfire.codehaus.org/Custom+Types Now I need to do the same thing in CXF. Are custom type mappings still the recommended approach? I read JIRA https://issues.apache.org/jira/browse/CXF-2044 which suggests that this code is in transition. (I'm currently on CXF 2.1.4.) If custom type mappings are not the recommended approach for this, what is? Is there a solution based on CXF interceptors? (which I haven't really studied yet) Is there better support in CXF 2.2? Or is this type of service just not officially supported by CXF at all? My application already has dozens of services already implemented using CXF (WSDL-first, JAX-WS/JAXB) and I'm hoping to stick to CXF for this last one, but if absolutely necessary I could use XFire for that last service or write it as a servlet. Thanks for any solutions or constructive suggestions, - Joe -- Joe Morrison, Lab49 http://www.lab49.com Cell +1 (917) 952-2935 --- This communication may contain confidential and/or privileged information. If you are not the intended recipient (or have received this communication in error) please notify the sender immediately and destroy this communication. Any unauthorized copying, disclosure or distribution of the material in this communication is strictly forbidden. Deutsche Bank does not render legal or tax advice, and the information contained in this communication should not be regarded as such.
