MID server response code when using MID Web Service Listener
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Everyone,
I have a query for a webhook integration, we have setup a MID web service listener to receive events from external source. There is a gateway between the source and MID server. The endpoint url(containing MID IP and port) will be setup on the gateway which will forward the received events from the source to mid server. In this case, will the gateway receive any response code from mid server when the events are forwarded to it.
I am aware of the response code being sent from the instance but do we get a 200 OK or any similar response once the evnts are sent to MID server.
Thanks in advance!
- Labels:
-
Event Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Yes. The gateway will receive an HTTP response directly from the MID Server listener (the MID Server is the HTTP endpoint the gateway is calling).
Key point (important)
That MID response code only confirms the MID Server accepted the HTTP request.
It does not confirm the event was processed by the ServiceNow instance, because the MID-to-instance part is asynchronous (typically via ECC queue).
What the gateway will not get u
The gateway will not get a “final” instance outcome (e.g., “event created,” “transform succeeded,” “business rule failed”) as an HTTP response through the MID listener.
If you need end-to-end acknowledgement, you typically implement:
a callback from ServiceNow to the source/gateway, or
a polling/status API, or
a direct Scripted REST API pattern (synchronous) instead of MID listener.