hi steve
thansk for the reply.
PLEASE let me know how to get this error out..
I changed so many things..
In C++ we used to do while(arraynaem[]!=null)
I dont know whether we have to use beans when we have array of beans.
Can you please show a small implementation.

my Person array is returnd with 14 elements when I see the SOAP request(yes the 
service is fine)
but when I try to use the client it gives me this error. there Person.java and 
Publication.java
files on server as well as client.
my searchPerson() remote function returns an searchPersonResponseType data strcuture 
that contains
person[]. I have to simply print that array.
Is this problem because I have wrong implementation of client??or is this beacuse of 
some
deserializer error.(data getting lost due to incorrect deserializing)

Please help me with this small code. I will do the rest. I have client implemented in 
JSP
> > public void printPersons(JspWriter out, Person[] persons) throws IOException {
> >             
> >             int j=0;
> >             while(persons[j]!=null){
> >                     out.write("<a class=fl href='person/perid"
> >                     +persons[j].getPerID()+"'>"+persons[j].getPersonName()+"</a>"
> >                             +"<br/>");
> >                     j++;
> >             }
> >                     
> > }

--- Steve Loughran <[EMAIL PROTECTED]> wrote:
> Jinesh Varia wrote:
> > I am using Axis 1.1RC2. generated the client files using Wsdl2java. and then using 
> > a jsp as
> > testclient
> > 
> > I was getting this no deserializer defined for Array type error
> > And gurus suggest me to use the nightly fix.
> > That was out. but now I am getting 
> > 
> > java.lang.ArrayIndexOutOfBoundsException: 1
> >     at org.apache.jsp.search_jsp.printPersons(search_jsp.java:62)
> >     at org.apache.jsp.search_jsp._jspService(search_jsp.java:259)
> >     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> >     at 
> > org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
> >     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
> >     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
> >     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > 
> > The service is running fine when I send a SOAPRequest using XML spy
> 
> then clearly the service is working :)
> > 
> > Also the service is being accessed. the problem is in the client classes. I think 
> > AXIS is not
> > deserializing properly the data strucuture arrays. Since I specified the 
> > client-config.wsdd
> file,
> > it did got "the no deserializer defined for Array type" fixed. but now it does not 
> > know how to
> > deserialize
> > 
> > printPersons is a simple array of a data strucuture that contains perid and 
> > personname
> > 
> > public void printPersons(JspWriter out, Person[] persons) throws IOException {
> >             
> >             int j=0;
> >             while(persons[j]!=null){
> >                     out.write("<a class=fl href='person/perid"
> >                     +persons[j].getPerID()+"'>"+persons[j].getPersonName()+"</a>"
> >                             +"<br/>");
> >                     j++;
> >             }
> >                     
> > }
> 
> What exactly are you expecting here? specifically, what assumptions are 
> you making about the array that comes back, and/or what assumptions are 
> you making about arrays in java.
> 
> This is not the normal way to iterate through an array in Java.
> 
> -steve
> 
> 


=====
-----------------------------------------------------------------
Jinesh Varia
Graduate Student, Information Systems
Pennsylvania State University
Email: [EMAIL PROTECTED]
-----------------------------------------------------------------
'Self is the author of its actions.'

__________________________________________________
Do you Yahoo!?
Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
http://platinum.yahoo.com

Reply via email to