Menu

Dev-Axis-Soap

consulare

Axis2 - SOAP for Developpers

There is a few things that must be understood before tackling any tasks on serialisable objects :

  • NO Object, or Class type as the returned type of a method ! Otherwise you will face the 'qname mapping' issue, or serialization will fail.

  • NO interface as the type of a member. How can one instantiate an interface ?

  • NO abstract as the type of a member. Yet again, how can one instantiate an abstract ?

  • ALL classes must have a public constructor without any parameter. A simple public MyClass().

  • ALL members, except the one flagged as transient, must have a setter and a getter.

  • ALL enums must have a NULL member, which will act as the default value.

  • ALL serializable objects should have static final long serialVersionUID. Use the ant serialver -Dc=net.sourceforge.esisframework.objects.MyObjectClass to generate one.

Note that the Axis2 is a customized one, to allow fixes & enhancements :

  • AXIS2-5482 - Bad parameter counts with null arguments
  • AXIS2-5481 - Allow Enum (fixed in 1.6.3 & 1.7.0)
  • AXIS2-5476 - Be nice, better exception
  • AXIS2-5474 - Be nice to folks who forgot a read method on a member.
  • AXIS2-5676 - Issue deserialising array of Alice where Alice as a constructor like Alice(String s) in plus of Alice.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.