ADF BC Web Service – Return List of Complex Types by Rohan Walia

Posted: May 28, 2015 in JDeveloper & ADF, Mobile
Tags: , , , , , , , ,

 

clip_image002ADF Business Components can be exposed as SOAP Services. Application Module provides Service Interfaces as a way to define operations for the services to be exposed. Custom methods written in AMImpl class can also be exposed as operation of web services.
But one of the limitation is that there is restriction on return types from the services exposed as service interface from Application Module.
In this post we will see how easily we can develop a web service using ADF BC Service Interface and can tweak/use one of the given returnType List<ViewRowImpl> to return list of complex type object.
Use case here is to create an operation in ApplicationModuleImpl class to return List of Object consiting of three variables -  DepartmentName,ManagerId,IsManagerFlag and expose the operation as ADF BC Service Interface SOAP Service. (Jdeveloper 11.1.1.7)
So Lets get started
Created a simple ADF Web Application using HR Schema and created DepartmentsEO , VO and AM and there respective Java Classes.
Create a Programmatic VO – WSResultPVO which will be returned from the operation of the WebService.
Now Add three variables in the PVO. DepartmentName,ManagerId and IsManagerFlag. Read the complete article here.

WebLogic Partner Community

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.

Blog Twitter LinkedIn Forum Wiki

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s