Return-Path: Delivered-To: apmail-ws-axis-user-archive@ws.apache.org Received: (qmail 32677 invoked by uid 500); 14 Mar 2003 05:40:50 -0000 Mailing-List: contact axis-user-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-user@ws.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list axis-user@ws.apache.org Received: (qmail 32668 invoked from network); 14 Mar 2003 05:40:49 -0000 Message-ID: <20030314054100.74388.qmail@web20210.mail.yahoo.com> Date: Thu, 13 Mar 2003 21:41:00 -0800 (PST) From: Jinesh Varia Subject: RE: was this bug fixed?? deserializing beans within an array in a bean To: David Gilbert Cc: axis-user@ws.apache.org, tomj@macromedia.com In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-688495435-1047620460=:74258" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --0-688495435-1047620460=:74258 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline Sir, Thank you for your reply. I understand it is a bug and I will also track its activity. But I am highly dependent on AXIS now. Can you please suggest me a workaround? or a pointer on where would I need a change? I am using AXIS1.1RC2 one tomcat apache linux My SOAP response is working fine when I simple send a SOAPRequest. ( I used XMLSPY to send a SOAP request and recieve it) The SOAP response is in this format 34234 afdadfs 33 asfasdfasdfasdf 33 asfasdfasdfasdf 342334244 afdadfasdfasdffs My data structures are: public class Person { private int perID; private String personName; } public class Publication { private int pubID; private String title; Person [] person; int year; } ----------------- My WSDL is attached Web service is functioning perfectly at http://dblpseer.ist.psu.edu/ws/services/DBLPSeerPort?WSDL --------------- I am getting SOAP responses when I send the requests but when I am using a client, It gives me this error. for eg. My searthTitle takes in a searchString (SearchTitleRequestType )and returns a Publication Array. Hence when it executes the function (does the RPC) and when it returns it gives me this error //MyClient.jsp DBLPSeerWebService service = new DBLPSeerWebServiceLocator(); DBLPSeerPortType port = service.getDBLPSeerPort(); SearchTitleRequestType body = new SearchTitleRequestType(); body.setSearchString(searchString); Publication temp[]; SearchTitleResponseType strp = port.searchTitle(body); temp = strp.getPublications();<<<<<<<<<<<<<####1 : I think it gives an error here. //And then I print this array ###@2: Or over here while(temp[i]!=null){ <%= temp[i].getPubID() %>"><%= temp[i].getTitle() %> <%= temp[i].getYear() %>
Authors/Editors: <% int j=0; while(temp[i].getPersons()[j]!=null){ <%= temp[i].getPersons()[j].getPerID() %>::<%= temp[i].getPersons([j].getPersonName() %>, <% j++; } i++ } I think since the Publications element is an SOAP array and it contains a Persons element which contains a SOAPArray, the problem is coming... Can you please give me a pointer or a workaround???? It will be HIGHLY WORSHIPPED at this point of time. THANKS Jinesh ps. I tried changing my WSDL which would put the PERSON and PUBLICATION elements inside the ARRAYS so that it does not give but gives (under ) and (under ) BUT then it did not create the getters and setters functions at all. and I could proceed!! AnyBODY ANY HELP!! will be appreciated..... --- David Gilbert wrote: > There are a few bugs still outstanding regarding deserializing java bean > arrays. Please see http://nagoya.apache.org/bugzilla/index.html for a > listing and the latest status. > > -----Original Message----- > From: Jinesh Varia [mailto:jineshresearch@yahoo.com] > Sent: Thursday, March 13, 2003 4:59 PM > To: dgilbert@cragmonttech.com > Cc: axis-user@ws.apache.org > Subject: was this bug fixed?? deserializing beans within an array in a > bean > > > I am using AXISRC2. PLEASE somebody inform me whether this but is fixed or > not?? > thanks > > org.xml.sax.SAXException: No deserializer defined for array type Publication > at org.apache.axis.AxisFault.makeFault(AxisFault.java:129) > at org.apache.axis.client.Call.invoke(Call.java:2237) > at org.apache.axis.client.Call.invoke(Call.java:2133) > at org.apache.axis.client.Call.invoke(Call.java:1656) > at DBLPSeerClient.DBLPSeerBindingStub.searchTitle(DBLPSeerBindingStub > > ===== > ----------------------------------------------------------------- > Jinesh Varia > Graduate Student, Information Systems > Pennsylvania State University > Email: jinesh@psu.edu > ----------------------------------------------------------------- > 'Self is the author of its actions.' > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - establish your business online > http://webhosting.yahoo.com > ===== ----------------------------------------------------------------- Jinesh Varia Graduate Student, Information Systems Pennsylvania State University Email: jinesh@psu.edu ----------------------------------------------------------------- 'Self is the author of its actions.' __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com --0-688495435-1047620460=:74258 Content-Type: text/xml; name="ws3.wsdl" Content-Description: ws3.wsdl Content-Disposition: inline; filename="ws3.wsdl" --0-688495435-1047620460=:74258--