# Read Consumer response object from broker in function app

**URL:** <https://community.solace.com/t/read-consumer-response-object-from-broker-in-function-app/1627>\
**Category:** Solace Event Broker\
**Created:** [April 7, 2023, 9:16pm UTC](https://community.solace.com/t/read-consumer-response-object-from-broker-in-function-app/1627 "2023-04-07T21:16:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MD\_Abu\_Saleh](https://avatars.discourse-cdn.com/v4/letter/m/958977/32.png) [@MD\_Abu\_Saleh](https://community.solace.com/u/MD_Abu_Saleh)\
**Post date:** [April 7, 2023, 9:16pm UTC](https://community.solace.com/t/read-consumer-response-object-from-broker-in-function-app/1627/1 "2023-04-07T21:16:12Z")

</div>

Hi,  
We have an Event driven app which publish a payload to a topic in solace broker from Azure function app. There is a consumer which is of REST endpoint. Once the message is delivered and processed by consumer, they send a 200 OK with an object  
`{"message": "SUCCESS"}` .

We want to read this response object from the caller Function app. How do we achieve this uising C#.  
I have tried session.SendRequest() which has an “out” response of type IMessage. I am trying to read it. But it’s blank everytime.

Any suggestion or help would be appreciated.

---

<div class="post-metadata">

**Author:** ![marc](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/marc/32/2191_2.png) [@marc](https://community.solace.com/u/marc)\
**Post date:** [April 10, 2023, 1:37pm UTC](https://community.solace.com/t/read-consumer-response-object-from-broker-in-function-app/1627/2 "2023-04-10T13:37:56Z")

</div>

Hi @MD_Abu_Saleh ,  
Can you take a look at the C# Request/Reply tutorial and see if it helps: [Request/Reply](https://tutorials.solace.dev/dotnet/request-reply/) ? Make sure to check out the “Receiving the Reply” section. It sounds like you’re close already!  
Hope that helps!

---

<div class="post-metadata">

**Author:** ![Aaron](https://yyz1.discourse-cdn.com/solace/user_avatar/community.solace.com/aaron/32/843_2.png) [@Aaron](https://community.solace.com/u/Aaron)\
**Post date:** [April 17, 2023, 11:59am UTC](https://community.solace.com/t/read-consumer-response-object-from-broker-in-function-app/1627/3 "2023-04-17T11:59:59Z")

</div>

@MD_Abu_Saleh , did you manage to get this working? So your REST endpoint is receiving the message from a Solace RDP that is listening on the topic that your C# app is publishing onto? And your sendRequest() is receiving a reply, but it’s blank?  
If you have access to the broker, you could “snoop” the messages going across it between your C# requestor and your REST responder. Just use the Try Me! subscriber (or SdkPerf, or any subscriber) and add subscriptions for \> and #P2P/\> and it should show you both the request and response. To verify that the backend REST service is actually responding properly.  
Let us know.
