I am already using the XmlSeeAlso..

@XmlSeeAlso({Aa.class, Aaa.class})
public class A
{
}

@XmlSeeAlso(Aaa.class)
public class Aa extends A
{
}

public class Aaa extends Aa
{}

And the WebService ..

@WebService
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, 
             use = SOAPBinding.Use.LITERAL, 
             parameterStyle = SOAPBinding.ParameterStyle.WRAPPED)
@Stateless
@RemoteBinding(jndiBinding=LookupConstants.CLIENT_MANAGER)
@Depends({LookupConstants.CLIENT_SERVICE_OBJECT_NAME})
public class ClientManagerBean implements ClientManager
{

@WebMethod
    public A getA(int i)
    {
        A a = null;
        switch(i)
        {
            case 1:
                a = new Aa();
                break;
            case 2:
                a = new Aa();
                break;
            case 3:
                a = new Aaa();
                break;
        }
        return a;
    }

}

This always returns just an object of type A on the Client side no matter what 
args I pass.
I do not know what I'm missing...


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4082301#4082301

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4082301
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to