cancel
Showing results for 
Search instead for 
Did you mean: 

Parameter name in HTTP request

Former Member
0 Kudos

Hi,

I have a scenario Proxy --> SAP PI--> Webservice/HTTP

I Need to post the payload that I am getting from proxy to the endpoint.

The format how I need to Send is "data= <XML payload coming from Proxy>".

I tried different options like Main Payload Parameter Name=data, but it does not work.

Please help me how I  can add the variable "data= <Payload coming from proxy>" in PI.

Note: I am successfully able to post the data to end point using tools like wfetch,postman and soapui.

Any help is really appreciated.

Regards,

Sainath Chutke

Accepted Solutions (0)

Answers (3)

Answers (3)

AntonioSanz
Active Participant
0 Kudos

Hello,

perhaps you can try tu use

data = <![CDATA[<XML payload coming from Proxy>]]>


Hope it helps.

iaki_vila
Active Contributor
0 Kudos

Hi Sainath,

Have you tried to use the dynamic configuration for your purpose?

Check William Li 's blog

Regards.

Former Member
0 Kudos

I want this to be added in body not in header;I tried this as well.

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Sainath,


I have a scenario Proxy --> SAP PI--> Webservice/HTTP

I Need to post the payload that I am getting from proxy to the endpoint.

The format how I need to Send is "data= <XML payload coming from Proxy>".

I tried different options like Main Payload Parameter Name=data, but it does not work.

Please help me how I  can add the variable "data= <Payload coming from proxy>" in

I'm assuming this is in the HTTP Body and not in the HTTP URL. If you are using HTTP adapter, you can add data= in the Prolog. Otherwise, if you are using SOAP Adapter, it needs to be run in nosoap mode and you can build it using Java Mapping.

Hope this helps,

Mark

Former Member
0 Kudos

Can you help me how I can ass data= in the prolog ?

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Sainath,

You can refer to my blog

Page 22 is what you are looking for

Regards,

Mark