Inbound REST message via MID Server

Abbey2
Tera Expert

In ServiceNow, i'm aware i can send outbound REST request via a MID Server to resources within my local network.

Is it possible to receive REST messages from local resources to my mid server, rather than pointing the endpoint directly to the instance staging table or scripted endpoint. If yes, how is that achievable, how do i define the mid server endpoint, and how do i process the message once it gets to the instance.

Thanks.

1 ACCEPTED SOLUTION

Maik Skoddow
Tera Patron
Tera Patron

Hi Abbey

I'm afraid MID servers cannot be used for incoming requests. But inbound requests from a third-party tool would be secure because they are connected to the ServiceNow instance via SSL.

A MID server is typically used for communication with the customer's infrastructure (outbound), which the ServiceNow instance cannot access directly.

Kind regards 

Maik

View solution in original post

11 REPLIES 11

Stephen Sturde
Tera Guru

Hi Abbey,

I'm not seeing any docs where the MID is used for inbound REST. Everything I've read and done, the REST call goes directly to the ServiceNow instance. 

If you must use the MID, REST may not work, as the ECC queue is a pass through, not a direct end point. A possible alternative (however clunky), is that the MID Server to other resources on your internal network is simply another server. If those servers want to access it, you can work with your server sys admins to set up file sharing. The external entity could post files to the file share, and a scheduled job on your instance can pick it up and process it. 

One possible path is external entity exports and posts a csv file. ServiceNow scheduled job, picks up the file and runs through transform map.

-Stephen

Thanks Stephen, thats what i've also gathered so far.

If i have an event being published from Dmaap, it should be able to reach the instance directly.

In what cases can the ecc queue be used to collect events for the instance outside of discovery/orchestration initiated from the instance? Would that be only through eventcollection plugin?

Hi Abbey,

You can create a custom javascript probe to do this. It's not simple though. At one point, Crossfuze had an app that did this, but I'm not sure if they're still publishing it.  

-Stephen

SteveMac1
Mega Guru

For Event Management you can use a MID server to receive events. 

Configure a MID Server for event collection using a push operation (listener)

Steve

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi Guys,


Interesting post and i think we did something around this where we use to store the xml events on MID server folder and then using schedule import we use to import those events into servicenow and then process those every 5 mins.


Let me know if you need more details.

Thanks,
Ashutosh