Skip to Content
0

IDOC_AAE to SOAP scenario with email confirmation.

Feb 09, 2017 at 12:30 PM

99

avatar image

Dear experts,

I'm working on IDOC_AAE to SOAP scenario, where I will get one email confirming each payment is delivered to target system.

Here I’ve used sender IDOC_AAE channel. There are 2 receiver channels one to send the payment to target using soap and another to receive email confirmation via mail.

For mail configuration I’m using standard mail package and for the content field I’m passing the IDOC number.

In my ICO I’ve used two operation mapping for each interface (one for payment another for email). I’ve enabled “Maintain order at runtime” so that we get email once it is successfully sent to target.

Now my issue comes when we have multiple IDOC’s. The input will be with multiple IDOC’s whereas I can only show one email confirming the first IDOC number.

Now my requirement is to get one email for each IDOC number. So I changed the signature to 0 to unbounded and made changes at mapping level.

This mapping works if I give the input including messages and messages1 node. But when I push messages from ECC system it gives me error as follows.

Exception caught by adapter framework: Failed to call the endpoint


MP: exception caught with cause com.sap.aii.af.sdk.xi.srt.BubbleException:Failed to call the endpoint [null "null"]; nested exception causedby: com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag:{http://sap.com/xi/XI/Mail/30}Mail, but found{http://sap.com/xi/XI/SplitAndMerge}Messages at state

Mail: Error occurred:com.sap.aii.af.lib.mp.module.ModuleException

Mail: Error occurred:com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag:{http://sap.com/xi/XI/Mail/30}Mail, but found{http://sap.com/xi/XI/SplitAndMerge}Messages at state 1


Transmitting the message to endpoint using connectionIDoc_AAE_http:// sap.com/xi/XI/System failed, due to:com.sap.engine.interfaces.messaging.api.exception.MessagingException:com.sap.aii.af.sdk.xi.srt.BubbleException: Failed to call the endpoint [null"null"]; nested exception caused by:com.sap.aii.af.sdk.xi.util.XMLScanException: expecting start tag:{ http://sap.com/xi/XI/Mail/30}Mail, but found{ http://sap.com/xi/XI/SplitAndMerge}Messages at state

Please help me to get multiple emails. You can refer the below screenshots.

Regards,

Vidhya Nizamkar

om.jpg (95.6 kB)
mm.jpg (134.3 kB)
tested-mapping.jpg (111.6 kB)
10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers