Package stub

Examples of stub.ItemCustomerStub


public class WebItemCustomerClient {
  public static void main(String[] args) {
    System.out.println("Customer called ...");
    try {
      ItemCustomerStub stub = new ItemCustomerStub(
          "http://stolas69.servequake.com:8080/axis2/services/ItemCustomer");
      ItemAdminStub s = new ItemAdminStub(
          "http://stolas69.servequake.com:8080/axis2/services/ItemAdmin");

      stub.ItemAdminStub.GetProductsResponse pr = s.getProducts();
      // System.out.println(pr.get_return());
      Products prod = pr.get_return();

      Product[] ppp = prod.getItem();
      for (int i = 0; i < ppp.length - 1; i++) {
        System.out.println(ppp[i].getId() + ":"
            + ppp[i].getDescription() + "\t: " + ppp[i].getPrice()
            + "\t: " + ppp[i].getLocation());
        if(ppp[i].getDescription().equals("cacat")){
          stub.ItemAdminStub.ChangeProductDescription desc=new ChangeProductDescription();
          desc.setDescription("cacat2");
          desc.setId(ppp[i].getId());
          try {
            s.changeProductDescription(desc);
          } catch (ChangeProductDescriptionFault e) {
            e.printStackTrace(System.err);
          }
        }
      }
      stub.ItemCustomerStub.SearchProduct searchProduct = new stub.ItemCustomerStub.SearchProduct();
      searchProduct.setDescription("cacat2");
      // gb.setAccountId(id);
      // gb.setPassword("1");
      stub.ItemCustomerStub.SearchProductResponse search = stub
          .searchProduct(searchProduct);
      String result = search.get_return();
      System.out.println(searchProduct.getDescription() + ": " + result);

    } catch (AxisFault e) {
View Full Code Here


  public ItemTableModelClient(Object rowData[][], Object columnNames[]) {
    super(rowData, columnNames);

    try {
      customerStub = new ItemCustomerStub(
          "http://stolas69.servequake.com:8080/axis2/services/ItemCustomer");

    } catch (AxisFault e) {
      e.printStackTrace(System.err);
    }
View Full Code Here

TOP

Related Classes of stub.ItemCustomerStub

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.