HTTP verbs and attributes

HTTP verbs are defined by the high-level RESTful attributes. Some verbs have requirements for request or response body and others do not.

Table 1 provides a list of HTTP verbs and their corresponding attributes. In the Request body and Response body columns, you find information about each verb's requirements for message body. In summary:

  • POST, and PUT requests are the only verbs that require an input message body. Failing to specify a message body in a request will cause the error-9106.

When you compile your Web service application, the fglcomp tool checks that attributes comply with these requirements.

Table 1. HTTP verbs and attributes
Verbs Attributes Request body Response body
GET WSGet No Yes
POST WSPost Yes Yes
PUT WSPut Yes Yes
DELETE WSDelete No Yes