You save in
registeredservices = hspid3.toString();
an item and overrrite it with the next item in your
method!
Your return has only one item and not like you expect
a list of elements!
Your registrationService should be  a Array. After
that you should iterate your list to get items from 


--- Nasreen Laghari <[EMAIL PROTECTED]>
schrieb:

> Actually what i'm worried here to get String value
> from that service method or convert into String. 
> 
> 
> To: [EMAIL PROTECTED]: Re: Stubs
> responseDate: Sat, 26 Jan 2008 15:51:29 -0500From:
> [EMAIL PROTECTED]
> 
> 
> 
> 
> 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
> getCountries(
>                             )                    
> 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(                       
> "http://impl.webservice.core.egovernment.ead.ae";,   
>                     "getCountriesResponse",         
>               "ns3");                       
> ............
>                     }  //end static declaration
> GetCountriesResponse..
> M-
> 
> ----- Original Message ----- 
> From: Nasreen Laghari 
> To: axis-user@ws.apache.org 
> Sent: Saturday, January 26, 2008 2:35 PM
> Subject: Stubs response
> Hi, 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
>
AuthenticationServerStub.GetAccessibleServiceListResponse();
> But this returns an object
>
[EMAIL PROTECTED]
> How can I get response or convert this into string.
> Regards Nasreen
> 
> Connect and share in new ways with Windows Live. Get
> it now! 
>
_________________________________________________________________
> Shed those extra pounds with MSN and The Biggest
> Loser!
> http://biggestloser.msn.com/



      Heute schon einen Blick in die Zukunft von E-Mails wagen? Versuchen Sie“s 
mit dem neuen Yahoo! Mail. www.yahoo.de/mail

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to