cancel
Showing results for 
Search instead for 
Did you mean: 

Sender SOAP Adapter: zipped Payload or zipped Attachement possible?

Former Member
0 Kudos

Hi,

I've a SOAP --> PI --> Proxy Scenario. As the payload of the message can become quite huge (around 10MB), I'd like to zip the message.

From the documentation it's not clear for me if the Sender SOAP Adapter can be enhanced with the standard PayloadZipBean:

"You cannot add your own modules to this adapter" --> so is it possible to use modules provided by SAP?

If it's not possible: is there another way to send the message zipped via SOAP, e.g. as a additional attachement to the SOAP message, and to unzip the attachement / use the content of it as message payload for mapping?

Please note: usage of SOAP is a must for that scenario.

Best regards

Holger

Accepted Solutions (0)

Answers (3)

Answers (3)

former_member181985
Active Contributor
0 Kudos

>If it's not possible: is there another way to send the message zipped via SOAP, e.g. as a additional attachement to the SOAP message, and to unzip the attachement / use the content of it as message payload for mapping?

it can be possible. Simply read the zipped attachment in mapping (Java Mapping) then unzip and transform (map) to the target structure.

Former Member
0 Kudos

Hi all,

thanks for your answers. File size is a question due to limited network speed between sender and PI. If I can reduce the data package to be transferred, it'd be a big help. Therefore I'd like to zip the message.

Okay, so it's not possible to enhance the SOAP adapter with modules. The Java mapping: how should it work? How can I unzip the data? Where is the zip file in my Webservice (in the body as binary or in the attachement)?

Best regards

Holger

former_member206760
Active Contributor
0 Kudos

Dear Holger,

1. SOAP adapter doesnot allow modules

however instead of java mapping i would suggest convincing the sender to send small chuncks of messages

Edited by: Tarang Shah on Mar 30, 2009 6:56 PM

prateek
Active Contributor
0 Kudos

You may use soap adapter with axis framework. It would then allow you to add modules.

Regards,

Prateek

former_member206760
Active Contributor
0 Kudos

Dear Prateek,

can you throw some more light on how to use SOAP adapter with AXIS

prateek
Active Contributor
stefan_grube
Active Contributor
0 Kudos

> File size is a question due to limited network speed between sender and PI. If I can reduce the data package to be transferred, it'd be a big help. Therefore I'd like to zip the message.

In this case it would be sufficient to use Content-Encoding gzip.

This is part of the HTTP protocol and will be unzipped automatically by the HTTP framework, so you need not do anything special in SOAP adapter.

See http://tools.ietf.org/html/rfc2616#section-14.11

Check if your SOAP client is able to use that.

Regards

Stefan

Edited by: Stefan Grube on Mar 31, 2009 2:11 PM

former_member206760
Active Contributor
0 Kudos

i do not think that you need to reduce the size of your message...SOAP message are already in XML format..

and trust me ..10 MB should not create any problem

former_member307485
Active Participant
0 Kudos

Hi Holger,

You cannot use modules in the SOAP sender adapter, so it is not an option to use the PayloadSwapBean.

This link will be helpful

http://www.w3.org/TR/SOAP-attachments

http://www.theserverside.com/tt/articles/article.tss?l=SendingAttachmentsWithSOAP

Regards,

Divya