Passing complex type as array/list to Axis2 webservice - What URL Pattern does Axis2 expect for REST parameters?

"[email protected]" <[email protected]>
Newsgroups gmane.text.xml.axis.user
Message-ID <CACeMiA_vp7qQL3t-2qC87DTQnPC67BYg=SGtWJKBiCh55WJSxA@mail.gmail.com>
According to https://issues.apache.org/jira/browse/AXIS2-1215

You can declare methods like:
public String[] listStocks(String[] stock)

And invoke for example via REST as:
http://localhost:8080/axis2/rest/StockQuoteService/listStocks?stock=IBM&stock=SUN&stock=FICO&stock=XYZ

What about a more complex type?
public String[] listStocks(Stock[] stocks)

How would the URL parameters look like?

Given the Stock object as:
public class Stock {
  private String id;
  private String name;
  /* getters + setters */
}

I would expect something like:
http://localhost:8080/axis2/rest/StockQuoteService/listStocks?id1=1&name1=asd&id2=2&name2=qwe
or
http://localhost:8080/axis2/rest/StockQuoteService/listStocks?id=1&name=asd&id=2&name=qwe

Or similar ... however that does not seem to work.

What URL Patterns does Axis2 expect for such parameter?

Thanks!
Sebastian

-- 
Sebastian Wagner
https://twitter.com/#!/dead_lock
http://www.webbase-design.de
http://www.wagner-sebastian.com
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.