コード例 #1
0
        static void Main(string[] args)
        {
            while (true)
            {
                Console.Write("Enter Transaction Identifier: ");
                string transactionID = Console.ReadLine();
                Console.Write("Enter Payload: ");
                string payload = Console.ReadLine();

                using (TestClient.WebServiceProxy.ExternalWebService svc = new WebServiceProxy.ExternalWebService())
                {
                    Console.WriteLine("Invoking web service {0}", svc.Url);
                    try
                    {
                        svc.Process(transactionID, payload);
                        Console.WriteLine("Success");
                    }
                    catch (Exception x)
                    {
                        Console.WriteLine(x.Message);
                    }
                }
            }
        }
コード例 #2
0
		static void Main(string[] args)
		{
			while (true)
			{
				Console.Write("Enter Transaction Identifier: ");
				string transactionID = Console.ReadLine();
				Console.Write("Enter Payload: ");
				string payload = Console.ReadLine();

				using (TestClient.WebServiceProxy.ExternalWebService svc = new WebServiceProxy.ExternalWebService())
				{
					Console.WriteLine("Invoking web service {0}", svc.Url);
					try
					{
						svc.Process(transactionID, payload);
						Console.WriteLine("Success");
					}
					catch (Exception x)
					{
						Console.WriteLine(x.Message);
					}
				}
			}
		}