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_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 Sannen replied
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!