Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SOAP ZIP Scenario

Hello fellow SAPers.

I come here with you guys for a word of advice in the requirement I have:

The scenario is as follows:

PI 7.3, Dual Stack, no BMP

SOAP -> PI -> SOAP

First SOAP is a SAP system sending a XML file like this:

<Line>

     <F1></F1>

     <F2></F2>

     ...

</Line>    

<Document1>

     <D1></D1>    

</Document1>

<Document2>

     <D2></D2>

</Document2>

And so on.

What we want is to Map the fields in line directly to the fields in the receiver interface and ZIP into a single file ZIP file every Document line.

We tried using the PayloadZipBean, however it does zip all the content into the generated file which is not what we want.

Moreover, once we have managed to send the message to the corresponding receiver SOAP interface, we need to put the ZIP document into a field in the Body of the soap message, this as per client requirement. The receiver is something like this:

<Line>

     <F1></F1>

     <F2></F2>

     ...

     <Fn>Documents.zip</Fn>

</Line>

The question now is what kind of approaches we can take to solve this. I dug into PayloadZipBean, expecting that using the zipOne would let accomplish the first part but it keep zipping everything in the payload. What we see is that using a UDF is the only viable option to solve this issue, so I come here to see if you guys could share some thoughts if our approach is correct or we're missing something.

Thank you in advance for your thoughts.

Regards.

Tags:
Not what you were looking for? View more on this topic or Ask a question