[ 
https://issues.apache.org/activemq/browse/SMXCOMP-801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61741#action_61741
 ] 

Freeman Fang commented on SMXCOMP-801:
--------------------------------------

Hi,

Thanks for patch.

Fist of all, cxf se can pick up the correct operation from incoming messages 
based on the message payload and service model(build from wsdl or SEI).

If you encounter the problems that can't pick up correct operation, generally 
it's caused by the incoming message payload isn't correct based on servicemodel.

How you create interface Greeter2, I hope you generate it from wsdl, as 
manually write an interface with lots of annotations is error-prone, and one 
minor error can cause your problem.

Also, in your test case, the greetMe request isn't correct IMO, shouldn't it be 
two params?


Freeman

> Problems with multiple operations within the same endpoint
> ----------------------------------------------------------
>
>                 Key: SMXCOMP-801
>                 URL: https://issues.apache.org/activemq/browse/SMXCOMP-801
>             Project: ServiceMix Components
>          Issue Type: Bug
>          Components: servicemix-cxf-se
>    Affects Versions: servicemix-cxf-se-2010.01
>         Environment: Linux Ubuntu 10.04/ Java version "1.6.0_20"
>            Reporter: Julien Blass
>         Attachments: servicemix-cxf-se.patch
>
>
> In our project, we use the component servicemix-cxfse to invoke operations on 
> different endpoints, of which services are furnished by Pojo classes 
> annotated with JAX-WS annotations. Our Cxf-se endpoints are only configured 
> with a service and an endpoint name. Other attributes are default so we do 
> use JBI wrapper and do not use SOAP Envelop to invoke our services. In fact, 
> we use Camel route to exchange JBI message between different endpoints.
> In a particular case, we need to invoke several operations in the same 
> endpoint. The actual source code of component servicemix-cxfse seems not to 
> work correctly in this case, namely when an cxf-se enpoint expose several 
> binding operations, any operation can't be bound. In project 
> servicemix-cxf-se, we don't find any unit test that covers this case. We have 
> modified the source code corresponding to our need for the process to 
> succeed. 
> We modify the public method process and the private method findOperation of 
> CxfSeEndpoint class according the attachment and add some questions in 
> comment for understanding the source code.
> We provide a Junit test to demonstrate this issue, so in attachment we can 
> find test case CxfSeMultipleOperationsTest  which invoke operation GreetMe on 
> service Greeter2
> So please, could you validate our modifications or submit a patch for 
> resolving this issue.
> Thanks in advance for four help
> jbs

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to