package staticstub; import javax.xml.rpc.Stub; import java.util.Vector; import java.awt.Rectangle; //import java.awt.Color; import java.io.Serializable; public class ShapeListClient{ public static void main(String args[]){ //String option = "Write"; String shapeType = "Circle"; // if(args.length > 0) option = args[0]; // read or write // if(args.length > 1) shapeType = args[1]; // specify Circle, Line etc System.out.println("shape = " + shapeType); ShapeList aShapeList = null; try{ Stub stub = createProxy(); stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, args[0]); aShapeList = (ShapeList) stub; System.out.println("Got stub"); int n = aShapeList.numberOfShapes(); System.out.println("Number of shapes=" + n); int v = aShapeList.getVersion(); System.out.println("Version=" + v); Vector sList = new Vector(n); for(int i=0; i