# How to limit JSON Message response to an specific service

**URL:** https://talk.remobjects.com/t/how-to-limit-json-message-response-to-an-specific-service/18196
**Category:** Remoting SDK
**Tags:** json
**Created:** [December 11, 2018, 2:26pm UTC](https://talk.remobjects.com/t/how-to-limit-json-message-response-to-an-specific-service/18196 "2018-12-11T14:26:23Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DonaldShimoda](https://talk.remobjects.com/user_avatar/talk.remobjects.com/donaldshimoda/32/6_2.png) [@DonaldShimoda](https://talk.remobjects.com/u/DonaldShimoda)
#### Post date: [December 11, 2018, 2:26pm UTC](https://talk.remobjects.com/t/how-to-limit-json-message-response-to-an-specific-service/18196/1 "2018-12-11T14:26:23Z")

</div>

I have a DA SDK server with binary messages and JSON messages. But need JSON message only expose one of the services available in the server. How can do that?

Delphi with latest stable version of DA.

Best regards.

---

<div class="post-metadata">

### Author: ![EvgenyK](https://talk.remobjects.com/user_avatar/talk.remobjects.com/evgenyk/32/16_2.png) [@EvgenyK](https://talk.remobjects.com/u/EvgenyK)
#### Post date: [December 11, 2018, 2:43pm UTC](https://talk.remobjects.com/t/how-to-limit-json-message-response-to-an-specific-service/18196/2 "2018-12-11T14:43:44Z")

</div>

you can use [OnGetDispatchInfo](https://docs.remotingsdk.com/API/Delphi/Classes/TRORemoteDataModule/#OnGetDispatchInfo) event.

see more at [Receiving information about client on server-side](https://talk.remobjects.com/t/receiving-information-about-client-on-server-side/10981) snippet.

---

<div class="post-metadata">

### Author: ![DonaldShimoda](https://talk.remobjects.com/user_avatar/talk.remobjects.com/donaldshimoda/32/6_2.png) [@DonaldShimoda](https://talk.remobjects.com/u/DonaldShimoda)
#### Post date: [December 11, 2018, 2:45pm UTC](https://talk.remobjects.com/t/how-to-limit-json-message-response-to-an-specific-service/18196/3 "2018-12-11T14:45:05Z")

</div>

Excelent! Thanks
