Jason,
i'm trying to implement the info you sent me but am having a bit of trouble with the syntax. The class in question reads as so: public class CallerServices { /** * Initializes the API Caller * @throws PayPalException */ public void initialize() throws PayPalException { } /** * Invokes an API call from a request object * @param operationName name of web service to invoke * @param request request object * @return response object * @throws PayPalException if no profile is set, or an error occurs while executing the call */ public AbstractResponseType call(String operationName, AbstractRequestType request) throws PayPalException { if (caller == null) { this.initialize(); } }
/** * Invokes an API call from an XML request string (NOTE: Used only by the console) * @param operationName name of web service to invoke * @param requestStr request string * @return response string * @throws PayPalException */ public String call(String operationName, String requestStr) throws PayPalException { } } The method I am after is: public AbstractResponseType call(String operationName, AbstractRequestType request) throws PayPalException So I do the following in my flowscript: importClass(Packages.com.paypal.sdk.services.CallerServices); .... response = CallerServices["call(String, AbstractRequestType)"]; response(5); I am now getting the following error message: Java class "com.paypal.sdk.services.CallerServices" has no public instance field or method named "call(String, AbstractRequestType)". What am I doing wrong here? Andrew |
- Re: Cast type in flowscript Andrew Madu
- Re: Cast type in flowscript Andrew Madu
- Re: Cast type in flowscript Jason Johnston
- Re: Cast type in flowscript Andrew Madu
- Re: Cast type in flowscript Andrew Madu
- Re: Cast type in flowscript Simone Gianni
- Re: Cast type in flowscript Andrew Madu
- Re: Cast type in flowscript [ Jav... Simone Gianni
- Re: Cast type in flowscript [... Andrew Madu
- Re: Cast type in flowscript [... Jason Johnston
- Re: Cast type in flowscript [... Simone Gianni
- Re: Cast type in flowscript [... Andrew Madu
