You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Vijesh A.V." <vi...@emirates.com> on 2007/02/14 06:42:58 UTC

[Axis2] Attachment or element type

Hi all,

I have a method which returns different objects based on the scenario.
It may return Objects Integer, Boolean, or a very complex class.

How do I create a web service for this requirement. 

Will I have to use attachment?  I guess I can add Object data source to
DataHandler.

Or using xsd:anyType will workout?


My endpoint would look like

Publich Object getResult(Object input) {
	.....
	return new Integer(10);
	.....
	return new Boolean(true);
	.....
	return new AComplexClass();
}



Best Regards,
Vijesh A V
Senior Software Engineer, Mercator, Dubai
Ph: +971 4 213 3431