This forum is now a read-only archive. All commenting, posting, registration services have been turned off. Those needing community support and/or wanting to ask questions should refer to the Tag/Forum map, and to http://spring.io/questions for a curated list of stackoverflow tags that Pivotal engineers, and the community, monitor.

Sending binary data through web service

I'm running spring-ws under Java 5 (via Jboss 5.0). I'd like to build a service that accepts a simple SOAP request, builds a PDF document, then returns the PDF in the SOAP response.

The clients of this service use Java 1.4, which appears to be important, as not all the tools for extracting the PDF from the SOAP response (e.g. JAXB2) are available under Java 1.4 (at least, that's how it seems to me). The client side does not have to use spring-ws, so other tools are welcome (e.g. AXIS2).

I'll continue hunting a solution on my own, but if anyone could save me from a crummy weekend with a quick suggestion I'd be forever grateful. :-)