I have added an issue to track this Christian
-----Ursprüngliche Nachricht----- Von: Willem Jiang [mailto:[email protected]] Gesendet: Dienstag, 18. Januar 2011 01:05 An: [email protected] Betreff: Re: AW: AW: Exception when accessing a CXF webservice using camel and http +1 for mapping the protocol header in the CamelTansport, we should reuse the piece of cxfBean work. On 1/17/11 9:44 PM, Christian Schneider wrote: > Ok .. sounds like the short term solution could be to use the cxfbean. Do you > think it makes sense to add this mapping to the camel transport? > I could try to make the mapping logic of cxfbean component usable for both > cases. > > Christian > > > -----Ursprüngliche Nachricht----- > Von: Willem Jiang [mailto:[email protected]] > Gesendet: Montag, 17. Januar 2011 14:19 > An: [email protected] > Betreff: Re: AW: Exception when accessing a CXF webservice using camel and > http > > On 1/17/11 9:05 PM, Christian Schneider wrote: >> Hi Willem, >> >> I used the Camel transport for CXF. Does it do the mapping differently? > > I don't think current Camel transport has this kind of mapping mechanism. It > just redirect the stream between Camel and CXF. > >> >> Christian >> >> -----Ursprüngliche Nachricht----- >> Von: Willem Jiang [mailto:[email protected]] >> Gesendet: Montag, 17. Januar 2011 13:53 >> An: [email protected] >> Betreff: Re: Exception when accessing a CXF webservice using camel and >> http >> >> Are you using cxfbean[1] component? >> The DefaultCxfBeanBinding[2] does the mapping work that you want. >> [1]http://camel.apache.org/cxf-bean-component.html >> [2]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/s >> rc/main/java/org/apache/camel/component/cxf/cxfbean/DefaultCxfBeanBind >> ing.java >> >> On 1/17/11 8:30 PM, Christian Schneider wrote: >>> When I expose a CXF webservice using camel like >>> from("servlet://service").to("cxf:...") >>> and access the service using the browser I get an exception in CXF >>> ReadHeadersInterceptor >>> org.apache.cxf.binding.soap.SoapFault: Error reading XMLStreamReader. >>> at >>> org.apache.cxf.binding.soap.interceptor.ReadHeadersInterceptor.handle >>> Message(ReadHeadersInterceptor.java:222) >>> Normally this interceptor is skipped in case of GET requests. >>> >>> I think the the header field CamelHttpMethod is not correctly mapped to >>> org.apache.cxf.request.method. I can try to fix this myself. I just wanted >>> to check if I only have some configuration problem first and it should work. >>> >>> Christian >>> >>> >> >> > > > -- > Willem > ---------------------------------- > FuseSource > Web: http://www.fusesource.com > Blog: http://willemjiang.blogspot.com (English) > http://jnn.javaeye.com (Chinese) > Twitter: willemjiang > -- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang
