Knowledge Center > Developer Documentation
ipm7Status (ipMonitor Status Soap Interface)
Formal Definition: Refer to the WSDL Service Description.
The ipMonitor Status Soap Interface provides secure access over SSL (if chosen as the protocol) to real-time status information. Status information can be made readily available to any backend solution with SOAP. The services provided by ipMonitor are described
in WSDL (Microsoft's Web Services Description Language) and are easily used with the Microsoft .NET platform.
Methods (C#):
- public rtGroup[] GetGroups();
- public bool GetGroup( long id, out rtGroup info );
- public rtMonitor[] GetMonitors( long groupid, bool bTroubleOnly );
- public bool GetMonitor( long id, out string name, out string type, out rtStatus status );
Using the ipMonitor Status WSDL in Visual Studio .NET
- Save WSDL to your hard drive
- In the WSDL, locate and update the soap:address "http://youripm7addr/" to reflect your ipMonitor instance
- In your C# or ASP.NET project, add a web reference and specify the location of your Modified WSDL
- When naming the web reference, use ipm7status
- The following c# code will assist with testing the generated SoapHttpClientProtocol
ipm7status.ipm7Status proxy = new ipm7status.ipm7Status();
Regex r = new Regex("^(.*)soap/status.asmx$", RegexOptions.IgnoreCase );
Match m = r.Match( proxy.Url );
if( m.Success )
{
CredentialCache cache = new CredentialCache();
cache.Add( new Uri( m.Captures[0].Value ), "Digest",
new NetworkCredential( SecurelyStoredAccount, SecurelyStoredPassword ) );
proxy.Credentials = cache;
foreach( ipm7status.rtGroup g in proxy.GetGroups() )
{
Console.WriteLine( "Group Name[{0}] Group Status[{1}]", g.name, g.status );
}
}
Enumerations and Structures (C#):
public enum rtStatus
{
up,
warn,
down,
lost,
suspended,
disabled,
maintenance,
uninitialized,
unknown
}
public class rtGroup
{
public long id;
public rtStatus status;
public string name;
public bool isroot;
public System.UInt32 m_total;
public System.UInt32 d_total;
public System.UInt32 m_lost;
public bool m_lostSpecified;
public System.UInt32 d_lost;
public bool d_lostSpecified;
public System.UInt32 m_down;
public bool m_downSpecified;
public System.UInt32 d_down;
public bool d_downSpecified;
public System.UInt32 m_warn;
public bool m_warnSpecified;
public System.UInt32 d_warn;
public bool d_warnSpecified;
public System.UInt32 m_ok;
public bool m_okSpecified;
public System.UInt32 d_ok;
public bool d_okSpecified;
public System.UInt32 m_offline;
public bool m_offlineSpecified;
public System.UInt32 d_offline;
public bool d_offlineSpecified;
}
public class rtMonitor
{
public long id;
public rtStatus status;
public string name;
public string type;
public bool isdepend;
public bool ismember;
}
< Back

Last Updated: March 30, 2004 | What did you think of this topic?