cancel
Showing results for 
Search instead for 
Did you mean: 

Return type of ejb method

Former Member
0 Kudos

Hi!

I have created a web service with an ejb application. This ejb in turn calls an rfc function. The rfc function will return a list of records.

I want to create a web service model of the same in my WebDynpro application.In the IWDTable UI element I want to show the Data or list of records.

What I want to ask is what should be the return type of ejb method so that in the context node I will get the data which in turn I can show in the IWDTable uielement of WebDynpro application.

Thanks in advance,

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi

another thing, correction

Create object of SUPER class in Session bean

then set arrObject to object of SUPER class

finally return object of SUPER class

LakshmiNarayan

Former Member
0 Kudos

Hi

Create a ValueObject Class

in this, declare required fields and setter,getters

Create Another Class SUPER

in this, declare object of ValueObject Class,

and arrObject of ValueObject Class

Then ,In Session Bean

Create objects obj,arrObject for VO class

set required data for object of ValueObjectClass

and add each object to arrObject[index]

Then return this arraObject

Regards

LakshmiNaraya

Former Member
0 Kudos

Hi Nilesh,

If your rfc function returns an object then return type should be objectType[].

Suppose it returns list of String values, then return String[].

Hope this will solve your problem.

thanks & regards,

Manoj