Raritan Computer CC-WSAPI-0B-v5.1.0-E Marine Radio User Manual


 
Appendix C: Web Services Development in C#
44
// renameNode service
CCNode.NodeManagementServiceClient
node_service = new
CCNode.NodeManagementServiceClient();
node_service.ClientCredentials.ClientCertificate.SetC
ertificate(
StoreLocation.CurrentUser,
StoreName.My,
X509FindType.FindBySubjectName,
"10.0.0.150");
CCNode.renameNode rename = new
CCNode.renameNode();
rename.String_1 = session_id;
Console.Write("Name of node to change:
");
rename.String_2 = Console.ReadLine();
Console.Write("New node name: ");
rename.String_3 = Console.ReadLine();
try
{
CCNode.renameNodeResponse response =
node_service.renameNode(rename);
Console.WriteLine("renameNode
response: " + response.result);
}
catch (Exception exception)
{
Console.WriteLine(exception.ToString());
quit(auth_service);
}
quit(auth_service);