Calling third party APIs using mid server

Anuja12
Kilo Contributor

Hi, i need to call API endpoints from third party application into service now. I gave authentication as 'BASIC' for calling those apis and it asked for username and password, so i provided the username and password for the third party tool ,on clicking on Test it showed me some java.net host exception error. That's why now I want to fetch those APIs using mid server. I dont know how we use mid server? like i have installed it and connection and validation is done but how do we use this for calling APIs for third party application? I actually need step by step guidance as I am very new to this..-thanks in advance

12 REPLIES 12

MID server cannot talk to the third-party app until it has network routing allowed to that app. It should be given manually by the infrastructure team or whoever is managing the MID server.

If the infrastructure team already had given access to the MID server to communicate with the target app and still you are not able to communicate then as @hozawa mentioned there might be some internal firewall that is blocking the communication.

Regards,
Muhammad

Hi Muhammad,

 

I dont have a wide knowledge regarding mid server and its functionalities...

can you please tell me where can I check this routing thing? I mean can I myself check this or not? is it possible for me to allow the network routing ? if yes, then how?

 

Hi Anuja,

This is something that Servicenow developers mostly don't have access to. You need to request the infrastructure/network team or whoever has deployed the MID server for you. They can help you with this. Just ask them to allow the MID server to access the third-party app and rest on them.

Sometimes, they provide remote access of the MID server to Servicenow developers but I don't think you have that. 

- Sharjeel

Regards,
Muhammad

Who setup the MID server? The person who set it up should be able to check if it is possible to access the third party API from the MID server.

If the MID server is setup on Windows, try opening the URL to the third party API from web browser.

 

its not working from browser. seems mid server has no access to my third party API. i need to connect with network/infrastructure team for that, but how should I get in touch with them regarding my issue?