/
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.

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

 

Example 2: gRPC Client Snap with upstream JSON Generator Snap

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

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

     

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

 

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

about 12 hours ago by Kalpana Malladi