• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

WSDL confusion

 
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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.
 
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think using List,Vector may not be compatible with many other systems. I had similar problem. Try using String array instead of List and check whether your solve your problem.
 
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You will indeed need to return an array instead of an ArrayList, and define that returntype in the WSDL something like this.



and use that as the returntype for your wsdl:message
 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Thanks ...that String[] thing worked.
I dont need to change the wsdl, since it is properly generated
by the java2wsdl in Axis2 1.1

I tried to have a 2d String[], but that didnt work.
The wsdl generated was still the one which represented the 1d String[].
Maybe this is stuff for the axis2 guys to look into.

Thanks a lot for the suggestions,
Chinmay
 
It is an experimental device that will make my mind that most powerful force on earth! More powerful than this tiny ad!
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic