How to invoke webservice via timer in blueprint DSL ?

Need to call webservice' start method , the method has two string parameter
userid and command

could anyone give me some hints?


java.lang.IllegalArgumentException: Get the wrong parameter size to invoke
the out service, Expect size 2, Parameter size 1. Please check if the
message body matches the CXFEndpoint POJO Dataformat request.
        at
org.apache.camel.component.cxf.CxfProducer.checkParameterSize(CxfProducer.java:239)[347:org.apache.camel.camel-cxf:2.9.0.fuse-70-084]


########blueprint ##
<camelcxf:cxfEndpoint id="triggerService"
                          address="${trigger.service.url}" 
                          serviceClass="com.foo.TriggerService">
    </camelcxf:cxfEndpoint>     

<route id="timeTrigger">
            <from uri="timer:test?period=120000" />
            <setHeader headerName="operationName"> 
                <constant>start</constant> 
            </setHeader> 
            <setHeader headerName="name"> 
                <constant>fuse-esb</constant> 
            </setHeader> 
            <setHeader headerName="name"> 
                <constant>command</constant> 
            </setHeader> 
            <setBody>
            </setBody>
            <to uri="cxf:bean:triggerService" />
        </route>


############ the web service interface ####################
@WebService
public interface TriggerService {

    @WebMethod(operationName = "start")
    @WebResult(name = "status")
    public String start(@WebParam(name = "userid") String userid,
            @WebParam(name = "command") String command);

}




--
View this message in context: 
http://camel.465427.n5.nabble.com/How-to-invoke-webservice-via-timer-by-blueprint-DSL-tp5747746.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to