File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes Axis 1.4 - SOAP serialization format suddenly changed after re-deploy Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Axis 1.4 - SOAP serialization format suddenly changed after re-deploy" Watch "Axis 1.4 - SOAP serialization format suddenly changed after re-deploy" New topic
Author

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

Matthias Sommer
Greenhorn

Joined: May 20, 2009
Posts: 3
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
Matt W Robinson
Greenhorn

Joined: Dec 13, 2007
Posts: 12

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....
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Axis 1.4 - SOAP serialization format suddenly changed after re-deploy