• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Axis 1.4 - SOAP serialization format suddenly changed after re-deploy

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

I've just experienced quite a strange thing - I had a webservice, which returns array of simple Java beans with couple of properties of simple types (int and Strings) as follows:



Serialized to SOAP-XML, it used to look like this:



This was OK, but after I re-deployed the WS without changing structure of Channel bean, format has suddenly changed to this:



Where channelId and defaultOrder are now references to another tags, which is WRONG and now I cannot make it behave like before. Does anybody have an idea why the output has changed and how to make it work like before that change? My deply.wsdd looks like this:



thanks to all, any suggestion is highly appreciated
Matthias
 
Greenhorn
Posts: 12
Tomcat Server Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just had the exact same problem.

It was caused by deployment of a separate Web Service which contained an explicit serializer/deserializer definition:

I had this code in here so I could send DIME attachments. It works too, but the unintended side-effect seems to be the change in encoding simple types in all services.
I suspect the serializer overrides the default serializer wherever one isn't explicity specified.

When I removed that service and restarted the site (Axis), it reverted to the correct syntax.

I am investigating further now and doing more tests.

I was going to try changing my use of int to Integer, but I see you 've already got Integer so I'll look at defining explicit serializers on the other objects....
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic