public org.omg.CORBA.portable.OutputStream _invoke (String $method,
                                org.omg.CORBA.portable.InputStream in,
                                org.omg.CORBA.portable.ResponseHandler $rh)
  {
    org.omg.CORBA.portable.OutputStream out = null;
    java.lang.Integer __method = (java.lang.Integer)_methods.get ($method);
    if (__method == null)
      throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);

    switch (__method.intValue ())
    {
       case 0:  // Beans/UserService/save
       {
         cn.sdu.edu.middleware.excise2_2.daos.beans.User user = cn.sdu.edu.middleware.excise2_2.daos.beans.UserHelper.read (in);
         this.save (user);
         out = $rh.createReply();
         break;
       }

       case 1:  // Beans/UserService/delete
       {
         int examNo = in.read_long ();
         this.delete (examNo);
         out = $rh.createReply();
         break;
       }

       case 2:  // Beans/UserService/update
       {
         cn.sdu.edu.middleware.excise2_2.daos.beans.User user = cn.sdu.edu.middleware.excise2_2.daos.beans.UserHelper.read (in);
         this.update (user);
         out = $rh.createReply();
         break;
       }

       case 3:  // Beans/UserService/find
       {
         int examNo = in.read_long ();
         cn.sdu.edu.middleware.excise2_2.daos.beans.User $result = null;
         $result = this.find (examNo);
         out = $rh.createReply();
         cn.sdu.edu.middleware.excise2_2.daos.beans.UserHelper.write (out, $result);
         break;
       }

       case 4:  // Beans/UserService/list
       {
         cn.sdu.edu.middleware.excise2_2.daos.beans.User $result[] = null;
         $result = this.list ();
         out = $rh.createReply();
         cn.sdu.edu.middleware.excise2_2.daos.beans.UsersHelper.write (out, $result);
         break;
       }

       default:
         throw new org.omg.CORBA.BAD_OPERATION (0, org.omg.CORBA.CompletionStatus.COMPLETED_MAYBE);
    }

    return out;
  } // _invoke