cancel
Showing results for 
Search instead for 
Did you mean: 

PayloadZipBean - Unzip not working

Former Member
0 Kudos

Hi,

Let me explain my scenario first, it is simple but not properly explained in many blog..

I need to fetch a Zipped file( Input.zip), unzip it (contains a Input.xml file ) & map, send it to another file server.

In my Sender CC I have added the following in modules

AF_Modules/PayloadSwapBean Local Enterprise Bean Transform

AF_Modules/PayloadZipBean Local Enterprise Bean Unzip

CallSapAdapter Local Enterprise Bean 0

Transform swap.keyName payload-name

Transform swap.keyValue attachment;filename="Input.xml"

Unzip Unzip.Mode unzip

Source Directory in Sender CC points to zip file

My expectation is that, a new attachment is created during unzip, it is pointed as payload because of PayloadSwapBean.

After executing, it shows parser error in sxmb_moni, when I click the payload in in sxmb_moni, a popup comes asking me to save the zip file, it proves that the file is not unzipped & attached as new payload.

Need your help .

Thanks,

Sridhar

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

> Unzip Unzip.Mode unzip

It should be: zip.Mode

Former Member
0 Kudos

Thanks Stefan... as you said, it should be Unzip zip.mode unzip

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

The parameters of the swap bean seems incorrect.

You can check the name of the payload and the attachments in the SXMB_MONI. Use that name.

Regards

Stefan

Former Member
0 Kudos

Hi Stefan,

Your suggestion looks good, when In checked in SXMB_MONI under payload

it showed MainDocument(application/xml)...when I clicked it asked 'Do you want to save the file' & showed the file name as 25c4850_1827HTML000007, file type as WinRAR ZIP archive...

Do you want to use this has file names ?

moreover I think the 25c4850_1827HTML000007 will change if I try to execute again ...

Can you clarify me ?

Thanks,

Sridhar