Can you try to set the message with new object array with a length 0 ? Like this exchange.getIn().setBody(new Object[0]).
On 9/15/11 6:13 PM, James Talbut wrote:
Hi, I have to call a web service with an operation that maps to: public java.lang.String ping(); When I try to call it using a productTemplate I keep getting: Get the wrong parameter size to invoke the out service, Expect size 0, Parameter size 1. Please check if the message body matches the CXFEndpoint POJO Dataformat request. I've tried calling with a null body and without specifying a body at all, but it still generates the same error. Is there any way I can call this operation? Thanks Jim
-- Willem ---------------------------------- FuseSource Web: http://www.fusesource.com Blog: http://willemjiang.blogspot.com (English) http://jnn.javaeye.com (Chinese) Twitter: willemjiang Weibo: willemjiang