[jboss-user] [JBossWS] - Re: Problem with inheritance and JBossWS

koganty do-not-reply at jboss.com
Fri Sep 7 19:01:27 EDT 2007


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



More information about the jboss-user mailing list