cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass String array to web service

Former Member
0 Kudos

Hi,

I have a web service which accepts String array as input parameter. In webdynpro, when I imported the model, it created a class called Array_String apart from other classes.

Now the problem is how should I pass String array from webdynpro to the web service.

Thanks for your time.

Best regards,

Shiva

Accepted Solutions (0)

Answers (2)

Answers (2)

Yashpal
Active Contributor
0 Kudos

Hi Shiva,

suppose the array length is 10 then decalre a string array like this

String[] a = null;

a= new String[10];

a[0]="yash";

a[1]="pal";

like that and then pass the String array a to the method.

Objectname.methodName(a);

hope this will solve ur problem..........

Regards,

yash

Former Member
0 Kudos

Please check this

Best Regards, Anilkumar