cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP-proxy scenario with data in URL parameters in SAP PI 7.31

Former Member
0 Kudos

Hi Experts,

I am working on HTTP(sender) to proxy(receiver) scenario in SAP PI 7.31 version.

The 3rd party will be pushing the data in URL terms of URL parameters like below,

http://xyz.com/pullmessage.php?keyvalue=[message_text]&mobileno=[Sender]&cr=[circle]

I have to retrieve data in URL parameters into SAP PI and then to push it to proxy in SAP ECC

How should I design and configure this scenario?

Since there are options of both HTTP(with adapter engine-integration server and message protocol-XI payload in HTTP body) and HTTP_AAE(with adapter engine-central adapter engine and GET/POST message protocol), which one to go for?

Also what is the dynamic configuration(UDF-Java mapping code) to be used in request message mapping in ESR?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Ravi

You can use the java HTTP adapter post method. You need to write a UDF inside the message mapping to get the payload data from the URL parameter.

For example if the parameter 'keyvalue' contains the data, then you need to use that name in sender HTTP adapter URL parameter section.

example:

Once you do that the payload data will come in the message header in sap PI.

Then you need to write an UDF to fetch the value from header

sample code:

You can use maximum 6 parameters in the URL.

For more details check the document below

Former Member
0 Kudos

Thanks for your valuable replay sarkar.

Can you give me some detailed information for post sending url parameters to receive.

1.how to map with target ?

2.we have  one field to map with target element and how can do that ?

3.while http post  sender structure is exist or not?

4.how to make the test for post urlstring?

Please replay with your valuable information.

Regards

Ravinder.

Answers (0)