Rahul,
  Thanks a lot for your reply.
   
  I have done my stuff by using an array of value objects.
Wht I was trying to point out was Java2WSDL generates a proper schema defn for 
a 1D String[], but not for a 2D String[].
   
  Thanks again,
  Chinmay
  
Rahul Devgan <[EMAIL PROTECTED]> wrote:
  If I understand you correctly, you are trying to return string pairs, with a 
key and corresponding value?

If this is right, 1. you could either use a Hashmap (axis has buitl in 
serializers for hasmap, for sake of brevity both your client must also be a 
java one. I am not saying that you can not invoke such a service from .Net 
clients, that would require you to use no 2 on client side) or 2. an array of a 
value objects, their class being a simple one with 2 attributes, the key and 
value. Ofcoucrse, following the java bean rules and having getters and setters 
for both of them. 

  On 12/22/06, c b <[EMAIL PROTECTED]> wrote:    Hey Anne,
  Thanks for the reply.
  My thing works fine now.
   
  I have now tried returning a 2D String array, but the schema generated for it 
is also
  similar to a 1D array. And the web service fails. 
   
  have u come across anything like this??
   
  Thanks,
  Chinmay

Anne Thomas Manes < [EMAIL PROTECTED]> wrote:
  Use an array rather than a List.


On 12/15/06, c b wrote:
>
> Hi Axis-Users,
>
> I have a simple web service operation which returns a string. This was
> working fine for me.
> Recently I needed to change the return type from String to a 
> List(ArrayList).
> I duly generated the new wsdl and a new client and tried to invoke the newly
> deployed
> web service.
> But it gives me an AXIS fault.
> I checked the newly generated WSDL and the response element now shows the
> type as
> "xsd:anytype".
> Does this have anything to do with the axis fault that I am getting? 
>
> Thanks,
> Chinmay.
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com

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

  
  __________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 





-- 
warm regards,
Rahul Devgan
Cell: +61-412163412
--- there is no pleasure in life like music --- 

 __________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to