1 package hessian.demo.client; 2 3 import dinamica.*; 4 import hessian.demo.*; 5 import com.caucho.hessian.client.*; 6 7 19 public class OrdersReport extends MasterDetailReader 20 { 21 22 25 public Recordset getDetail(Recordset master) throws Throwable 26 { 27 return master.getChildrenRecordset(); 28 } 29 30 33 public int service(Recordset inputParams) throws Throwable 34 { 35 36 String url = "http://localhost/sdk/hessian/customer"; 38 39 HessianProxyFactory factory = new HessianProxyFactory(); 41 ICustomer c = (ICustomer) factory.create(ICustomer.class, url); 42 43 Recordset rs = c.getCustomer(inputParams.getString("id")); 45 46 publish("query.sql", rs); 49 50 publish("master", rs.getChildrenRecordset()); 53 54 return 0; 55 } 56 57 } 58 | Popular Tags |