![]() ![]() ![]() ![]() You can use REST web services with your Representation to Create records. You will get below response which shows a successful creation.On the Body tab, select raw and JSON for the input, and enter the properties of your representation.On the Authorization tab again, I have used Basic.On the header tab define Json as the content type.As the online help mentioned, I am going to use POST.Now in order to Create a record follow below steps. So in order to get a listing of all the properties on your representation you can use a Prototype request by sending The result will list all the properties of your representation. ![]() Now what if you want to Create a record using REST Web service.īefore I get to the details of how you can create a record using Web service, if you search online help for “Web services creation “ you will see below. This is similar to using the actual front end, and look at the details of an existing record in your representationĪs you saw above, it was easy to send a GET request and use the details facet.You will get the JSON response of the server.For the Authorization Type, use Basic Auth and enter User name and password.On a new Tab, choose the method you are going to use to interface, I am going to use GET method first to read a record.On this example I am going to use Postman, to test REST web services (you can use other applications like SOAPUI as well) and below steps assumes you have installed Postman, for more information related to Postman visit įirst lets use GET request to look at the details of a record. So as it’s mentioned on the online help you can use Web API which delivers REST web services to update and create records only for modules that are using Classes and representations. While there are lot to be learned and discussed, as promised I wanted to take this time and talk about how you can test REST web services with a simple representation we created previously.īefore beginning the topic, if you search, our online help for “Web services integration” you will get to below page. On my last blog here, we discussed another point about representation and classes. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |