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);
}
}
}