public PhpWsForm() { InitializeComponent(); ws = new WsTest.localhost.MyWebService(); // The line below is the part that I forgot! ws.CookieContainer = new System.Net.CookieContainer(); }
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; }