cancel
Showing results for 
Search instead for 
Did you mean: 

aii.af.ra.ms.api.Payload.setName(String arg0) do not work

Former Member
0 Kudos

Hi all,

I try to use the method “setName” in the class Payload (aii.af.ra.ms.api.Payload) to rename my payload in a specific module but it doesn’t work. I’m using a receiver mail adapter in SAP XI SP18.

The result is an email is an attachment called “noname”.

Module Code :

String payString = xmlpayload.getText();

XMLPayload payXML = msg.createXMLPayload();

payXML.setContentType("text/xml");

payXML.setText(payString);

payXML.setName(“toto”);

msg.setDocument(payXML);

Any ideas, what could be wrong?

Thanks,

Nicolas.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

This will not work.

check payXML.setName(“toto”);

Regards

Chilla..