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 first need to make sure it works outside of SAP and more importantly you know what your expecting it to do or what values it will return. There are so many extra layers of complexity within an SAP landscape that getting it working outside of the SAP system will 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 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/
and then a few weeks later I received another email saying that they had made SOAPUI simpler to use, so it was obviously not just me (well that's what I'm telling myself anyway:-)
Enter your text here...
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.
This article is the first part of a series that will teach you how to consume/use/call a web service from within your SAP system. The next step is to test that your SAP system is able to make an outbound HTTP connection and is ready for the REST Web Service Call
SOAMANAGER to setup SAP web service
Creating a SOAP (WSDL) web service within SAP
ABAP sorted table insert TABLE_ILLEGAL_STATEMENT SAP error
SOAMANAGER SAP does not load or open browser window
SAP LSMW basic creation to call ABAP code