axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <>
Subject Re: Stubs response
Date Sun, 27 Jan 2008 02:12:05 GMT
List containts listiterator
listiterator has next method which returns the actual object
do a toString() to convert to string..

  ----- Original Message ----- 
  From: Nasreen Laghari 
  Sent: Saturday, January 26, 2008 6:19 PM
  Subject: RE: Stubs response

  Actually what i'm worried here to get String value from that service method or convert into

    Subject: Re: Stubs response
    Date: Sat, 26 Jan 2008 15:51:29 -0500

    the Java2WSDL utility handles this by generating an inner public static class for the
Response as described here for LookupDataServiceStub

            package ae.ead.egovernment.core.webservice.impl;
            /*  LookupDataServiceStub java implementation */
            public class LookupDataServiceStub extends org.apache.axis2.client.Stub
                        /** Auto generated method signature returning GetCountriesResponse
                         * @see ae.ead.egovernment.core.webservice.impl.LookupDataService#getCountries*/
                          public  ae.ead.egovernment.core.webservice.impl.LookupDataServiceStub.GetCountriesResponse
                                )                     throws java.rmi.RemoteException

                         public static class GetCountriesResponse implements org.apache.axis2.databinding.ADBBean
                            public static final javax.xml.namespace.QName MY_QNAME = new javax.xml.namespace.QName(
                        }  //end static declaration GetCountriesResponse..

      ----- Original Message ----- 
      From: Nasreen Laghari 
      Sent: Saturday, January 26, 2008 2:35 PM
      Subject: Stubs response

      I'm not sure if this is the right place for this Problem.
      My webservice have following method:
      public String GetAccessibleServiceList() {
            DBRetrieve one = new DBRetrieve();
            ArrayList hspid3 = one.RegisteredServices(userID);
            Iterator it2 = hspid3.iterator();
            while (it2.hasNext())
             registeredservices = hspid3.toString();
             System.out.println(" RETURN REGISTERED HSP LIST >>>>>>>>>>>>>>>>>
" + registeredservices);
             return registeredservices;
             return registeredservices;

      This method return the list of services from database. After creating the stub I have
got GetAccessibleServiceListResponse but not GetAccessibleServiceList.
      Therefore at client side I made object 
      AuthenticationServerStub.GetAccessibleServiceListResponse registrationService = new
      But this returns an object AuthenticationServerStub$GetAccessibleServiceListResponse@24c672
      How can I get response or convert this into string.

      Connect and share in new ways with Windows Live. Get it now! 

  Shed those extra pounds with MSN and The Biggest Loser! Learn more. 
View raw message