Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

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

 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Raj Shri
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!