1 package hessian.demo.client; 2 3 import dinamica.*; 4 import hessian.demo.*; 5 import com.caucho.hessian.client.*; 6 7 17 public class CustomerInfo 18 { 19 20 public static void main(String [] args) throws Throwable 21 { 22 23 String url = "http://localhost/sdk/hessian/customer"; 25 26 HessianProxyFactory factory = new HessianProxyFactory(); 28 ICustomer c = (ICustomer) factory.create(ICustomer.class, url); 29 30 Recordset rs = c.getCustomer("ALFKI"); 32 33 rs.first(); 35 System.out.println(rs); 36 37 Recordset rsOrders = rs.getChildrenRecordset(); 39 System.out.println(rsOrders); 40 41 rsOrders.top(); 43 while (rsOrders.next()) 44 { 45 Recordset rsDetail = rsOrders.getChildrenRecordset(); 46 System.out.println(rsDetail); 47 } 48 49 } 50 } 51 | Popular Tags |