Example #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     using (ProductSearchService.ProductSearchWebService ops = new ProductSearchService.ProductSearchWebService())
     {
         label2.Text = "call";
         ops.Url     = textBox1.Text;
         ProductSearchService.productSearchParameters sp = new ProductSearchService.productSearchParameters();
         sp.clientId     = "IMISTD";
         sp.searchString = "%";
         sp.maxResult    = null;
         ProductSearchService.productSearchResult sr = ops.findProductsByDescription(sp);
         label2.Text = "null";
         if (sr != null)
         {
             label2.Text = Convert.ToString(sr.totalHits);
         }
     }
 }
Example #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     using (ProductSearchService.ProductSearchWebService ops = new ProductSearchService.ProductSearchWebService())
     {
         label1.Text = "call";
         ops.Url     = textBox1.Text;
         ProductSearchService.productSearchParameters sp = new ProductSearchService.productSearchParameters();
         sp.clientId      = "IMISTD"; // "HLM";
         sp.searchString  = "72%";    // "721301"; //  "721004"; // "331601"; // "123456";
         sp.firstResult   = 20;
         sp.maxResult     = 10;
         sp.returnDetails = true;
         sp.stockNo       = "910";
         ProductSearchService.productSearchResult sr = ops.findProductsByPartNo(sp);
         label1.Text = "null";
         if (sr != null)
         {
             label1.Text = Convert.ToString(sr.totalHits);
         }
     }
 }