This post is based on JDEV 22.214.171.124, it seems like there is issue with ADF BC REST custom method definition in this release. I’m glad it is not runtime issue, but related to design time JDEV wizard incorrect functionality. I will explain how to bypass it, when you want to expose custom REST method in 126.96.36.199.
Sample application (ADFBCRestApp_v8.zip) implements custom method, exposed through ADF BC REST – calculateEmployees. This method is created in VO Implementation class and it accepts two parameters – firstName and lastName. Method works correctly, I can execute it through POST, by passing predefined payload with method name and parameters (read more in developer guide – 22.12.5 Executing a Custom Action):
Make sure not to forget to specify Content-Type, otherwise POST request to ADF BC REST will fail: Read the complete article here.
For regular information become a member in the WebLogic Partner Community please visit: http://www.oracle.com/partners/goto/wls-emea ( OPN account required). If you need support with your account please contact the Oracle Partner Business Center.