Hi
Can you move the <camel:bean beanType="CharsetProcessor"></camel:bean>
before the <camel:to uri="xslt://toSoap.xslt" />.
As you are using the dataFormat MESSAGE, you should prepare the stream
with a right encoding.
On 2/17/11 4:41 PM, Bill wrote:
Hello, thanks your reply.
I modify my code:
<camel:to uri="xslt://toSoap.xslt" />
<camel:bean beanType="CharsetProcessor"></camel:bean>
<camel:to uri="cxf:bean:serverEndpoint?dataFormat=MESSAGE"
/>
CharsetProcessor.java :
public void process(Exchange exchange) throws Exception {
exchange.setProperty(Exchange.CHARSET_NAME, "utf-8");
}
but it's unnormal as before.
--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog: http://willemjiang.blogspot.com (English)
http://jnn.javaeye.com (Chinese)
Twitter: willemjiang