1 16 package org.apache.axis.wsi.scm.retailer; 17 18 import org.apache.axis.wsi.scm.retailer.catalog.CatalogItem; 19 import org.apache.axis.wsi.scm.retailer.catalog.CatalogType; 20 21 26 public class RetailerClient { 27 public static void main(String [] args) throws Exception { 28 RetailerService service = new RetailerServiceLocator(); 30 31 RetailerPortType port = service.getRetailerPort(); 33 CatalogType catalog = port.getCatalog(); 34 CatalogItem[] items = catalog.getItem(); 35 for (int i = 0; i < items.length; i++) { 36 System.out.println("------------------"); 37 CatalogItem item = items[i]; 38 System.out.println(item.getBrand()); 39 } 40 } 41 } 42 | Popular Tags |