Skip navigation
rgalletto
Currently Being Moderated

Parameter Descriptors in BlazeDS Remote Services

Aug 3, 2011 11:08 AM

Hi Everyone!

 

I'm having an issue with getting the names of parameters in Java defined services to show up in the converted Action Script services.

Unfortunatley, whenever I define a java service with parameters, the names of those parameters are lost on intorspection and are only represented with names like "arg1, arg2, arg3.." instead of "userId, name, password" etc..

 

So My question is, how do I get BlazeDS to maintain those parameter names or at the very least allow me to redefine them something other than the generic (and useless) arg1, arg2, arg3 ?

 

Note**: I have tried packaging BeanInfo.java classes with my services but it doesn't seem to make a differance.

 

Thanks!

 

UPDATE: just a simple example to better explain the situation:

                           

So this method in java:

                                                |||           |||
                                                vvv           vvv
        public HelloWorld getHelloWorld(String hello, String world)
     {
          HelloWorld helloWorld = new HelloWorld();
          return helloWorld;
     }
 
}

 

Becomes in Action Script(in Flash Builder):

 

                               |||       |||
                               vvv       vvv
 public function getHelloWorld(arg0:int, arg1:String) : mx.rpc.AsyncToken
    {
        var _internal_operation:mx.rpc.AbstractOperation = _serviceControl.getOperation("getHelloWorld");
          var _internal_token:mx.rpc.AsyncToken = _internal_operation.send(arg0,arg1) ;
        return _internal_token;
    }

how do I get hello & world to replace arg0 & arg1 respectively?

Thanks again!

 

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points