Hi,
I have a service interface:
@WebService
Interface {
@XmlJavaTypeAdapter(ComplexObjectAdapter.class)
public ComplexObject getComplexObject();
}
ComplexObject is an interface of a library. So I cant use annotations in the
implemenation class for JAXB binding. My solution right now is to use the
ComplexObjectAdapter to convert the object to a string (read byte array
stream and encode with base64). This is quite slow and it doesnt scale for
bigger object sizes!
I think there is a better solution to put that byte array stream as an
attachment, but I dont know what is the best solution. I dont want to change
the service interface and I have to use the ComplexObject interface.
I tried to use the SwAOutInterceptor (server-side) but it doesnt work. The
handleMessage method returns without putting the content to attachments.
I guess I cant use the MTOM transfer mode, right? In this case I need
annotations in the Complex Object implementation class and that is not
possible.
Thanks a lot for your help!
--
View this message in context:
http://old.nabble.com/Byte-Array-To-Attachments%3A-MTOM-or-SwA-In---Out-Interceptor--tp28398159p28398159.html
Sent from the cxf-user mailing list archive at Nabble.com.