Hi,
Is there an axis2-equivalent for the JAXWS 2.1 @XmlSeeAlso annotation? I'm
trying to pass a polymorphic parameter to an axis2 web service, but
unfortunately I'm unable to find a way to get the web service to "publish"
the subclasses in its WSDL.
Example:
Assuming I have an AbstractBean, and a derived SubBean class, in JAXWS I
would be able to get the web service to "publish" the SubBean class in the
WSDL using the @XmlSeeAlso annotation:
@WebService
@XmlSeeAlso(SubBean.class)
public class Hello {
@WebMethod
// also correctly accepts subclasses of AbstractBean:
public String testAbstractBeanArg(@WebParam AbstractBean bean) {
return bean.toString();
}
}
The resulting WSDL will contain both AbstractBean and SubBean in its schema:
<xs:complexType name="subBean">
<xs:complexContent>
<xs:extension base="tns:abstractBean">
<xs:sequence>
<xs:element name="desc" type="xs:string"
minOccurs="0"></xs:element>
</xs:sequence>
</xs:extension>
</xs:complexContent>
</xs:complexType>
<xs:complexType name="abstractBean" abstract="true">
<xs:sequence>
<xs:element name="color" type="xs:string"
minOccurs="0"></xs:element>
</xs:sequence>
</xs:complexType>
How do I do this in axis2? @XmlSeeAlso seems be ignored by axis2 web
services...
thanks
--
View this message in context:
http://www.nabble.com/%40XmlSeeAlso-and-or-parameter-polymorphism-tp19747819p19747819.html
Sent from the Axis - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]