예제 #1
0
 public PhpWsForm()
 {
     InitializeComponent();
     ws = new WsTest.localhost.MyWebService();
     // The line below is the part that I forgot!
     ws.CookieContainer = new System.Net.CookieContainer();
 }
예제 #2
0
    protected void SubmitButton_Click(object sender, EventArgs e)
    {
        localhost.MyWebService proxy = new localhost.MyWebService();
        string yo    = proxy.HelloWorld();
        string peace = proxy.Bye();

        double amount = double.Parse(NetAmountTextBox.Text);

        double total = TaxCalculator.CalculateTotalPrice(amount);

        TotalAmountLabel.Text = yo + ", total with tax is " + theForm.FormatCurrency(total) + " " + peace;
    }