Hi Willem,

I used the Camel transport for CXF. Does it do the mapping differently?

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/src/main/java/org/apache/camel/component/cxf/cxfbean/DefaultCxfBeanBinding.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.handleMessage(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

Reply via email to