cancel
Showing results for 
Search instead for 
Did you mean: 

How to Capture text response by using HTTP_AAE Receiver adapter in SAP PO single stack

Former Member
0 Kudos

Dear Team,

we have requirement sending SMS to the customers mobiles. I am successfully sending the messages to the customers mobiles by using the above method. Facing issues with response message. The response messages is in plain text fromat in single line like...Sent or Authorization fail.

Using HTTP_AAE Receiver adapter.

ESR-

Created both Data Types @ Inbound and Outbound.

By using the Adapter specific attributes in HTTP_AAE Receiver adapter am able to send the sms to customers. Response the delivery message need to send to ECC.

The response message was failed while excution of the message mapping with the error

Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.


please share the comments how to pass the Status of the message to SAP ECC from SAP HTTP adapter


Regards,

Sudir.

Accepted Solutions (0)

Answers (1)

Answers (1)

engswee
Active Contributor
0 Kudos

Hi Sudir


Mapping failed in runtimeRuntime Exception when executing application mapping program com/sap/xi/tf/_MM_SMS_CUST_RES_; Details: com.sap.aii.utilxi.misc.api.BaseRuntimeException; Content is not allowed in prolog.

The error you are getting above is because graphical message mapping expects an XML input but it fails to parse the response as it is in plain text format.

As such, you will need to use Java Mapping instead to map the plain text response back to ECC XML response structure.

You should be able to find many examples on SCN on Java mapping. Below is one sample Java mapping code for Plain to XML which is based on my article

CustomPlain2DOM.java

Rgds

Eng Swee