Notes:
- This topic is updated to replace the sample code found in the api.chm.
- When upgrading the old sample code application (V18 and its prior versions) to V19 version or later, modify the WebService namespace attribute for the
Service.cs
class from [WebService(Namespace = "http://prosight.com/wsdl/7.0/EventSink/")] to [WebService(Namespace = "http://prosight.com/wsdl/8.0/EventSink/")].
The easiest way to implement the the Web Service Sink is to start with the sample code (for Microsoft Visual Studio 2015).
This sample application writes the information of each message received to a log file.
The location of the log file is configurable via the Web.Config file (configuration / system.diagnostics / trace / listeners / add).
Note that the Windows user running the service (by default NETWORK SERVICE) needs permission to write to the directory you select.
There are two samples available, depending on the selection of sWebServiceNameSpace (this selection affects how CategoryChangedAlert works):
Sample code for sWebServiceNameSpace = http://prosight.com/wsdl/7.0/EventSink
Sample code for sWebServiceNameSpace = http://prosight.com/wsdl/8.0/EventSink