aspose file tools*
The moose likes Web Services and the fly likes How should a List of MTOM DataHandler images be represented with jaxb annotations Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "How should a List of MTOM DataHandler images be represented with jaxb annotations" Watch "How should a List of MTOM DataHandler images be represented with jaxb annotations" New topic
Author

How should a List of MTOM DataHandler images be represented with jaxb annotations

Chris Riffle
Greenhorn

Joined: Dec 30, 2005
Posts: 18
I'm wanting to leverage MTOM in writing a service with 'java code first' jaxb annotations to deploy to jaxws jbosswsnative on jboss. I understand putting annotations on a 'Single' DataHandler parameter or member variabe as in




I'm hoping to have other operations that use ArrayList as input and output but haven't found examples online for recommendations on how to use jaxb annotations wtih DataHandler(s?) to accomplish this. Would it be advised to put a DataHandler inside an ArrayList as in:




To annotate a pojo to be used as a return type for a service operation -- could I use an ArrayList to store an ArrayList of images:

Thank you
H Paul
Ranch Hand

Joined: Jul 26, 2011
Posts: 382
From Doc:

This annotation is used in conjunction with datatypes such as Image or Source that are bound to base64-encoded binary in XML.

1. For me: I define




Some where I use



2. I also used @MTOM feature given JAX-WS 2.x has it.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How should a List of MTOM DataHandler images be represented with jaxb annotations
 
Similar Threads
problem to send file
cannot enable MTOM Feature
When use mtom to transfer one file, server log shows the file is accessed twice.
Apache CXF with MTOM enabled WCF Service
JAX-WS problem with WAS 8.0