Define a REST message HTTP method
Define an HTTP method such as GET or POST to send a request to a web service provider.
Before you begin
Role required: web_service_admin
About this task
When you create a REST message record, several default HTTP methods are automatically created using settings inherited from the REST message record, such as the Endpoint. Subsequent changes to the REST message record are not applied to the HTTP methods automatically. You can create additional HTTP methods or modify the default HTTP methods to implement new behavior.
Procedure
Navigate to All > System Web Services > Outbound > REST Message.
Select a REST message you want to define an HTTP method for.
In the HTTP Methods related list, click New.
Select the HTTP method you want to use, such as GET or POST.
Enter the Endpoint this HTTP method should access.
The endpoint value may include variables using the format ${variable}.
Right-click the form header and select Save.
What to do next
After creating the HTTP method, you can override the security settings from the parent REST message, configure HTTP headers, add variables, or test the method. For PUT, POST, and PATCH methods you can define a message body.
- Testing REST message HTTP methods
Test an HTTP method for an outbound REST message to ensure that the request is valid and the response returns as expected.
Parent Topic:Create a REST message