Exemple #1
0
    public static IEnumerable GetDebtsTotal(int i_lschet)
    {
        var    client = new ServiceIntegratorClient(new ServiceIntegrator(ServiceUrl.Url));
        string ticket = client.GetAuthorizationTicket(IdentityCredential.User, IdentityCredential.Password);

        var factory = new GetTRICDebtsTotalFactory(client);

        string i_owner = "1032"; // код поставщика: "Тепло Тюмени - филиал ПАО СУЭНКО"

        var response = factory.Make(new object[] { i_owner, i_lschet }, ticket);

        return(response.Tables[0].Rows);
    }
        public void Setup()
        {
            string user     = IdentityCredential.User;
            string password = IdentityCredential.Password;

            this.columnNamesInResponse = "[AccountID],[PeriodStr],[sumSaldo]";

            this.client = ServiceIntegratorClientFactory.Make(WebServiceUrl.Url);

            this.ticket = this.client.GetAuthorizationTicket(user, password);

            this.factory = new GetTRICDebtsTotalFactory(client);
        }