After completing this unit, you’ll be able to:
- Describe Rest Message Structure
- Easily create rest template message type
REST is a simple concept because it follows the HTTP 1.1 language that the entire Web understands. Rest Template is used to create applications that consume REST Web Services.To secure our data transmission system need specific formatted data.
What is the rest template message type?
We use a message type which we create according to the response structure of the REST response then the message name should be the root node. The processing should be based on the message node. To secure our data transmission system need specific formatted data. We have create message type. The messaging contain message data and metadata i.e. information about message itself. In Skyvva we have specific soap template message type contains URL, body.
In Skyvva we have specific Rest template message type contains URL, header and body. We have different template for request and response. . As we have three element in Request: ,
- Request URL
- Request Header
- Request Body
As we have two element in Response
- Response Status
- Response Header
- Response Body
So , when we get response and we will get both header and body so based on mapping we will perform DML operation for the data we got in response.
Terms should know:
A Request URL specifies the Method Token (GET, PUT … ) followed by the RequestURI and then the HTTP Protocol that is being used. There are two URL parameter:
- Path parameter:
- Query parameter:
The REST headers and parameters contain a wealth of information that can help you track down issues when you encounter them.
Request Body: The request body is used to send and receive data.
Response Status: It provides information about the status codes and error messages that can be received.
Response Header: The response may contain URI in Location header field in HTTP headers list, which can have reference to the newly created resource
How to create message type for rest adapter?
step 1: Create Metadata.
Step 2: Create Istructure Repository
Step 3: Create message type.
Message type looks like: