Hi all ! I am new to XFire, and I hope this question hasn't been asked over and over, but i could not find an answer searching on mailing lists and website.
I have a library, foo.jar, that I cannot modify. This library contains classes that are used as parameters/return types for a web service. Most of these classes do not follow the JavaBean spec, so the XFire's BeanType does not work. I have annotated a method of the web service in this way: @WebMethod public @XmlReturnType(type = FooType.class, name = "Foo", namespace = "http://foo.com/ns/foo") Foo getFoo() throws FooException I have created a FooType class (in a different package than class Foo) and it's invoked by XFire. Now, the web service has 20+ methods, and class Foo is referenced many times (and there are 50+ Foo-like classes), so I would like to avoid to annotate every place where Foo (or one of its peers) is referenced. Also, the whole stuff should work in JDK 1.4. Finally, the question is: is there a way to tell XFire to read a bunch of mapping files (or - maybe better - one mapping file), containing all the Foo and its peers mappings, from a place that it's not the same directory where class Foo resides ? Basically in foo.jar I have - for example - com.foo.bar.Foo.class. My application has my web service in app.jar, com.app.ws.FooService, and I would like a mapping file in app.jar, of the form: <mappings> <mapping> <!-- here map Foo --> </mapping> <mapping> <!-- here map Bar --> </mapping> <!-- here map other 40-50 classes --> </mappings> Simon -- http://bordet.blogspot.com
