cancel
Showing results for 
Search instead for 
Did you mean: 

Zipping http Request

rainer_hbenthal
Active Contributor
0 Kudos

Hi,

i have several reports communicating with XI via cl_http_client to send XML data to XI. Cause some of these XML requests are rather big i'm thinking of compressing/zipping the data. Does this make sense and if yes, how to archive this? I know from the apache webserver configurtion that its just a configuration thing to enable gzipped http comunication. Is there something like this in XI?

Accepted Solutions (0)

Answers (3)

Answers (3)

rainer_hbenthal
Active Contributor
0 Kudos

again no answer

former_member181985
Active Contributor
0 Kudos

Check My WIKI section:

[https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sendingBinaryDatatoInboundPlainHTTPAdapterinXIandPI|https://www.sdn.sap.com/irj/scn/wiki?path=/display/xi/sendingBinaryDatatoInboundPlainHTTPAdapterinXIandPI]

I hope this helps your requirement.

Thanks,

- Gujjeti.

former_member181985
Active Contributor
0 Kudos

We cannot directly send a zip message (Binary) to XI inbound HTTP adapter.

You have to convert the zip message to a BASE64 format before sending.

In XI decode the Base64 format to original format (binary), then Unzip if required according to your requirement.

Regds,

- Gujjeti.

stefan_grube
Active Contributor
0 Kudos

> You have to convert the zip message to a BASE64 format before sending.

base64 increases the message size by 50%

former_member181985
Active Contributor
0 Kudos

yes Stefan I accept, but the zipped message size will be in the order of some KB since it is an XML file(5MB). And I hope it doesnt matter even if we use BASE64 encryption on the zipped message.

Edited by: Praveen Gujjeti on Apr 9, 2009 2:21 PM

Former Member
0 Kudos

Hi,

Xi have a generic module "PayloadZipBean" used for zip and unzip the payload.But you are using the cl_http_client for sending the data.Sender is HTTP then there is no need of sender communication channel.So better you can create a java mapping and unzip the payload after that using your real mapping.

Regards,

Prakasu.M

stefan_grube
Active Contributor
0 Kudos

gzip is for transport only, the message is unzipped before entering PI, this is part of the HTTP framework of the Web AS.

If you want to zip the message, then the sending application has to do this, not the framework.

Regards

Stefan

rainer_hbenthal
Active Contributor
0 Kudos

Yes, you are right, the sender has to zip it, but in that case if have to unzip it in PI to do a message mapping.

But maybe its not worth thinking of it? The messages are 5 to 10 MB in size, so i'm just thinking about to reduce the network traffic.

stefan_grube
Active Contributor
0 Kudos

If it is just for the network traffic, you can use the gzip of the http client.

stefan_grube
Active Contributor
0 Kudos

btw: If you can influence the design of the XML structure, you can reduce the traffic by using short tag names.

rainer_hbenthal
Active Contributor
0 Kudos

Using short tag names wouldnt help a lot cause we have to "talk" to a silly application which does not understand deltas but insists on getting the whole stuff every day

rainer_hbenthal
Active Contributor
0 Kudos

>

> gzip is for transport only, the message is unzipped before entering PI, this is part of the HTTP framework of the Web AS.

> Regards

> Stefan

Where can i start to test this out?