Andrew Madu wrote:

> var caller = new CallerServices();
> ...
> var request = new DoDirectPaymentRequestType();
> ...
> var response = caller.call("DoDirectPayment", request);
> 

I've tried searching for the paypal API javadocs without success, so I'm
not sure what the caller.call method is expecting as arguments.
Assuming all your other code is correct, my hunch is the caller.call
method is overloaded in a way that Rhino (the javascript engine) cannot
resolve the correct overloaded method to use given the request object.
It may be selecting the wrong overloaded method, resulting in a
ClassCastException within that method.

If that's the case then I think you can use the technique described at
the bottom of
http://www.mozilla.org/js/liveconnect/lc3_method_overloading.html (the
section "Explicit Method Specification") which should allow you to
choose the specific overloaded method to use.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to