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 <[EMAIL PROTECTED]> 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]

Reply via email to