Package stub

Examples of stub.ItemAdminStub$DeleteProduct$Factory


  private stub.ItemAdminStub.ChangeProductLocation setLocation;

  public ItemTableModelWebService() {

    try {
      adminStub = new ItemAdminStub(
          "http://stolas69.servequake.com:8080/axis2/services/ItemAdmin");
      pr = adminStub.getProducts();
      Products prod = pr.get_return();
      Product[] ppp = prod.getItem();
      data.clear();
View Full Code Here


  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);
          }
        }
      }
View Full Code Here

TOP

Related Classes of stub.ItemAdminStub$DeleteProduct$Factory

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.