cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Sender attachment named attachment-1

susan_pfab
Participant
0 Kudos

We are on SAP PI 7.1.  When sending a soap message to PI with a file attachment, the file attachment is never named correctly in PI.  It's always named attachment-1.   Is there a way to correct this or rename the attachment in PI?

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member181985
Active Contributor
0 Kudos

Hi,

As Stefan already mentioned it is default behavior of SOAP adapter, hence you should look for work around options.

One work around would be along with attachment source system should send file Name in httpheaders e.g., such as Dynamicconfiguration header in the SOAP message. In mapping read the header file name and then create a new attahcment by reading the incoming attachment content. Finally remove the incoming original attachment if required in the mapping. ***Please note that remove attachment method might not work for all PI versions.

**Update:

There is no need even for fileName in http header (e.g., as dynamic configuration) as mentioned above. Just read the contentID of the incoming attachment should give the actual fileName. Then create a fresh attachment using the read contentID as name with byte content of incoming attachment. There is even no need to remove the original attachment , as new attachment will overwrite the original attachment but with correct fileName.

check my new blog: http://scn.sap.com/community/pi-and-soa-middleware/blog/2013/07/01/retaining-soap-adapter-attachment...

Regards,
Praveen Gujjeti

stefan_grube
Active Contributor
0 Kudos

This is hard coded in SOAP sender adapter.

There is no way to change this behaviour.