Skip to end of banner
Go to start of banner

gRPC Client Example

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Version History

Version 1 Next »

Example 1

The following example pipelines demonstrate how to send a gRPC request to the designated server for processing.

ex-grpc-pipeline-overview.png
  1. Configure the Mapper Snap as shown below:

    ex-grpc-mapper-config.png
  2. Configure the gRPC Snap with the Server endpoint, gRPC service and gRPC method details.

    ex-grpc-client-config.png
    1. On validation, the Snap executes the method, appends Hello to the input stream, and displays the following output response from the server.

    ex-grpc-client-output.png

 

Example -2

  1. Configure the JSON Generator Snap with some sample data.

[
    {
       "name" : "Doc Test"
    }
]
  1. Configure the gRPC Client Snap as shown below:

    ex-grpc-client-config.png

    On validation, the Snap executes the method, appends Hello to the input stream, and displays the following output response from the server.

    ex2-grpc-client-output.png
  File Modified
No files shared here yet.
  • No labels