Skip to Content

Web service with attachment error


Using a web service, I want to get a document out of a database.

The request is going fine and the response message, with the attachment, leaves the database correctly.

When I check my scenario on SAP PO, I see an error:

Transmitting the message using connection SOAP_ failed, due to:

Error encountered while executing mapping:

Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_<response message mapping name>_;

Details:; Unexpected value <null> for node <node name>

In the receiver SOAP adapter, Keep Attachments is ticked.

On Operation Mapping level, Read Attachments is also ticked.

Any idea what could be wrong here?

Thanks a lot


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Oct 23, 2015 at 07:49 AM


    Can you share what is the logic in the response mapping? Is there any UDF - if yes can you share the logic?


    Eng Swee

    Add comment
    10|10000 characters needed characters exceeded

    • Our response message mapping does not do anything. Just passing through data.

      For that reason, I left it out the operation mapping.

      Now, I see the maindocument and the PDF attachment in the message monitor on the SAP ERP system.

      Next question is: how to get that PDF out of it using ABAP code, but that's a question I do not need to answer 😊

      All suggestions, I will pass to the ABAP team.

      Thanks guys for the support!


  • Oct 23, 2015 at 07:30 AM

    Hi Dimitri,

    I think the problem is the id reference to the attachment is lost in the SOAP manifest as this thread explains

    I haven't clear if the solution in the thread could help you, may be i would try with the SOAP AXIS adapter.

    For example, with MTOM attachments, i did the next:


    pastedImage_1.png (50.6 kB)
    pastedImage_2.png (51.4 kB)
    Add comment
    10|10000 characters needed characters exceeded