on 04-18-2014 9:42 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.