The ConvertMonAddress sample is a .Net Windows Form project written with C# that uses SOAP to communicate with an ipMonitor 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 SOAP Methods Used (C#):
Our goal for this project is to showcase how to make configuration changes in ipMonitor through SOAP using a .Net Windows Form Application written in C#. The first form in the project demonstrates how to connect to the ipMonitor server.
Once logged in, the following window will appear. This form displays monitors whose addresses may be converted between the IP Address and Domain name. Select the monitors to be converted and click "GO!". The application will make the necessary changes to the monitors' XML and return the changes via SOAP.
For simplicity, this project consists of two forms containing all the application logic.
SOAP Sample Breakdown, by file:
The 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.
The Window Form implementing the login logic.
The 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.
Object for storing the connection settings used by application.
.Net Xml resource file.
.Net Xml resource file.
The project references.
The applications icon.
.Net assembly info file.
Windows Application configuration file.
For information on other features and concepts related to those discussed in this article, refer to the following ipMonitor resources:
Last Updated: March 30, 2004 | What did you think of this topic?