After Using @XmlSeeAlso only difference I found on generated WSDL was There was complextype name b and c which I don?t get without using @XmlSeeAlso. I have used wsconsume to create the web service artifacts of the generated wsdl and my client code looks like this:
MyWebService obj=new MyWebService();
B b=new B();
System.out.println("ClassName:"+obj1.getClassName(aobj)); //return com.d2.client.A
One thing is that on generated bean of class A there is no @XmlSeeAlso annotation, Does it makes any different?.
Or is there any other way to solve this problem without using @XmlSeeAlso?