Hello,

I would like to use the Camel route to define the following workflow:

Invoke an operation AO1 on an external web-service A.

Transform the XML message result with an XQuery template “template.xquery”

Use the result of step2 as input for calling the operation AO2 of the same
service A.

 I’ve tried to do it as below:

 *from("jbi:endpoint:myENDPOINT")

//Step1

.to("jbi:service:urn:mySERVICE_A?operation={urn:mySERVICE_A}OperationA)

//Step2

.to("xquery://template1.xquery")

//Step3

.to("jbi:service:urn:mySERVICE_A?operation={urn:mySERVICE_A}OperationB)

.to("log: response");
*

This didn’t work for me, the invocation of the operation B on my service A
generates a bad request (error 400).

I’ve commented the step1
(.to("jbi:service:urn:mySERVICE_A?operation={urn:mySERVICE_A}OperationA)

And I put the XML message that I got after step2, as input of step3 : This
works

It seems that it is not possible to call more than one operation on the same
service!

Maybe my route is not correct.

I’m using the Camel 1.6 under ServiceMxi3.3

Any help or example would be appreciated.

Thanks,
Mostapha

Reply via email to