Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Posts: 41
Registered: ‎02-04-2013
My Device: Bold 9900
My Carrier: Vodafone

Get string array from web service stubs into a list

Hey there,

I am getting an array of strings from a web service. I already generated the stub classes and imported them into my BB project. Now how can I access that array of strings and put that into a list on my main screen? Does anyone have a simple example?


The public method is getData():

public interface BBSoap extends java.rmi.Remote {
	public de.blackberry.stubs.ArrayOfArrayOfString getData() throws java.rmi.RemoteException;


And this is the ArrayOfArrayOfString class which returns that ArrayOfString: ;-)


public class ArrayOfArrayOfString {
    protected de.blackberry.stubs.ArrayOfString[] arrayOfString;
    public ArrayOfArrayOfString() {
    public ArrayOfArrayOfString(de.blackberry.stubs.ArrayOfString[] arrayOfString) {
        this.arrayOfString = arrayOfString;
    public de.blackberry.stubs.ArrayOfString[] getArrayOfString() {
        return arrayOfString;
    public void setArrayOfString(de.blackberry.stubs.ArrayOfString[] arrayOfString) {
        this.arrayOfString = arrayOfString;

Thanks for your help!!

Cheers, Musipoo