Oh, If you are using the JAX-WS Provider API[1], the MESSAGE and PAYLOAD
are not same with camel-cxf data formate.

The JAX-WS 2.0 specification provides two new APIs which make it
possible for web services to operate at the XML message level. In
working with web services and XML, programmers use an implementation of
the Service Endpoint Interface (SEI) to provide a Java level abstraction
that hides the details of converting between Java methods and
corresponding XML. The Provider Dispatch API give us a way to
work directly with XML rather than with Java abstractions.

So If you want to POJO bound , you need to use the SEI instead of
Provider to set up your cxf endpoint in camel.

Willem

GLD wrote:
> I tried in Message , and pojo mode.
> The Pb is that on the provider class:
> In this class, we have to 
>  - put annotations to define the mode
>  - throw an exception in the body of the method. This class is here just to
> host annotations for configuration purpose
>   The annotaiton Mode contains only values MESSAGE and PAYLOAD. there is no
> "POJO" mode.
> 
> Am I wrong in my analysis?
> What sould I do?
> 
> I'm at home and I don't have the code on this machine so I cannot give you
> more details.
> I'll be back next week.
> 
> Regards.
> 
> 
> willem.jiang wrote:
>> Hi,
>>
>> Can you show me the camel-cxf endpoint's configuration or the DSL of
>> your router?
>> I guess you are using the "MESSAGE" data format which only just get the
>> message from the transport layer and don't pass the message through the
>> CXF's logical interceptors.
>>
>> Willem
>>
>> GLD wrote:
>>> Hi all,
>>>
>>> I tried to use a CXF Camel behind the CXFSerlvet to consume my web
>>> service
>>> and inject them in my Camel routes.
>>>
>>> It works fine but......
>>> In my processors, when try to lookup the request data
>>> (exchange.getIn()...),
>>> I always got A SOAPMessage object I would have liked to have the POJO
>>> bound
>>> to my WSDL definition.
>>>
>>> In other words, I got a generic DOM like object I I would have liked a
>>> bound
>>> object.
>>>
>>> Is it possible?
>>>
>>> Regards.
>>> Guillaume
>>>
>>>
>>
>>
> 

Reply via email to