2. Aufruf der Proxy Methoden

Nachfolgend ist der Sourcecode der C# Bestellapplikation angegeben (Datei OrderClient.cs):

using System;

namespace soapclient
{

 class MainClass
 {

   public static void Main(string[] args)
   {

     OrderService os = new OrderService();

     String user = "test";
     String password = "test";
     String product = "dxf_dm01";

     // Die Bestellparameter setzen
     Parameter[] p = new Parameter[10];
     p[0] = new Parameter();
     p[0].name="min";
     p[0].value="675782.000/245373.000";
     p[1] = new Parameter();
     p[1].name="max";
     p[1].value="675839.000/245428.000";
     p[2] = new Parameter();
     p[2].name="model";
     p[2].value="DM01AVCH24D";
     p[3] = new Parameter();
     p[3].name="email";
     p[3].value="germann@infogrips.ch";
     p[4] = new Parameter();
     p[4].name="name1";
     p[4].value="infoGrips GmbH";
     p[5] = new Parameter();
     p[5].name="adr1";
     p[5].value="Obstgartenstr. 7";
     p[6] = new Parameter();
     p[6].name="zip";
     p[6].value="8035";
     p[7] = new Parameter();
     p[7].name="city";
     p[7].value="Zuerich";
     p[8] = new Parameter();
     p[8].name="verwendung";
     p[8].value="test";
     p[9] = new Parameter();
     p[9].name="tel";
     p[9].value="044 350 10 11";

     // Preisberechnung aufrufen
     Console.WriteLine("");
     Console.WriteLine("calculating price for product {0} ...",product);
     string[] priceinfo = os.calculatePrice(user,password,product,p);
     foreach (string s in priceinfo) {
       Console.WriteLine(s);
     }

     // Bestellung an den GeoShop abschicken
     Console.WriteLine("");
     Console.WriteLine("sending order to GeoShop Server ...");
     Order o = os.sendOrder(user,password,product,p);
     Console.WriteLine("orderno  is {0}",o.orderno);
     Console.WriteLine("orderurl is {0}",o.orderurl);
     Console.WriteLine("price    is {0}",o.price);
     Console.WriteLine("currency is {0}",o.currency);
         
   }

 }

}