cancel
Showing results for 
Search instead for 
Did you mean: 

Web service problem

Former Member
0 Kudos

Hello Everybody,

I have made one web service which returns me employee data. I am returning array of one java class. This java class contains 6 fields.

But, when i test this web service it only shows me 3 fields.

I am not getting other fields in result. I have checked fields in Java class.

Now i have added one more field in this java class. But, still it shows me three fields while testing from wdnavigator.

What should be the problem?

Regards,

Bhavik

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Bhavik,

I had the same problem and I found out that fieldnames with underlines like "empl_name" had caused the failure (At least when I had imported my Web Service as a Web Service Model in my Web Dynpro App.

Karsten

Former Member
0 Kudos

Hi Karsten,

I have changed my Java class accordingly. But still in wsdl of my web service, it is not reflected.

In WSDL i found names with underscore only.

Is there any issue with cacheing?

Regards,

Bhavik

Former Member
0 Kudos

Open the Vi (Virtual Interfaces) of your Web Service and select 'Types'. Here you will find your object. I think it will be in the 'old' state. You will have to delete your Web Service, deploy the projekt and then build a new Web Service. In this sense it is really a kind of caching issue.

Former Member
0 Kudos

Sorry, you will not need to delete your Web Service,

you can alter/ add your fields in the Vi.

Former Member
0 Kudos

Hi Karsten,

This step is not required as i have changed fields in java class. And in return type of my method is the same java class. So, no need to alter the input/output parameters in vi.

Still i did that. But, it si not getting reflected.

Thanks,

Bhavik

Former Member
0 Kudos

Hi Bhavik,

it`s not the input/output parameters. They will probably not have been changed.

But the Field-Data of your object-type has changed and the Web Service does not update this automatically.

You will have to update it by choosing the 'Types'-tab of the Vi.

The safest way is to create a new Web Service...

Answers (0)