예제 #1
0
 private Object[] toRailoType(PageContext pc, Object[] args) throws PageException {
   Object[] trgs = new Object[args.length];
   for (int i = 0; i < trgs.length; i++) {
     trgs[i] = AxisCaster.toRailoType(pc, args[i]);
   }
   return trgs;
 }
예제 #2
0
  @Override
  protected Object invokeMethod(MessageContext mc, Method method, Object trg, Object[] args)
      throws Exception {
    PageContext pc = (PageContext) mc.getProperty(Constants.PAGE_CONTEXT);
    Component c = (Component) mc.getProperty(Constants.COMPONENT);

    RPCServer server = RPCServer.getInstance(pc.getId(), pc.getServletContext());
    TypeMapping tm = server.getEngine().getTypeMappingRegistry().getDefaultTypeMapping();

    return AxisCaster.toAxisType(tm, c.call(pc, method.getName(), toRailoType(pc, args)), null);
  }