• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

Axis 1.4 -Serialization of array of Strings

Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone!

I just started learning web services. I have downloaded Axis 1.4 jars. I made the WSDL with some googling and was able to generate stubs and objects using WSDL2Java.

My problem is in the client. I am supposed to get back an object containing another object which in turn contains an array of strings. I am able to get back only the last string in the client- length of array is getting reduced to only one on client. However I am able to see that the web service is returning more than one string. I am using tcpmon to see the request and response. They are as desired. There are no error messages on the console. Everything seems normal except that I am losing information on the client, which I think is related to Serialization. Can anyone point me to the right direction.

Here is the wsdl types:

I am using document/literal and I need to get back XML in the following way in the soap response:

I am using JDK 1.3.

Thanks for reading my post.
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if you're just starting Web Services, I would highly suggest that you use Axis2's most recent release instead of going backwards to Axis(1).
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
    Bookmark Topic Watch Topic
  • New Topic