Most of the part is auto generated and contains boiler-plate configurations. This file contains the shared resources that will be visible to all the web components, we will be developing a simple rest service and that’s why I haven’t changed anything here. However, if you want to change context configuration files and their location, you can do it in the web.xml file. This file is generated automatically and I haven’t changed anything in that. WEB-INF/spring/appServlet/servlet-context.xml Most of the part is common and generated automatically, the important point to note is that I have added Jackson JSON libraries in the dependency because we will use that to convert Objects to JSON and vice versa. However, I have updated the Spring Framework, AspectJ, SLF4J and Jackson version to the latest one as of today. STS tool generates the pom.xml file for us. In the Application Connections tab on the right pane, a new application connection should now be. The following request body needs to be sent along with the HTTP request.Ī status of HTTP/1.1 201 CREATED should be returned from the server. Header: ” X-SUP-DOMAIN” = “default” ( you could also not pass any param/value as it will by default point to the default SMP Domain)
Using the RESTClient tool again, submit the following HTTP request. The next validation test is to create an application connection in SMP2.3. Make note of the Http headers and body that is sent back as Http response.You should receive an HTTP/1.1 200 OK as the status – this confirms that the you have successfully used SMP REST API to proxy a connection onto an external service.Select Auth as Basic and type the SCC admin Username/Password ( typically supAdmin/s3pAdmin.Application ID would be the Application id created earlier. Open the RESTClient and type the url as : Typically the Proxy would be 8000, 8001 or 5001.
#Wiztools rest client download for free
You can download it for free from the following location: ġ. For this example, I have used the REST Client from Wiztools. Let us now make sure the application is working (meaning the connection is indeed being proxied through the SMP Mobile Server). In the previous step, we created an REST API based application. Open Domain -> default -> Applications to confirm that an application is created A new application with the name is now created in the default domainĦ. The application id will be the application identifier while accessing the external service.ĥ. It could be an odata or non data REST Service). Click Applications on the left pane and Applications tab on the right tabĪpplication Endpoint: ( this should be your external rest webservice. I have also explained the steps to create an application connection and validate the same within SAP Control Center. In this document, I have documented the steps required to create a REST API based application in SMP2.3 and then validate the same via a REST Client Tool. From SUP2.2 onwards, the platform provides REST APIs that act as a proxy to a variety of application endpoints and provides common mobile application functionality like device on boarding, user authentication, push configuration, tracing and supportability amongst others. For the past few days, I have been playing around with SMP2.3 and exploring its different features.