org.apache.cxf.interceptor.Fault: argument type mismatch

2009-02-19 Thread CXFbanda
Hi, I'm getting the following error when an incoming request (which contains XML body) maps to my method which takes an argument object for the corresponding xsd. org.apache.cxf.interceptor.Fault: argument type mismatch while invoking () with params [javax.xml.bind.jaxbelem...@e85825]. Any idea

Re: Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
Sorry for the cluttered message. Here I go again. Thanks for your replies. Having a custom @Context type is too much of a work for just to avoid extracting the auth data manually. (and I'm not sure how to do that either :-) ) ___ [thinking wild] Life can become so much easier

Re: Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
Thanks for your replies. Having a custom @Context type is too much of a work for just to avoid extracting the auth data manually. (and I'm not sure how to do that either :-) ) ___ [thinking wild] Life can become so much easier if the framework can allow "@HeaderParam along wi

Re: Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
quot;) on a method parameter of a service > implementation will extract the authorization header. > > Hth. > > Gabo > > CXFbanda wrote: >> Hi, >> >> I need to extract HTTP authorization header. >> I am able to do it using @Context HttpHeader injection by CXF

Re: Selecting default media type [...@producemime]

2009-02-18 Thread CXFbanda
Well, typos are the least of concerns as long as the info is useful (which are) :-) Thanks Sergey Beryozkin-2 wrote: > > Your're welcome, sorry for my regular portion of typos :-) > > - Original Message - > From: "CXFbanda" > To: > Sent: W

Extracting HTTP authorization header

2009-02-18 Thread CXFbanda
Hi, I need to extract HTTP authorization header. I am able to do it using @Context HttpHeader injection by CXF and then extracting Authorization info from that. However, i need to do that for all the resource mappings. Is there any way I can avoid replicating code in each method? Is there any way

Re: Selecting default media type [...@producemime]

2009-02-18 Thread CXFbanda
ruary 2009 14:33 >>> To: users@cxf.apache.org >>> Subject: RE: Selecting default media type [...@producemime] >>> >>> Hi >>> >>> In CXF 2.1.3 JAXB provider is considered less specific as it has no >>> explicit ProduceMime/ConsumeMime value

RE: Selecting default media type [...@producemime]

2009-02-17 Thread CXFbanda
onsumeMime values. In 2.1.4 you can explicitly > register JAXB provider > (org.apache.cxf.jaxrs.provider.JAXBElementprovider) and this will ensure > that Accept:*/* is mapped to JAXB... > > Cheers, Sergey > > -Original Message- > From: CXFbanda [mailto:cheta...@nortel.com] > Sent: 17 Febru

Selecting default media type [...@producemime]

2009-02-17 Thread CXFbanda
Hi, I have two methods in the resource class having @ProduceMime("application/json") & @ProduceMime("application/xml") Any incoming request with header - Accept:*/* is being mapped to json by default. However, I require it to be xml. Anyway, I can do that? I tried using @ProduceMime("*/*") on th