We have a scenario where a web service client calls a MTOM web service,
which in turn calls another MTOM web service to get the data, as shown
below.
Client ----> MTOM web service 1 ---> MTOM web service 2
Both MTOM web services return objects which contain DataHandler annotated
by @XmlMimeType("application/octet-stream").
Can the MTOM web service 1, simply return the same dataHandler object in
it's response to the client, that it got from MTOM web service 2?
Currently, MTOM web service 1 copies the contents of the data handler
returned from service 2, and creates a new data handler to return to the
client. Instead, can the same data handler object that is being returned by
service 2, be passed back to the client in service 1 response? Would there
be any problems?
Thanks
Sunil.