You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Kaushik Paranjape <ka...@gmail.com> on 2009/10/05 08:22:40 UTC

Mapping qname not fond for package

Hi,

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 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