cancel
Showing results for 
Search instead for 
Did you mean: 

Webservice call does not return data

Former Member
0 Kudos

i have created a stateless EJB and generated webservice from it. the method in ejb just gets data from database table with multiple rows. return type of the method is PlantBean[]. when i invoke this webservice from test console or Webdynpro app it returns Empty objects. it returns exact number of objects as query returns.

at test console it just a list of these objects with no data in it. like

(test.types.PlantBean)

(test.types.PlantBean)

(test.types.PlantBean)

Any help?

thx in adv.

krishna

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Before convert webservice debug your java code. Develop one java class with main method() to call your bean. Have you chek on Web service Navigator?.

Kind Regards,

S.Saravanan.

Former Member
0 Kudos

i had put some debug statements in ejb and it works fine. only WS is not returning data.

Former Member
0 Kudos

Hi,

After deploy the webservice into server, please chaeck using Web Service Navigator.

Kind Regards,

S.Saravanan.

Former Member
0 Kudos

Yes i did and it just gives me objects like this with no data in it.

(test.types.PlantBean)

(test.types.PlantBean)

(test.types.PlantBean)

(test.types.PlantBean)

(test.types.PlantBean)

(test.types.PlantBean)

(test.types.PlantBean)

sridhar_k2
Active Contributor
0 Kudos

Hi Krishna,

Can you please send your peace of code, how your accessing that service? Coz, in navigator it showing all the objects.

Are you sure that, you are setting values to Return Class Objects?

Regards,

Sridhar

Former Member
0 Kudos

i recreated the whole project ,EJB and Webservice and it worked fine

thx

krishna

former_member85655
Active Participant
0 Kudos

Hi Krishna,

You can also make use of the Adaptive WebService model. With this you dont need to use the older Webservice and EJBs to wrap around

This ois available in NW04 from SP18 onwards.

Points ??

Regards,

Arun

Answers (2)

Answers (2)

Former Member
0 Kudos

thanks for the comments from everyone.

sridhar_k2
Active Contributor
0 Kudos

Hi Krishna,

Can you check it from WebService Navigator? If it works fine, just check that generated wsdl file. If everything is fine, WD shouldn't have any problem.

Regards,

Sridhar