views:

362

answers:

2

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

A: 

For deploying the webservice I created a .aar file and copied it to /repository/services/.
For client I used java2wsdl (ADBClient) to create stubs and used it to connect to server.

Kaushik
A: 

For deploying the webservice I created a .aar file and copied it to /repository/services/.
For client I used java2wsdl (ADBClient) to create stubs and used it to connect to server.

Kaushik