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 How to Use SOAP Compression Message and Attachment with Apache Axis 1.X Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Web Services
Reply Bookmark "How to Use SOAP Compression Message and Attachment with Apache Axis 1.X" Watch "How to Use SOAP Compression Message and Attachment with Apache Axis 1.X" New topic
Author

How to Use SOAP Compression Message and Attachment with Apache Axis 1.X

Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 21
Hi Friends,


I wanna do compress SOAP message and attachment. I am using Apache Axis 1.X.

Is there any inbuilt function or we have to do compress before send message and attachment. And decompress while receiving in other side.

If any one know please help.


Thanks

Raj

This message was edited 1 time. Last update was at by Raj Shri

shivendra tripathi
Ranch Hand

Joined: Aug 26, 2008
Posts: 263
If you transferring your attachment as BASE64 encoded form then you can use soap with attachment (SWA) supported by axis 1.0. If you want to optimize it further use MTOM support provided in AXIS2 for attachments.


SCJP 1.5(97%) My Blog
Raj Shri
Greenhorn

Joined: May 02, 2010
Posts: 21
Thanks Shiv

Please can you tell me how to set in SOAP with attachment (SWA) supported. Can I do like below.

<transport name="http" pivot="java:com.osmoticweb.soapcompression.CompressionHTTPSender">
<parameter name="compressRequest" value="true"/>
<parameter name="acceptEncodingHeader" value="true"/>
</transport>

One more thing Should I do somthing on client side also. Because my serve is in java and client is in C#.


Thanks

Raj
 
 
subject: How to Use SOAP Compression Message and Attachment with Apache Axis 1.X
 
developer file tools