cancel
Showing results for 
Search instead for 
Did you mean: 

picking values from an http URL and mapping them to a SOAP receiver

Former Member
0 Kudos

Hi

I have a case, where I need to pick the two values "customernumber" and "pod" from this URL from a HTTP sender adapter https://xxxxx.xxxx.dk/ServiceName/valider?customernumber=&pod=

and place them in a SOAP request in a SOAP receiver adapter.

What is the best way of doing this?

BR

MIkael

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Please go through SAP Help Doc LInk:

http://help.sap.com/saphelp_nwpi711/helpdata/en/43/64db4daf9f30b4e10000000a11466f/content.htm

Set flag ASMA, Apply URL Parametes in ID.

Give Parameter 1 as customer (names as in URL)

Parameter 2 as pod

Access the values in UDF through configuration key. For Eg: if Parameter 1 then the value can be accessed through field URLParamOne.

I never tried this before but I beleive it should work or throw aome light to you.

Regards,

Vineetha.

Former Member
0 Kudos

Thanks for the response Vineetha

However, I am still not aware of how the response from the back end (my scenarie is sender HTTP with parameters in URL -> RFC receiver (a function module is called on the back end) can be transferred back to the sender in the HTTP response?

How is that done?

Seen from the senders point of view he sends a URL containing two parameters and then he expects to receive a value in the HTTP response. So in other words: how is the response from the function module transferres back to the caller in the HTTP response?

BR

MIkael

Former Member
0 Kudos

In addition, it seems that I have to provide a payload, which adheres to the source message in the message mapping where I via my UDF pick the two parameters from the URL using Dynamic Configuration. In my case however, there is no payload, only the URL containing the two parameters.

So, is there a way of avoiding having to send the payload in my scenario?

MIkael

stefan_grube
Active Contributor
0 Kudos

I recommend to learn something about HTTP protocol first:

http://en.wikipedia.org/wiki/Http

See the difference about HTTP GET and POST and notice, that PI does not support GET.

A SOAP request is always POST, here you have a payload. If you have none, it is not SOAP.