Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

webservice should return 2d stringarray  RSS feed

 
Steve Thomson
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a simple question, but i don't know for sure how to do this.

I have a webservice with a method getPendingTransactions which returns a 2d String array. It looks partly like this:



I´m passing this to setTrans(String[][] value) which expects a 2d String.

I'm getting the following error:
setTrans(java.lang.String[][]) in CommonAccountBean cannot be applied to (java.util.List<net.java.dev.jaxb.array.StringArray>)
 
Ivan Krizsan
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
It looks like the parameter to the CommonAccountBean.setTrans method is of the wrong type - it should be String[][] but is List<StringArray>.
Is this, by any chance, JAXB generated code?
Best wishes!
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!