static void Main(string[] args) { ItineraryServiceClient isc = new ItineraryServiceClient("wsHttp"); Program p = new Program(); Console.WriteLine("Welcome to Velib itinerary Service"); Console.Write("Enter origin [default address : 5 Avenue Anatole France, 75007 Paris ] : "); string origin = Console.ReadLine(); if (origin.Equals("")) { origin = "5 Avenue Anatole France, 75007 Paris"; } Console.Write("Enter destination [default address : Avenue des Champs-Élysées, 75008 Paris ] : "); string destination = Console.ReadLine(); if (destination.Equals("")) { destination = "Avenue des Champs-Élysées, 75008 Paris"; } // "21 Rue Saint-Séverin 75005", "1 rue Antoine Dubois" string s = isc.getItinerary(origin, destination); p.response_processor(s); Console.WriteLine("Press key to exit"); Console.ReadLine(); }
private void button2_Click(object sender, EventArgs e) { String src = textBox1.Text; String dest = textBox2.Text; if (src.Equals("")) { src = "5 Avenue Anatole France, 75007 Paris"; } if (dest.Equals("")) { dest = "Avenue des Champs-Élysées, 75008 Paris"; } // src = 5 Avenue Anatole France, 75007 Paris // dest = Avenue des Champs-Élysées, 75008 Paris String res = ics.getItinerary(src, dest); response_processor(res); //walkStart.Text = res; //walkStart.Visible = true; }