How to create a webservice in servicenow
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2016 06:49 AM
Hi Team
How to create my own webservice in servicenow with custom functions ( to insert and update the incidents ).
Thanks
- Labels:
-
Integrations
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2016 06:52 AM
Hi Navya,
What do you mean your own webservice? you want to do REST or SOAP integration?
Thanks,
Sai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2016 08:24 AM
Hi Navya,
In addition to Sai Babu's question, Is the question more like Out of the box Rest Call or Scripted Rest API.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2016 10:59 PM
Using SOAP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-11-2016 11:24 PM
Hi Navya,
There is two types of webservices in service-now.
1. Inbound Webservices - It is used when request is being received by service now end. Means i am being end user and requesting for information/creation to the servicenow means i am sending the request to the you(service-now).
In the inbound,
below method is exposed,
1.insert
2.update
3.DeleteMultiple
4.DeleteRecord
5.get
6.getKeys
7.getRecords
Means once you create the inbound web service in service now, any third party application can perform above all operation by providing the parameter to your web service endpoint.
2.OutBond - it is used when you want to consume the some other third party web service example - Stock Exchange related web services so you will consume the web service in service now and you can get the stock related information at the real time.
in the Outbond,
You will consume some others third party application web service and they will expose some function/method and you will pass the input parameter required and you will get the response from external web-service.
You can create both type of web service in servicenow.
Go to System Webservices > inbound/outbond>create new.
select the table on which you want to create and i would like to say follow the wiki for web services, you will get other details as well.
Web Services - ServiceNow Wiki
Hope this will help to you.
Regards,
Atul Kumar