| Author |
Does JAX-WS require that attachments be base64 encoded?
|
Ravi Danum
Ranch Hand
Joined: Jan 13, 2009
Posts: 104
|
|
Hello,
I am tasked with writing a web service which uploads and downloads various file types. The files could be very large. I don't want to use base64 encoding for the transport. I can use either JAX-WS or SAAJ. Does JAX-WS require that the data be base64 encoded? Thank you for any help you can give.
Ravi
|
 |
Peer Reynders
Bartender
Joined: Aug 19, 2005
Posts: 2906
|
|
Not if you are using attachments (JAX-WS: Binary Attachments (MTOM)).
base64 encoding is only used if you intend to include the non-XML content inside the XML payload of the SOAP envelope (binary data without attachments).
The problem with the various attachment technologies is that they aren't equally well supported by all client SOAP stacks - so base64 encoding may be preferable.
|
"Don't succumb to the false authority of a tool or model. There is no substitute for thinking."
Andy Hunt, Pragmatic Thinking & Learning: Refactor Your Wetware p.41
|
 |
Ravi Danum
Ranch Hand
Joined: Jan 13, 2009
Posts: 104
|
|
|
Thank you so much. That is a good start.
|
 |
 |
|
|
subject: Does JAX-WS require that attachments be base64 encoded?
|
|
|