cancel
Showing results for 
Search instead for 
Did you mean: 

MultipartHeaderBean

Former Member
0 Kudos

Hi Experts,

Anyone used the MultipartHeaderBean module? I'd like to use this header bean to send a flatfile to a receiving system that accepts multipart/form-data posting.

From the link provided by SAP HELP [Adding MultipartHeaderBean in the Module Processor|http://help.sap.com/saphelp_nwpi711/helpdata/en/cd/5af7c0c994e24fb0d0088443513de2/frameset.htm] it only shows on the module configurations:

1. Under Parameter Name, enter requiredHeaders.

2. Under Parameter Value, enter one of the following values:

All

All available attributes of main payload and available attributes of each attachment payload are added in dynamic configuration.

Comma separated list of attribute names

Only mentioned attributes of main payload and mentioned attributes of each attachment payload, if available, are added in dynamic configuration.

3. Under Parameter Name, enter dcNamespace.

4. Under Parameter Value, enter the value of namespace under which the attributes of main application payload and attachment payloads should be added in dynamic configuration. This namespace should be the same as the attribute namespace of the adapter in which this module is added.

How do we insert for example in the output the following:

1. Credentials (Username/Password) Content-Disposition: form-data; name="user" Content-Disposition: form-data; name="password"

2. Content-Type: text/plain; charset=ISO-8859-1, Content-Transfer-Encoding: binary

Or are these information standard on the results after passing to the bean?

Cheers,

R-jay

Accepted Solutions (1)

Accepted Solutions (1)

stefan_grube
Active Contributor
0 Kudos

The MultipartHeaderBean is intended to be used in sender mail adapter. You can see this in online help.

form-data is not supported in PI standard and you have to use Java mapping or other work arounds to make it run.

It is not too difficult and I hope there will a weblog or WIKI entry for this topic as this is requested often.

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

if you want to create new header line, you can use receiver adapter file contents conversion.

http://help.sap.com/saphelp_nwpi711/helpdata/en/44/70ec8a20453abee10000000a155369/frameset.htm

addHeaderLine will add new header line to your receiver file.

Naoki