cancel
Showing results for 
Search instead for 
Did you mean: 

How to Test RFC to HTTP_AAE synchronous scenario in SAP PI 7.3

Former Member
0 Kudos

Dear Experts/Friends,

I am designing a technical document for RFC to HTTP_AAE scenario for one of my customer, I have decided to use HTTP_AAE adapter at receiver side because the third party is not capable to provide wsdl file.  I need to import a custom RFC (payment req) from ECC (FI/CO) and PI converts to XML and then post this XML to a secure (HTTPS) target URL provided by bank, and bank will send the response back in XML format to PI, and PI will send it to ECC(FI/CO) to update the status about the each transaction.

Below are the detail steps I am considering to design this scenario, as per the above requirement please correct me if I am doing anything wrong here. I have few question as which I have posted at the end.

1- SDL configuration

  1. a- Create Product and software component
  2. b- Create one technical system of type (web as ABAP) and also the business system for sender side
  3. c- Create another technical system of type (third party) and business system for Receiver side

2- Configuration at ECC(R/3) side

Create an RFC destination of type TCP/IP in ECC and provide the host name service and program id etc and maintain the same in sender RFC adapter

2- ESR configuration

|-Receiver side (inbound)

  1. a- Create http request and response data types and message types
  2. b- Create service interface (synchronous)
  3. c- Create message mapping between HTTP response to RFC response
  4. d- Create operation mapping for the request and response

||-Sender side (outbound)

  1. a- import the custom RFC in PI
  2. b- Create message mapping between RFC request to HTTP request
  3. c- Operation mapping has been created

3- Integration directory Configuration

  • Create the RFC sender communication channel
  • Create HTTP_AAE receiver communication channel
  • Create sender agreement, receiver agreement, interface determination and receiver determination

Questions

1- How can I test this scenario? Any tool which can take the HTTP request and sends back the response for some dummy data. My actual scenario involves SSL configuratin but I want to just test over http only, I have followed the below link by William Li , but could not understand it fully how to utilize this.

http://scn.sap.com/people/william.li/blog/2007/09/07/posting-and-testing-using-xipi-http-adapter

2-  Do I need to create 3 communication channel and 2 sets of sender agreement, receiver agreement, interface determination and receiver determination for this scenario? I have gone through the below thread, where it’s mentioned this scenario required 3 communication channel. Please clarify

http://scn.sap.com/thread/53784

Thanks,

Farhan

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

Couple of things

A) You dont need business sytem for http communication. you can still use business component

B) Since you use AAE option you can go to adapter engine in RWB and use test message option. But it has limitation

C) You can still create a moduel for HTTP client to test the third party system as below...

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48...

This is just client tool irrespective of PI version..

d) You can also use SOAP adapter without envelope option (simple http ) and use the payload as the target message.

e) You need just two communication channels(sender RFC and receiver http or soap)  and their respective sender and receiver agreements (total 2 agreements). That's it. Please go ICO scenario and check the configuration objects. Remember this is synchronous mode.

Former Member
0 Kudos

Thanks a lot Baskar. I believe the above link for the HTTP Client tool is to test the scenarios where HTTP adapter is from sender side, not from the receiver side, how this tool can handle the HTTP request and how it can send the response back to PI?

I am looking for a tool like a actual web-application which has the target URL , moreover on that target URL I can send the XML request and I can receive the response back, as it happens in the real time scenario where the third party provides the actual HTTP or HTTPS URL to post the message and send the status of the request in XML format.

nageswararao_v2
Participant
0 Kudos

Hello Farhan,

Were you able to solve this?

I have similar requirement where I need to send a HTTP request using HTTP_AAE - GET method, capture the response back. Can you please guide me and provide me some links how to proceed with this kind of development.

Any kind of help would be highly appreciated.

Thanks in advance...

Nagesh

Former Member
0 Kudos

Hi Nagesh,

Could you please provide me more details about your requirements. In my case I used post method to send the synchronous request to webserver using HTTP_AAE receiver adapter.

Please go thorough the below links, it will help you a lot. Please let me know if still you find any challenge in developing scenarios.

Thanks,

Farhan

nageswararao_v2
Participant
0 Kudos

Hi Farhan,

Thanks for your prompt response, I'm doing one POC where I'm trying to call one public service (In my case it's currency converter provided by "CurrencyConvertor Web Service") using HTTP_AAE - GET method on receiver side.

The problem here what I'm facing is am not sure about what need to configure in receiver CC parameter "Main Payload Parameter Name" in Request Details (Can see only when you choose Message Protocol as GET method), However I tried all the possibilities and when I am testing getting below error in message monitoring


"com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.aii.adapter.http.api.HttpAdapterException: STATUS_CODE_NOT_OK-Internal Server Error."

Please find below channel configuration

And also I tried using POST method, unfortunately my scenario is not working in both the cases getting same error when I'm testing.

Kindly help me on this please.

Thanks in advance

Nagesh

Answers (0)