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


 
Appendix C: Web Services Development in C#
41
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Security.Cryptography.X509Certificates;
using System.Net;
using System.Net.Security;
using System.ServiceModel;
namespace CCWSClient_WCF
{
class Program
{
static string cc_address = "10.0.0.101";
static string user = "gregor";
static string password = "pass123";
static string session_id;
static void
quit(CCAuthentication.AuthenticationAndAuthorizationS
erviceClient auth_service)
{
if (auth_service != null)
{
try
{
CCAuthentication.signOff sign_off
= new CCAuthentication.signOff();
sign_off.String_1 = user;
sign_off.String_2 = session_id;
CCAuthentication.signOffResponse
response = auth_service.signOff(sign_off);