So you want to call a REST Web Service from SAP, but you don't know how to go about it. Well in this situation you you first need to make sure it works outside of SAP. There are so many extra layers of complexity within an SAP landscape that getting it working outside of the SAP system actually speed up the implementation process.
...and before we go any further if you are new to this , maybe you have heard a bit about web services, you may have seen a few working or heard people talking about WSDL's. You may even know what one is..... Well a REST Web Service is a web service without a WSDL!!!
Rather than talk any more i will provide you with a URL of a REST service and tell you to google getpostman download it and try and get it working. Or you can follow the below very simple steps.
UPDATE: This is quite funny but literally, the day after I published this article Smartbear who own SOAPUI sent me an email saying that they had released a web-based API testing tool that will help you quickly and easily test your SOAP and REST API's/Web Services. Not sure if it will be any better than postman but seems to be a step in the right direction https://swagger.io/
Head over to getpostman.com and download the free client which is available fro mac, windows or linux.
Once installed it's time to create your first web service call request, so simply press the NEW button
Then choose request
Enter a request name and create a new collect or choose and existing one
Now the fun stuff simply enter the REST web service URLinto the postman and press send.
You will now see the result of the web service call. Also note the Code button....
This example REST Web Service does not have any parameters but I just wanted to show you how you would add them. i.e. The example below would be the same as calling
See the result of the call with the call URL parameter
Again this example REST web service does not require you to pass any header parameters but this is how you would usually pass any parameters such authorisation credentials. For this demo I will just pass the Content-Type = application/xml but you could also pass something like Authorisation = "OAuth ???????????...."
See result with WS header parameters being passed
But for this example simply remove the parameters or un check them so they are ignored.
Test SAP HTTP connection ready for REST Web Service call
Create dynamic ABAP Web dynpro screen in SAP
Cookiechoices cookie only set for specific page not whole website