Exemplo n.º 1
0
        public CardConsumer()
        {
            //here do the actual refund
            System.Configuration.AppSettingsReader r = new System.Configuration.AppSettingsReader();
            string path = (string)r.GetValue("MerchantBankServiceIPAndPort", typeof(String));
            //class name to load
            string line;

            // Read the file and display it line by line.
            using (System.IO.StreamReader file = new System.IO.StreamReader(path))
            {
                line = file.ReadToEnd();
                file.Close();
            }

            string[] connectionInfo = line.Split(";".ToCharArray());
            string ip = connectionInfo[0];
            string port = connectionInfo[1];

            string bindingURI = string.Format("http://{0}:{1}/AppDynamicsBank/CreditCardService?wsdl", ip, port);
            disco = new AppDMoviesWSAutoDiscovery(bindingURI, interfaceContractName);
        }
Exemplo n.º 2
0
        public CardConsumer()
        {
            //here do the actual refund
            System.Configuration.AppSettingsReader r = new System.Configuration.AppSettingsReader();
            string path = (string)r.GetValue("MerchantBankServiceIPAndPort", typeof(String));
            //class name to load
            string line;

            // Read the file and display it line by line.
            using (System.IO.StreamReader file = new System.IO.StreamReader(path))
            {
                line = file.ReadToEnd();
                file.Close();
            }

            string[] connectionInfo = line.Split(";".ToCharArray());
            string   ip             = connectionInfo[0];
            string   port           = connectionInfo[1];

            string bindingURI = string.Format("http://{0}:{1}/AppDynamicsBank/CreditCardService?wsdl", ip, port);

            disco = new AppDMoviesWSAutoDiscovery(bindingURI, interfaceContractName);
        }