|ipMonitor 7.x Soap Sample: ConvertMonAddress|
The ConvertMonAddress sample is a .Net Windows Form project written with C# that uses SOAP to communicate with an ipMonitor 7.x instance in order to demonstrate how to change configuration settings through SOAP.
This sample demonstrates how 3rd party applications can interact with ipMonitor in order to view and edit configuration elements such as monitors. Other applications may be created to perform many other tasks.
The different configuration elements manageable through SOAP are monitors, groups, alerts, maintenance profiles and reports. The ipMonitor SOAP interface allows for adding, editing, viewing and deleting these configuration elements. Each item is represented in XML format within ipMonitor. An option on the top menu of the ipMonitor interface allows you to popup XML while editing a configuration item such as a monitor. Viewing the XML will allow you to gain a better understanding of the format of the configuration elements.
|With this sample, you can:|
|ipMonitor 7 SOAP Methods Used (C#):|
|SOAP Sample Breakdown, by file:|
ipm7_cvtaddress.csprojThe C# project that contains everything needed to compile the Windows Form C# application. Note: you will likely have to change the webinfo file to correspond to the location of centralstatus.csproj.
login.csThe Window Form implementing the login logic.
convert.csThe applications' Main Windows Form. This form contains all the application logic once logged in. The application performs a SOAP request to retrieve all the monitor configuration objects in XML. The code then filters the monitors depending on whether they use IP Addresses or Domain Names. Clicking the Go button causes the changes to be made on the ipMonitor server.
ipm7Settings.csObject for storing the connection settings used by application.
convert.resx.Net Xml resource file.
login.resx.Net Xml resource file.
Reference.csThe project references.
App.icoThe applications icon.
AssemblyInfo.cs.Net assembly info file.
app.configWindows Application configuration file.