If you are just want to set the response with PAYLOAD data formate, you need to 
build the response xml document yourself.
Please take a look at this unit test[1].

[1]https://svn.apache.org/repos/asf/camel/trunk/components/camel-cxf/src/test/java/org/apache/camel/component/cxf/CxfConsumerPayloadTest.java
  

--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, February 25, 2013 at 10:45 PM, Smith-John wrote:

> Hi,
>  
> I have a route that looks like
> from("cxf:cxfEndpoint?wsdlURL&dataFormat=PAYLOAD").unmarshal(jaxb).process(new
> Processor() {
> (here I do some app logic)
> }).to("bean:myBean");
>  
> The myBean just returns a string.
>  
> The wsdl of the cxf endpoint specifies the response with  
> <xs:complexType name="Response"><xs:sequence><xs:element minOccurs="0"
> name="return" type="xs:string"/></xs:sequence></xs:complexType>
>  
> So, the response should look like  
> <soapenv:Body>
> <sis:invokeResponse>
> <--Optional:-->
> <return>?</return>
> </sis:invokeResponse>
> </soapenv:Body>
>  
> How do I reach this?
> Of course I can add an other bean after the myBean to the route that adds
> the needed xml parts around the reponse. But can't this be done by camel?  
>  
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/cxf-response-tp5728106.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to