Example #1
0
        public Envelope CallService(string srvName, Envelope req)
        {
            try
            {
                lock (SyncRoot)
                {
                    if (InternalConnection == null)
                    {
                        DoConnect();
                    }
                }

                return(InternalConnection.SendRequest(srvName, req));
            }
            catch (DSAServerException ex)
            {
                if (ex.Status == "511")
                {
                    DoConnect();
                    return(InternalConnection.SendRequest(srvName, req));
                }
                else
                {
                    throw;
                }
            }
        }