John Wright <john.wright <at> dealchecker.co.uk> writes:

> 
> Could anyone help me out with this? I don't know how to tell which XML 
> binding is being used (though it looks like Aegis in the generated source?)
> 
> Thanks
> 
> >> John Wright wrote:
> >>> Is there a way to force XFire to return an instance of a subclass 
> >>> from a method defined as returning the superclass?
> >>>
> >>> I've seen a few posts on this topic, but couldn't seem to find any 
> >>> definite workarounds or a patch. Unfortunately, I have no control 
:
:

Hi,

look at your services.xml under META-INF/xfire/

If you are using JaxB there should be something like:

<service>
   ...
   <serviceFactory>org.codehaus.xfire.jaxb2.JaxbServiceFactory
   </serviceFactory>
</service>

I think I have the same problem, but made it a little step further.
I solved the problem for the client by adding a 

        List list = new ArrayList();
        list.add("com.mycompany.mypackage");
        service0.setProperty(JaxbType.SEARCH_PACKAGES, list);

in the create0() method of the generated client.

I am still struggling to configure the same thing on the serverside
using the services.xml. See my post about polymorphism from yesterday.

regards

Steve





---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to