PureEngage On-Premises

 View Only

Sign Up

  • 1.  SolutionControlServerProtocol: Connection issue

    Posted 04-18-2017 10:49
    Hi,

    I am using below code to connect to SCS but getting connection not opened error:
     SolutionControlServerProtocol scsProtocol = new SolutionControlServerProtocol(new Endpoint("Host where scs is installed", port on which scs is installed));

                scsProtocol.ClientName = "scs application name";
                scsProtocol.UserName = "username";
                try
                {
                    scsProtocol.BeginOpen();
                }


  • 2.  RE: SolutionControlServerProtocol: Connection issue

    Posted 04-21-2017 15:11
    This should be enough to get you connected to SCS:


    try
                {
                    string server = "tcp://demosrv:7003";
                    SolutionControlServerProtocol protocol = new SolutionControlServerProtocol(new Endpoint(new Uri(server)));
                    protocol.Open();
                    RequestGetApplicationInfo req = RequestGetApplicationInfo.Create();
                    req.ControlObjectId = 117;
                    IMessage res = protocol.Request(req);
                    if(res is EventInfo)
                    {
                        EventInfo info = res as EventInfo;
                        Console.WriteLine("Status: " + info.ControlStatus);//6 = Running
                    }
                    Console.WriteLine(res);
                }
                catch(Exception ex)
                {
                    Console.WriteLine("Error :", ex);
                }



    Do you have the port open on the firewall?
    Can you telnet from the PC where you run the code to the SCS host and port?
    Do you have to the correct host and port details?