cancel
Showing results for 
Search instead for 
Did you mean: 

How to invoke an HTTP Post url

Former Member
0 Kudos

Hi All,

Had a doubt in HTTP Receiver Adapter.

We have to invoke an HTTP Service from PI. The HTTP service is hosted on the Vendor server and he has provided us the link for the same.

The service is currently being invoked by an HTTP Form as below.

We need to invoke this from PI using HTTP receiver adapter. I have gone through SDN and found out that we can do it through epilog/prolog of HTTP adapter.

I am not sure on how to invoke this HTTP url.

Please provide me pointers to the correct sol.

<form method="POST" action="http://gis/ias/cgi-bin/siscgi.exe">
     <input type="hidden" name="request" value="batch">
     <input type="hidden" name="command" value="<requests><request><name>sis_neighbouring_knos_for_sambandh_service</name><buffer>20</buffer><same_premise_kno>123</same_premise_kno><left_kno>331</left_kno><gis_id>4019589</gis_id><priority>same_premise_kno,left_kno,right_kno,gis_id</priority></request></requests>"/>
     <input type="hidden" name="user_name" value="sambandh.sias">
     <input type="hidden" name="password" value="sambandhsias">
	 <input type="submit" value="HTTP POST">
</form>

Accepted Solutions (1)

Accepted Solutions (1)

kenny_scott
Contributor
0 Kudos

Hi,

did you see the SAP online help and CSS note :-

[Configuring Receiver Plain HTTP Adapter in Integration Directory|http://help.sap.com/saphelp_nwpi711/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm]

[#1389614 Plain HTTP Adapter: Payload URL-encoded|http://service.sap.com/sap/support/notes/1389614]

Former Member
0 Kudos

Hi Kenny,

i have gone through the links provided by you, but still unable to understand how to invoke the HTTP Post service.

Can youplease have a look at the HTTP Post request that I need to generate (In my Question) and then suggest how to do it by the HTTP Receiver channle?

regards,

Piyush

kenny_scott
Contributor
0 Kudos

Hi Piyush,

apologies for the delay in responding.

Hopefully you have managed to successfully use the HTTP Receiver adapter for your POST request.

For future reference the HTTP Adapter Dynamic HTTP Paramters CSS notes:

[ 1105368 HTTP adapter: Dynamic URL and HTTP parameters|http://service.sap.com/sap/support/notes/1105368 ]

[1386621 Plain HTTP Adapter: Dynamic parameter|http://service.sap.com/sap/support/notes/1386621]

should be useful.

The parameters are listed in the input tags with attributes "name" and "value".

Regards

Kenny

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kenny,

I have seen the lnks given by you but still unable to find out the sol to my problem,.

Can you please look at the http that I have to invoke and the parameters that I have to send to the http ur?

Do suggest me that what wil I have to do to fulfill my requirement.

regards,

Piyush

kenny_scott
Contributor
0 Kudos

Hi Piyush,

the section -

2. Receiver Plain HTTP Adapter

of the note -

[#1386621 Plain HTTP Adapter: Dynamic parameter|http://service.sap.com/sap/support/notes/1386621]

should provide guidance for what you are doing.

Using a http sniffer tool to create a HTTP trace may be useful in viewing the HTTP request content.

Regards

Kenny

sunilchandra007
Active Contributor
0 Kudos

Hi Piyush,

Post can't be done directly. You need to handle this in java mapping as suggested by Stefan in the [thread|;.

Regards,

Sunil Chandra