Thank you Willem, that works.
My call is now:
return template.requestBodyAndHeaders( this.groupsUri, new Object[0], headers, String.class );
and I get the expected response.

The "ping" operation is just a test one, but now it means I can make my test use much more of my main code.

Thanks again.

Jim

On 15/09/2011 14:11, Willem Jiang wrote:

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




Reply via email to