on 10-23-2015 8:16 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, a few of things.
1. Does the main payload for the response matches the schema for the response mapping?
2. What are you expecting to do with the attachments? If you set "Read Attachments" in the OM, it indicates that you intend to have some Java mapping or UDF to access the attachments on the response message.
3. Do you actually see the attachment available in the Message Monitor?
Hi Eng,
Kind regards,
Dimitri
3. If you can't see the response message in Message Monitor, I'd suggest that you add MessageLoggerBean as a module in the receiver channel. Add it after the standard module so that it logs the response
1. Once you are able to see the response, you can compare the payload against the definition in ESR
2. If you have a response mapping, I don't think the attachment automatically transfers to the target payload - I can't remember exactly on this and I don't have an attachment scenario to confirm this right now. I'd suggest you try the removing "Read attachments" and see if you still get the error
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.