Hi, thats exactly what i did, the error reported appeared after this change.
Am Montag, den 09.07.2007, 12:39 -0700 schrieb Mike Patton: > Andreas, > > I think the best way is to create a class that has an array of > deviceVendors and return that in type in your web service. Do not > directly return an array. Wrap it in a class and return an that new > type. > Mike > > > Andreas Fey <[EMAIL PROTECTED]> wrote: > Hi, > > i've done that now; i can get the array out of the > DeviceVendors class > and i can determine how much entries are in it; but when i > want to > access a single element in this array (e.g. using vendor[0] > with an > array of size 2), each element returns "null", despite the > service sets > a valid value. > > Any Ideas? > Thanks, > > Andreas > > > Am Sonntag, den 08.07.2007, 09:19 -0400 schrieb Anne Thomas > Manes: > > I recommend that you create a bean called DeviceVendors > which contains > > an array of strings. Return that. > > > > Anne > > > > On 7/6/07, Andreas Fey wrote: > > > Hello, > > > > > > i've set up a webservice with serveral methods; some of > them (A) return > > > just simple types like int and long, and some of them (B) > return a array > > > of string. > > > > > > While i get results with (A), with (B) just an error is > shown: > > > > > > Stacktrace: > > > > > org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:524) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:423) > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > > > root cause > > > > > > org.apache.axis2.AxisFault: > org.apache.axis2.databinding.ADBException: Unexpected > subelement return > > > org.apache.axis2.AxisFault.makeFault(AxisFault.java:404) > > > > > de.tafmobile.server.remoteservices.appgenerator.AppGeneratorServiceStub.fromOM(AppGeneratorServiceStub.java:18945) > > > > > de.tafmobile.server.remoteservices.appgenerator.AppGeneratorServiceStub.getDeviceVendors(AppGeneratorServiceStub.java:340) > > > org.apache.jsp.index_jsp._jspService(index_jsp.java:105) > > > > org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393) > > > > > org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320) > > > > org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266) > > > > javax.servlet.http.HttpServlet.service(HttpServlet.java:803) > > > > > > ...blablabla... > > > > > > The webservice method i call is the following: > > > public String[] getDeviceVendors(); > > > > > > The stubs were created with wsdl2java. > > > > > > Anybody an idea? > > > > > > Andreas > > > > > > > > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: > [EMAIL PROTECTED] > > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: > [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > ______________________________________________________________________ > Got a little couch potato? > Check out fun summer activities for kids. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
