Tutorials

  1. Home
  2. Docs
  3. Tutorials
  4. 50. What is the rest template message type?

50. What is the rest template message type?

Learning Objective:

After completing this unit, you’ll be able to:

  • Describe Rest Message Structure
  • Easily create rest template message type

Introduction

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: ,

  1. Request URL
  2. Request Header
  3. Request Body

As we have two element in Response

  1. Response Status
  2. Response Header
  3. 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:

Request URL:

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:

  1. Path parameter:
  2. Query parameter:

Request Header:

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:

 

 

 

 

 

Was this article helpful to you? Yes No

How can we help?