Skip to Content

Web service with attachment error

All,

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_http://sap.com/xi/XI/System failed, due to: com.sap.engine.interfaces.messaging.api.exception.MessagingException:

Error encountered while executing mapping: com.sap.aii.af.service.mapping.MappingException:

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

Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; 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

Dimitri

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

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

    Dimitri

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

    Rgds

    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!

      Dimitri

  • 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:

    Regards.


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