---
title: How to consume gRPC services with SAP Process Orchestration
description: Consuming gRPC services with SAP PO is now possible with the Advantco gRPC adapter, this open new possibilities to integration with microservices thru the gRPC protocols
image: https://resources.advantco.com/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic1.png
---

# How to consume gRPC services with SAP Process Orchestration

[ Peter Ha ](https://resources.advantco.com/knowledge-base/author/peter-ha)  Aug 11, 2022 5:12:59 PM

**Introduction**

When consuming grpc services, SAP Process Orchestration acts like gRPC a client application calling methods on a server application on a different machine. The server application can be an internal developed microservice or a cloud service like Google Pub/Sub.  
With gRPC, a service is defined with methods that can be called remotely with their parameters and return types. The gRPC server implements the interface and processes client calls. On the client side, in this case, SAP PO, the client has a stub (referred to as just a client in some languages) that provides the same methods as the service on the gRPC server.  
Most gRPC services use protocol buffers, Google’s mature open source mechanism for serializing structured data.  
gRPC leverages HTTP/2 underneath and as such benefits from many of the efficiencies of HTTP/2.

 

**Scenario: Pull/Publish messages to GCP PubSub using the gRPC API.**  
We describe below a use case of consuming Google Cloud Pub/Sub service using the gRPC api. We show how to use the Advantco gRPC adapter to pull data out of a Pub/Sub topic and how to publish data to a Pub/Sub topic.

![gRPC services with SAP Process Orchestration_Pic1](https://resources.advantco.com/hs-fs/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic1.png?width=781&name=gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic1.png)

 

**Prepare the proto files**

Get the pubsub.proto file at  
[https://github.com/googleapis/googleapis/tree/master/google/pubsub/v1](https://github.com/googleapis/googleapis/tree/master/google/pubsub/v1)  
Make sure you download also the other proto definitions used by the pubsub.proto file.  
The services and methods available are defined in the pubsub.proto file.  
![gRPC services with SAP Process Orchestration_Pic2](https://resources.advantco.com/hs-fs/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic2.png?width=737&name=gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic2.png)

![gRPC services with SAP Process Orchestration_Pic3](https://resources.advantco.com/hs-fs/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic3.png?width=650&name=gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic3.png) 

 

**Sender channel configuration**  
To pull a message from a GCP topic, we have to use the Subscriber service. In the Input Parameters, we specify the project and subscription.

![gRPC services with SAP Process Orchestration_Pic4](https://resources.advantco.com/hs-fs/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic4.png?width=1318&name=gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic4.png) 

 

**Receiver channel configuration**  
Here we configure the receiver channel to publish a message to a GCP Pub/Sub topic.

![gRPC services with SAP Process Orchestration_Pic5](https://resources.advantco.com/hs-fs/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic5.png?width=1242&name=gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic5.png)

Payload structure to publish message to a Pub/Sub topic using gRPC.  
This message structure is specific for GCP Pub/Sub service.

<PublishRequest>  
                    <topic>projects/usdemo-198922/topics/US_GRPC</topic>  
                    <messages>  
                                         <data>Message sent using Advantco gRPC Adapter</data>  
                                         <attributes>   
                                                             <Entry>   
                                                                                 <key>attribute_1</key>   
                                                                                 <value>value_of_attribute_1</value>   
                                                             </Entry>   
                                                             <Entry>   
                                                                                 <key>attribute_2</key>   
                                                                                 <value>value_of_attribute_2</value>   
                                                             </Entry>   
                                         </attributes>  
                                         <message_id>02102019</message_id>  
                    </messages>  
</PublishRequest>

 

**Conclusion**  
Consuming gRPC services with SAP PO is now possible with the Advantco gRPC adapter, this open new possibilities to integration with microservices thru the gRPC protocols.

 

**Sources**  
This is the main site for all gRPC information: [https://www.grpc.io/](https://www.grpc.io/)  
protocol buffer: [https://developers.google.com/protocol-buffers/docs/proto3#importing-definitions](https://developers.google.com/protocol-buffers/docs/proto3#importing-definitions)  
GCP Pub/Sub API: [https://cloud.google.com/pubsub/docs/reference/rpc/](http://cloud.google.com/pubsub/docs/reference/rpc/)  
Advantco: [https://advantco.com/products/sap-pi-po-adapters](https://advantco.com/products/sap-pi-po-adapters)

 

## Read On

[![](https://blogs.sap.com/wp-content/uploads/2019/10/fig1PNG-1.png) ](https://resources.advantco.com/knowledge-base/how-to-consume-grpc-services-with-sap-process-orchestration)

### [How to consume gRPC services with SAP Process Orchestration](https://resources.advantco.com/knowledge-base/how-to-consume-grpc-services-with-sap-process-orchestration)

**Introduction**

[![](https://blogs.sap.com/wp-content/uploads/2019/09/dashboard.png) ](https://resources.advantco.com/knowledge-base/harnessing-the-power-of-elasticsearch-and-kibana-to-monitor-sap-po)

### [Harnessing the power of Elasticsearch and Kibana to monitor SAP PO](https://resources.advantco.com/knowledge-base/harnessing-the-power-of-elasticsearch-and-kibana-to-monitor-sap-po)

This blog describes a new monitoring solution for SAP PO that is based on Elasticsearch and Kibana....

[![](https://resources.advantco.com/hs-fs/hubfs/Imported_Blog_Media/adv-migrate-sf-cpi-1.png?width=352&name=adv-migrate-sf-cpi-1.png) ](https://resources.advantco.com/knowledge-base/content/how-to-migrate-to-the-advantco-salesforce-adapter-for-cpi)

### [How to Migrate to the Advantco Salesforce Adapter for CPI](https://resources.advantco.com/knowledge-base/content/how-to-migrate-to-the-advantco-salesforce-adapter-for-cpi)

**Introduction **

SAP has released new OEM adapters for Salesforce, Dynamics 365 CRM and Amazon...

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Peter Ha",
    "url" : "https://resources.advantco.com/knowledge-base/author/peter-ha"
  },
  "dateModified" : "2022-08-11T21:12:59.616Z",
  "datePublished" : "2022-08-11T21:12:59.000Z",
  "headline" : "How to consume gRPC services with SAP Process Orchestration",
  "image" : [ "https://resources.advantco.com/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic1.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://resources.advantco.com/knowledge-base/content/how-to-consume-grpc-services-with-sap-process-orchestration-1",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://resources.advantco.com/hubfs/Advantco%20logo%20AAC%20V1%20Ai%20file%201.png"
    },
    "name" : "Advantco International"
  }
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "NewsArticle",
  "author" : [ {
    "@type" : "Person",
    "name" : "Peter Ha",
    "url" : "https://resources.advantco.com/knowledge-base/author/peter-ha"
  } ],
  "dateModified" : "2022-08-11T21:12:59",
  "datePublished" : "2022-08-11T21:12:59",
  "headline" : "How to consume gRPC services with SAP Process Orchestration",
  "image" : [ "https://www.advantco.com/hubfs/gRPC%20services%20with%20SAP%20Process%20Orchestration_Pic1.png" ]
}
```

```json
{
  "@context" : "http://schema.org",
  "@type" : "Organization",
  "address" : {
    "@type" : "PostalAddress",
    "addressCountry" : "United States",
    "addressLocality" : "Charlotte",
    "addressRegion" : "NC",
    "postalCode" : "28203",
    "streetAddress" : "1235 East Blvd, Suite E #382 "
  },
  "alternateName" : "advantco",
  "areaServed" : {
    "@type" : "GeoCircle",
    "geoMidpoint" : {
      "@type" : "GeoCoordinates",
      "latitude" : "40.75996223497667",
      "longitude" : "-73.98761007334504"
    },
    "geoRadius" : "150 km"
  },
  "description" : "Feature rich Advantco adapters integrates SAP &amp; Oracle system with top enterprise platforms like Kafka, Salesforce, Azure, and more.",
  "email" : "webadmin@advantco.com",
  "image" : "https://www.advantco.com/hs-fs/hubfs/unnamed%20(2).webp?width=450&height=60&name=unnamed%20(2).webp",
  "logo" : "https://6260070.fs1.hubspotusercontent-na1.net/hubfs/6260070/Advantco%20logo%20AAC%20V1%20Ai%20file%201.png",
  "mainEntityOfPage" : {
    "@id" : "https://resources.advantco.com/knowledge-base/content/how-to-consume-grpc-services-with-sap-process-orchestration-1",
    "@type" : "WebPage",
    "description" : "Consuming gRPC services with SAP PO is now possible with the Advantco gRPC adapter, this open new possibilities to integration with microservices thru the gRPC protocols"
  },
  "naics" : "513210",
  "name" : "Advantco International",
  "sameAs" : [ "https://www.linkedin.com/company/advantco-international-llc" ],
  "telephone" : "",
  "url" : "https://www.advantco.com/"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebPage",
  "about" : [ {
    "@id" : "https://resources.advantco.com/knowledge-base/content/advantco-pre-packaged-content-solution",
    "@type" : "WebPage"
  }, {
    "@id" : "https://www.advantco.com/sap-hana-sdi-integration-adapters/sap-hana-sdi-salesforce-integration",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/salesforce-integration-common-requirements-and-use-cases",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/the-top-5-advantages-of-sap-and-salesforce-integration",
    "@type" : "WebPage"
  }, {
    "@id" : "https://www.advantco.com/sap-integration-adapters/sap-salesforce-integration",
    "@type" : "WebPage"
  } ],
  "mainEntity" : {
    "@type" : "WebPage"
  },
  "url" : "https://www.advantco.com/sap-integration-adapters/sap-salesforce-integration"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebPage",
  "about" : [ {
    "@id" : "https://resources.advantco.com/knowledge-base/receiving-events-from-dynamics-365-crm-using-webhooks",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/microsoft-dynamics-crm-adapter-for-sap-process-orchestration-and-sap-integration-suite-now-available-on-sap-store",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/adapters-for-sap-hci-integration-with-ms-dynamics-crm-and-rabbitmq",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/sap-cloud-platform-integration-enhancing-the-third-party-application-connectivity-with-new-offerings",
    "@type" : "WebPage"
  } ],
  "mainEntity" : {
    "@type" : "WebPage"
  },
  "url" : "https://www.advantco.com/sap-integration-adapters/sap-microsoft-dynamics-integration"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebPage",
  "about" : [ {
    "@id" : "https://resources.advantco.com/knowledge-base/content/sap-cloud-platform-integration-enhancing-the-third-party-application-connectivity-with-new-offerings",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/using-advantco-aws-adapter-to-integrate-sap-and-aws-business-environments",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/integrating-sap-and-aws-business-environments-with-the-advantco-aws-adapter",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/product/adapter/aws",
    "@type" : "WebPage"
  } ],
  "mainEntity" : {
    "@type" : "WebPage"
  },
  "url" : "https://www.advantco.com/sap-integration-adapters/sap-aws-integration"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebPage",
  "about" : [ {
    "@id" : "https://resources.advantco.com/knowledge-base/content/google-cloud-platform-adapter-from-advantco-international-now-available-on-sap-store",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/product/adapter/google-cloud-platform-adapter-for-sap-cpi",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/advantco-google-cloud-platform-adapter-integrating-sap-with-gcp",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/advantco-google-cloud-platform-adapter-integrating-sap-with-gcp",
    "@type" : "WebPage"
  } ],
  "mainEntity" : {
    "@type" : "WebPage"
  },
  "url" : "https://www.advantco.com/sap-integration-adapters/sap-google-cloud-integration"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebPage",
  "about" : [ {
    "@id" : "https://resources.advantco.com/knowledge-base/consumer-electronics-retailer-turns-to-advantco-amqp-azure-adapters",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/adapters-for-sap-hci-integration-with-ms-dynamics-crm-and-rabbitmq",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/integration-with-microsoft-azure-cloud",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/using-rabbitmqamqp-broker-for-extreme-high-volume-integration-with-sap-hybris-commerce-solution-with-sap-pipo",
    "@type" : "WebPage"
  } ],
  "mainEntity" : {
    "@type" : "WebPage"
  },
  "url" : "https://www.advantco.com/sap-integration-adapters/sap-azure-integration"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebPage",
  "about" : [ {
    "@id" : "https://resources.advantco.com/knowledge-base/lessons-learned-from-kafka-integrations-using-the-advantco-kafka-adapter-for-sap-integration-suite",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/kafka-adapter-for-sap-process-orchestration-and-sap-integration-suite-now-available-on-sap-store",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/advantco-kafka-adapter-enables-automobile-leader-to-use-big-data",
    "@type" : "WebPage"
  }, {
    "@id" : "https://resources.advantco.com/knowledge-base/content/kafka-adapter-with-avro-serialization-and-schema-registry",
    "@type" : "WebPage"
  } ],
  "mainEntity" : {
    "@type" : "WebPage"
  },
  "url" : "https://www.advantco.com/sap-integration-adapters/sap-kafka-integration"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "WebPage",
  "about" : [ {
    "@id" : "https://www.advantco.com/sap-integration-adapters/sap-salesforce-integration",
    "@type" : "WebPage"
  }, {
    "@id" : "https://www.advantco.com/sap-integration-adapters/sap-microsoft-dynamics-integration",
    "@type" : "WebPage"
  }, {
    "@id" : "https://www.advantco.com/sap-integration-adapters/sap-aws-integration",
    "@type" : "WebPage"
  }, {
    "@id" : "https://www.advantco.com/sap-integration-adapters/sap-google-cloud-integration",
    "@type" : "WebPage"
  }, {
    "@id" : "https://www.advantco.com/sap-integration-adapters/sap-azure-integration",
    "@type" : "WebPage"
  }, {
    "@id" : "https://www.advantco.com/sap-integration-adapters/sap-kafka-integration",
    "@type" : "WebPage"
  } ],
  "mainEntity" : {
    "@type" : "WebPage"
  },
  "url" : "https://www.advantco.com/"
}
```

```json
{
  "@context" : "https://schema.org/",
  "@type" : "BreadcrumbList",
  "itemListElement" : [ {
    "@type" : "ListItem",
    "item" : "https://advantco.com/",
    "name" : "Home",
    "position" : 1
  } ]
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "ProfessionalService",
  "areaServed" : {
    "@type" : "GeoShape",
    "address" : {
      "@type" : "PostalAddress",
      "addressCountry" : "US"
    }
  },
  "description" : "Advantco helps organizations update and transform their integration landscapes by migrating to SAP BTP Integration Suite, enabling secure, scalable, cloud-native connectivity across SAP and non-SAP systems.",
  "image" : "https://www.advantco.com/hs-fs/hubfs/1-2.png?width=2000&height=1015&name=1-2.png",
  "logo" : "https://www.advantco.com/hs-fs/hubfs/unnamed%20(2).webp?width=300&height=40&name=unnamed%20(2).webp",
  "name" : "SAP BTP Integration Suite Migration Services",
  "provider" : {
    "@type" : "Organization",
    "contactPoint" : {
      "@type" : "ContactPoint",
      "availableLanguage" : [ "English" ],
      "contactType" : "customer support",
      "url" : "https://www.advantco.com/contact-us"
    },
    "logo" : "https://www.advantco.com/hs-fs/hubfs/unnamed%20(2).webp?width=300&height=40&name=unnamed%20(2).webp",
    "name" : "Advantco",
    "sameAs" : [ "https://www.linkedin.com/company/advantco-international-llc/", "https://x.com/AdvantcoAdapter" ],
    "url" : "https://www.advantco.com"
  },
  "serviceType" : [ "SAP BTP Integration Suite Migration", "Legacy Middleware Migration", "Clean Core & Customization Rationalization", "ABAP & API Development" ],
  "url" : "https://www.advantco.com/sap-btp-integration-suite-migration"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "ProfessionalService",
  "description" : "Advantco offers secure, scalable, and cost-optimized AWS cloud services — from landing zone setup and migration to managed operations and AI/ML solutions.",
  "image" : "https://www.advantco.com/hs-fs/hubfs/4%20(1)-1.png?width=316&height=300&name=4%20(1)-1.png",
  "logo" : "https://www.advantco.com/hs-fs/hubfs/unnamed%20(2).webp?width=300&height=40&name=unnamed%20(2).webp",
  "name" : "AWS Cloud Services",
  "provider" : {
    "@type" : "Organization",
    "contactPoint" : {
      "@type" : "ContactPoint",
      "availableLanguage" : [ "English" ],
      "contactType" : "customer support",
      "url" : "https://www.advantco.com/contact-us"
    },
    "logo" : "https://www.advantco.com/hs-fs/hubfs/unnamed%20(2).webp?width=300&height=40&name=unnamed%20(2).webp",
    "name" : "Advantco",
    "sameAs" : [ "https://www.linkedin.com/company/advantco-international-llc/", "https://x.com/AdvantcoAdapter" ],
    "url" : "https://www.advantco.com"
  },
  "serviceType" : [ "AWS Landing Zone Setup", "AWS Application Migration", "Managed AWS Cloud Operations", "AWS AI/ML Solutions" ],
  "url" : "https://www.advantco.com/aws-cloud-services"
}
```

```json
{
  "@context" : "https://schema.org",
  "@type" : "ProfessionalService",
  "areaServed" : {
    "@type" : "Country",
    "name" : "Worldwide"
  },
  "description" : "Advantco helps organizations harness the full power of Google Cloud by designing, migrating, and managing secure, scalable, and cost-optimized workloads end-to-end.",
  "image" : "https://www.advantco.com/hs-fs/hubfs/4%20(1)-1.png?width=316&height=300&name=4%20(1)-1.png",
  "logo" : "https://www.advantco.com/hs-fs/hubfs/unnamed%20(2).webp?width=300&height=40&name=unnamed%20(2).webp",
  "name" : "Google Cloud Services",
  "provider" : {
    "@type" : "Organization",
    "contactPoint" : {
      "@type" : "ContactPoint",
      "availableLanguage" : [ "English" ],
      "contactType" : "customer support",
      "url" : "https://www.advantco.com/contact-us"
    },
    "logo" : "https://www.advantco.com/hs-fs/hubfs/unnamed%20(2).webp?width=300&height=40&name=unnamed%20(2).webp",
    "name" : "Advantco",
    "sameAs" : [ "https://www.linkedin.com/company/advantco-international-llc/", "https://x.com/AdvantcoAdapter" ],
    "url" : "https://www.advantco.com"
  },
  "serviceType" : [ "Google Cloud Foundation Setup", "Application Migration & Modernization", "Managed Google Cloud Operations", "Data Analytics & AI/ML Solutions" ],
  "url" : "https://www.advantco.com/google-cloud-services"
}
```