Example #1
0
        private GetConfirmationTemplatesResponse GetTemplates(string pTradingSysCode)
        {
            string confirmMgrUrl = baseUrlStr + @"/" + CONFIRMATIONS_MGR_URL_EXT;
            ConfirmationsManagerClient client = new ConfirmationsManagerClient(CONFIRMATIONS_MGR_ENDPOINT, confirmMgrUrl);

            client.ClientCredentials.UserName.UserName = svcUserName;
            client.ClientCredentials.UserName.Password = svcPassword;

            GetConfirmationTemplatesRequest  request  = new GetConfirmationTemplatesRequest();
            GetConfirmationTemplatesResponse response = new GetConfirmationTemplatesResponse();

            request.tradingSystemCode = pTradingSysCode;
            response = client.getConfirmationTemplates(request);
            //throw new Exception(); //for test bad scenario
            return(response);
        }
        private GetConfirmationTemplatesResponse GetTemplates(string pTradingSysCode)
        {
            string confirmMgrUrl = baseUrlStr + @"/" + CONFIRMATIONS_MGR_URL_EXT;
            ConfirmationsManagerClient client = new ConfirmationsManagerClient(CONFIRMATIONS_MGR_ENDPOINT, confirmMgrUrl);
            client.ClientCredentials.UserName.UserName = svcUserName;
            client.ClientCredentials.UserName.Password = svcPassword;

            GetConfirmationTemplatesRequest request = new GetConfirmationTemplatesRequest();
            GetConfirmationTemplatesResponse response = new GetConfirmationTemplatesResponse();

            request.tradingSystemCode = pTradingSysCode;
            response = client.getConfirmationTemplates(request);
            //throw new Exception(); //for test bad scenario
            return response;
        }