Hi
JAX-RS ContextResolver implementation can be registered as a provider
and CXF JAXBElementProvider will check it to create a custom JAXB context.
Can you try it please ?
Cheers, Sergey
On 09/01/15 15:12, Aaron Titus wrote:
Hi Sergey,
Thanks for the info. At this point in time, I can't switch to CXF 3.0 due
to dependencies with have on 2.X with other applications though we are
looking to do that at some point in the future. Can you suggest a way to
solve this in the 2.7 release? I think I could solve it if I could
construct a separate JAXBContext and pass it into WebClient, but I am not
sure how this can be done. There is a version of the WebClient.create(...)
method which takes a generic List<?> of providers, however the
documentation does not explain at all what you are allowed to send in here.
Can I create a JAXBContext instance and pass it in? If so, what mechanism
do I need to use to instantiate it? Can it be a Java7 JAXBContext instance
or do I need to use a cxf JAXBElementProvider or something else?
Thanks in advance,
Aaron
On Fri, Jan 9, 2015 at 9:47 AM, Sergey Beryozkin <[email protected]>
wrote:
Hi
Transformation feature will deal with updating namespaces.
In CXF 3.0.x client and server JAXBContexts are not intersecting...
may be we should update the Transformation feature to add attributes too
Sergey
On 09/01/15 04:35, Aaron Titus wrote:
Hello Everyone,
I have a REST service, created with CXF 2.7.11. Within this service, it
is
necessary to call out to another REST service, belonging to one of our
company vendors. I would like to use WebClient for this, but I am running
into some problems. The vendor REST service has a completely different
namespace, and also a different schemaLocation which is mandatory. As far
as I know, the schemaLocation needs to be added as a directive to the
marshaller. This is problematic because the webclient is picking up the
jaxb context from the REST service in which it is embedded. I have
searched
all over but there is very little documentation I could find on WebClient,
and nothing at all related to how you configure the marshaller inside of
it. Any help or suggestions would be greatly appreciated.
Thanks, Aaron
--
Sergey Beryozkin
Talend Community Coders
http://coders.talend.com/
Blog: http://sberyozkin.blogspot.com