• Post Reply Bookmark Topic Watch Topic
  • New Topic

WSDL confusion  RSS feed

 
Chinmay Bajikar
Ranch Hand
Posts: 159
  • Mark post as helpful
  • send pies
  • 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.
 
Rizwan Mohammad
Ranch Hand
Posts: 445
  • Mark post as helpful
  • send pies
  • 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.
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!