cancel
Showing results for 
Search instead for 
Did you mean: 

POST action in URL while making HTTP connection

Former Member
0 Kudos

HI Experts ,

We have a scenario where we have to post the Purchase Requisition to the vendor .

He has provided the URL https://XXX.com/apps/Router/PRXMLImport along with the certificate , we have installed the certificate in STRUST and made the connections in SM59

by default when I hit the URL from a browser the request is a GET and also from SAP I understand the by default request is get , but the client is saying that he is not receiving any messages coz the URL should access there system as POST.


And since SAP is not POSTING the data they are not receiving any message , I have also tried

/apps/Router/PRXMLImport/ACTION="post"


but he is still saying that he is not reciving any mssg from SAP .


Is there any way we can introduce that SAP PI can directly POST The data rather than just GEt ?


Accepted Solutions (1)

Accepted Solutions (1)

markangelo_dihiansan
Active Contributor
0 Kudos

Hi Abhishek,

Try to do an end-to-end testing, since when testing a connection in SM59 it does not send an HTTP Body (empty). Even if the method executed is POST, the receiving system would not get any data since the HTTP Body is empty.

HTTP GET is officialy supported on the Java stack but you need to use SOAP Axis or your PI version is 7.3 and above (HTTP Adapter AAE). There is an FM in the ABAP stack that needs to be remote-enabled if you want to use HTTP GET .

Hope this helps,

Mark

Answers (2)

Answers (2)

former_member184720
Active Contributor
0 Kudos
former_member184720
Active Contributor
0 Kudos

Hi Abhi -

by default when I hit the URL from a browser the request is a GET and also from SAP I understand the by default request is get , but the client is saying that he is not receiving any messages coz the URL should access there system as POST.

>>> I don't think this is correct. By default the main payload is posted using HTTP post.

http://help.sap.com/saphelp_nw73/helpdata/en/43/64dbb0af9f30b4e10000000a11466f/content.htm

Are you getting any errors in PI??

Also can you confirm if your RFC destination works fine.. (utilities - connection test).  I hope you didn't give the "http://" as prefix under the host name..

Message was edited by: Hareesh Gampa