How to create a webservice in servicenow

navyag
Kilo Contributor

Hi Team

How to create my own webservice in servicenow with custom functions ( to insert and update the incidents ).

Thanks

7 REPLIES 7

Gangadhar Ravi
Giga Sage
Giga Sage

Hi Navya,


                        What do you mean your own webservice? you want to do REST or SOAP integration?



Thanks,


Sai


Hi Navya,



In addition to Sai Babu's question, Is the question more like Out of the box Rest Call or Scripted Rest API.


Using SOAP


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