File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes MTOM content transfer - Axis2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "MTOM content transfer - Axis2" Watch "MTOM content transfer - Axis2" New topic
Author

MTOM content transfer - Axis2

Anjali S Sharma
Ranch Hand

Joined: Jun 29, 2005
Posts: 279
I have a POJO service in Axis2 which needs to transfer Content to the client. The content transfer mechnism is MTOM.
In the MTOM user guide
http://ws.apache.org/axis2/1_5/mtom-guide.html
following example is given for the server side code


but since I have a POJO web service, I do not have OMElement.
My web service method looks like this


Please let me know how can I transfer content using this POJO web service.

Thank You
shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
Different elements which you use to form soap envelope are OMElement. SOAP envelope itself is an OMElement. If you want to send back binary attachment as response it should appear in WSDL I guess. Then You can populate that element in service side with binary data you have.


SCJP 1.5(97%) My Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MTOM content transfer - Axis2
 
Similar Threads
DataHandler with Axis2
Client for MTOM content transfer in Axis2
MTOM not working in Axis2
Axis2 - Transfer document using MTOM
Axis2, client handler not getting called