/
gRPC Client Example

gRPC Client Example

Example 1: gRPC Client Snap with upstream Mapper Snap

The following example pipeline demonstrates 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: gRPC Client Snap with upstream JSON Generator Snap

ex2-grpc-client-oveview.png
  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

 

Downloads

  1. Download and import the pipeline into the SnapLogic application.

  2. Configure Snap accounts, as applicable.

  3. Provide pipeline parameters, as applicable.

  File Modified

File Example-gRPC Client Snap.slp

Feb 05, 2025 by Kalpana Malladi