Issue Details (XML | Word | Printable)

Key: MULE-3473
Type: Bug Bug
Status: Open Open
Priority: Critical Critical
Assignee: Dan Diephouse
Reporter: Andreas Guenther
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Mule

CXF requires serviceClass attribute in echo example which uses different interface than what component implements

Created: 20/Jun/08 04:27 PM   Updated: 12/Nov/08 08:59 PM
Component/s: Examples / Tutorials, Transport: CXF / XFire
Affects Version/s: 2.0.1
Fix Version/s: 2.1.x Backlog

Time Tracking:
Not Specified

Labels:
User impact: Medium
Effort points: 1


 Description  « Hide
Conversation with Dan:

File a JIRA and I'll do my best this next week to get rid of the ugliness. I agree its weird and we shouldn't have to show this in the examples. It was a rush job when we were getting 2.0.0 out.

Dan

On Fri, Jun 20, 2008 at 5:34 PM, Andreas Guenther <andreas.guenther@mulesource.com> wrote:

Dan,

Is this a workaround or real feature then? How about we introduce a new and custom component in the echo example after all or modify the EchoComponent to solve the issues. It's a bit confusing otherwise to see two different interfaces used and a concrete implementation on apparently just one. I believe that a new concrete implementation of the example interface, let's call it EchoComponent, under examples would make the serviceClass attribute obsolete because it then can be used in a component element. Something like the following is what I would expect how it would work:

<service name="EchoUMO">
<inbound>
<cxf:inbound-endpoint address="http://localhost:65082/services/EchoUMO"/>
</inbound>

<!-- Implements org.mule.example.echoEcho interface -->
<component class="org.mule.example.echo.EchoComponent"/>

</service>

Will the above work and is this how it's supposed to be or do we always have to specify the serviceClass (which apparently is an interface!) in the endpoint?

Thanks,
-Andreas

Dan Diephouse wrote:

If you look at the EchoComponent it has a bunch of extra methods. CXF was picking up those methods, so I created a service class that is used to construct the WSDL which didn't have those methods.

I believe Axis is having similar issues; see this issue from Angelo:

http://mule.mulesource.org/jira/browse/MULE-3295

Regards,
Dan

On Fri, Jun 20, 2008 at 12:51 AM, Andreas Guenther <andreas.guenther@mulesource.com <andreas.guenther@mulesource.com>> wrote:

I am wondering why two components are specified in the
echo-example in 2.0, serviceClass attribute and echo-component
element? Is this a CXF specific thing?

-Andreas



 All   Comments   Work Log   Change History   Transitions   FishEye      Sort Order: Ascending order - Click to sort in descending order
Andreas Guenther added a comment - 20/Jun/08 04:28 PM
Dan,

Feel free to change the summary

Thanks,
-Andreas


Dan Diephouse added a comment - 28/Jun/08 04:34 PM
Actually, I figured out why I did this for real now . Turns out GET access to the service doesn't work with the Aegis binding, it only works with JAX-WS. So you can't do GET http://localhost/services/Echo/echo/text/hello. Hence the JAX-WS interface.

I can probalby fix this in CXF, but it will take some time to get a release out...


Daniel Feist added a comment - 10/Jul/08 07:20 AM
Dan, Can we rename serviceClass to serviceInterface? (deprecating serviceClass)

Ross Mason added a comment - 03/Sep/08 11:08 PM
Dan D, was this fixed in CXF 2.1?