Exemplo n.º 1
0
 private void button6_Click(object sender, EventArgs e)
 {
     using (CustomerService.CustomerWebService ops = new CustomerService.CustomerWebService())
     {
         label5.Text = "call";
         ops.Url     = textBox3.Text;
         customerSearchParameters sp = new customerSearchParameters();
         sp.clientId   = "IMISTD";
         sp.customerId = "171";
         sp.maxResult  = null;
         CustomerService.address[] list = ops.getAddresses(sp);
         label5.Text = Convert.ToString(list.GetLength(0));
     }
 }
Exemplo n.º 2
0
 private void button9_Click(object sender, EventArgs e)
 {
     using (CustomerService.CustomerWebService ops = new CustomerService.CustomerWebService())
     {
         label5.Text = "call";
         ops.Url     = textBox3.Text;
         customerSearchParameters sp = new customerSearchParameters();
         sp.clientId      = "IMISTD";
         sp.stockNo       = "910";
         sp.maxResult     = null;
         sp.returnDetails = true;
         customer customer = ops.findClientById(sp);
         label5.Text = customer.name;
     }
 }