I am developing a web service from an existing framework. Our framework has an abstract base class in package base and a derived class in package derived. A service class creates an instance of the object derived but in the signature it is returning base type. Here are the code snippets:
Base Class:
package base;
public abstract class base
{
//some code
}
Derived class:
package derived;
import base;
public class derived extends base
{
//some code
}
Service class
public class Service
{
public base getObject()
{
return new derived();
}
}
When I call getObject method on service class I get an error mapping qname not fond for package: derived on the server side.
If base and derived classes are in the same package. Everything works perfectly fine.
Could someone please help me out.
Thanks and regards,
-Kaushik