Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Java Callout to Read data from API Streaming

We have an API which is streaming enabled. There is a requirement to extract elements from the payload. We implemented the logic using JAVA Callout to extract.

But we are receiving empty request, when we tried to extract the request content. 

InputStream stream = msgCtx.getRequestMessage().getContentAsStream();

Can someone guide us with the right approach ?

0 4 240
4 REPLIES 4
Top Solution Authors