Hi,

I think there is some misunderstanding.
If you use cxf consumer, you needn't specify the operation.
Cxf consumer will always parse the incoming soap message and find correct operation according to the wsdl model. The discussion thread you mentioned here is that they use other endpoint but not the cxf bc consumer to send jbi message to cxf provider, in this case, you need specify the operation name, since from the jbi message, we can't exactly extract the operationName.

Freeman

Lukasz L. wrote:
Guys, currently (AFAIK) CXF Provider requires targetOperation to be specified on
incoming message exchange in case when there are more than one operation on
target service. See
http://cwiki.apache.org/SM/discussion-forums.html#nabble-td19142533 for the
problem.
(case with one operation was fixed
https://issues.apache.org/activemq/browse/SM-1225),
Don't you think that CXF Provider should determine the operation based on
payload? If the WSLD uses document/literal style this is how it should work.

How would you implement dynamic invocation (CXF Consumer -> CXF Provider)
when you don't know in advance which operation client wants to invoke?
Having endpoint (on consumer) per operation is not a nice solution because
it in fact splits one service into many. On the other hand implementing mapping (root element -> operation) somewhere
on ESB is redundant because it is already done in WSDL (and it's very ugly
solution).

Any thoughts? Was that already discussed somewhere and I missed that?

Reply via email to