DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15698>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=15698

getters and setters needed for public arrays in JavaBeans





------- Additional Comments From [EMAIL PROTECTED]  2003-03-14 05:47 -------
Procedure to reproducing this error:
1. use the WSDL attached
2. genereate the Client files and use the JSP file given (it might have some 
minor errors since I cut and pasted it)
3. and execute the service

I am using AXIS1.1RC2 one tomcat apache linux
You can also use XMLSPY like tools which creats a soap request from WSDL file 
and sends it to the PORT.
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

<publications>
<item>
<pubid>34234</pubid>
<title>afdadfs</title>
<persons>
<item>
<perid>33<perid>
<personname>asfasdfasdfasdf</personname>
</item>
<item>
<perid>33<perid>
<personname>asfasdfasdfasdf</personname>
</item>
</persons>
</item>
<item>
<pubid>342334244</pubid>
<title>afdadfasdfasdffs</title>
</item>
<publications>


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
[EMAIL PROTECTED]: Or over here
while(temp[i]!=null){
                <%= temp[i].getPubID() %>"><b><%= temp[i].getTitle() %></b>
                <%= temp[i].getYear() %><br />
                <span class="f">Authors/Editors: </span>
                <% 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...


ps. I tried changing my WSDL which would put the PERSON and PUBLICATION 
elements inside the ARRAYS so that it does not give <item> but gives 
<publication> (under <publications>) and <person> (under <persons>) BUT then it 
did not create the getters and setters functions at all. 

Just letting you know the ERROR. thanks for the great software.

Reply via email to