Well, I agree that contract first is a good option usually, though
the main drawback is that you have to learn wsdl and xml schema.
At the same time, both XFire and CXF completely supports the
contract first way (but also the code first if needed), and if look at
servicemix distribtion, one of the example is wsdl-first :-)
It shows how to expose a web service inside servicemix
using jaxws and a contract first approach.
So SWS is "contract first" approach is certainly not new ...
In ServiceMix, the role of a standard soap stack is split into two.
* a first part is handling the soap protocol and normalize the message
* the second part receives the normalized message and invokes
the POJOs (this is the part that converts xml to POJOs and the
opposite on the way back)
This separation is the key to decoupling in ServiceMix: you can use
the service inside the bus without needing to go over soap/http and
at the same time, you can expose the service over other transports
that are supported in JBI.
I must admit I haven't had a close look at SWS, but CXF has much more
feature than SWS at a glance, so I don't really see why you would spend
so much to rewrite something already exists and is already more powerful ;-)
Just my 2 cents...
On 8/24/07, larry hughes <[EMAIL PROTECTED]> wrote:
>
> Hi Guillaume,
>
> Actually the SWS is out of my control (another team has already begun using
> it). I'll eventually need to stick this into Servicemix as a Provider
> endpoint one way or another. In terms of the differences between CXF vs.
> SWS, it is the whole contract-first (SWS) vs. contract-last (CXF, JAX-WS,
> etc.) approach. There is a link here:
> http://static.springframework.org/spring-ws/site/why-contract-first.html
>
> I think there is a recent discussion about this on TSS as well. I'm fine
> with CXF but if developing web services is the bulk of the project, i.e. not
> just exposing existing Java services as web services, SWS is probably the
> best way to go. Maybe you have some thoughts on this?
>
> Larry
>
>
>
> gnodet wrote:
> >
> > What would be the advantages of using SWS compared to CXF ?
> > CXF is fully JAXWS compliant and has much more features that SWS afaik.
> > And you can also use spring to configure it ;-)
> >
> > Cheers,
> > Guillaume Nodet
> >
> > On Aug 23, 2007, at 7:13 PM, larry hughes wrote:
> >
> >>
> >> That's great to hear. On a side topic, I have another team that is
> >> planning
> >> on providing their web services using the new Spring Web Service
> >> framework.
> >> Any ideas on how this fits into the servicemix scheme of things (BC/
> >> SE)
> >> since SWS is basically a replacement of CXF?
> >>
> >> Larry
> >>
> >>
> >>
> >> gnodet wrote:
> >>>
> >>> ServiceMix and CXF are already integrated, though there is still some
> >>> work going on.
> >>> Two new components will be available in 3.2, a binding component and
> >>> a service engine.
> >>> The SE will be the newer version of jsr181, while the BC is based on
> >>> CXF and thus will have support for Reliable Messaging, WS-Policy,
> >>> etc...
> >>>
> >>> If you were using JAX-WS annotated POJOs in jsr181, you should be
> >>> able to upgrade to servicemix-cxfse without too much problems
> >>> hopefully.
> >>>
> >>> Cheers,
> >>> Guillaume Nodet
> >>>
> >>> On Aug 20, 2007, at 8:48 PM, larry hughes wrote:
> >>>
> >>>>
> >>>> I've recently read on the Xfire site that they'd recommend using
> >>>> CXF instead,
> >>>> probably due to the move of XFire's author to Mule. How does this
> >>>> affect
> >>>> servicemix? Will the next servicemix depend on CXF instead of
> >>>> XFire for
> >>>> jsr-181? Just wondering what the upgrade path will look like for
> >>>> WS down
> >>>> the road.
> >>>>
> >>>> Larry
> >>>> --
> >>>> View this message in context: http://www.nabble.com/CXF-integration-
> >>>> tf4300789s12049.html#a12241701
> >>>> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>>>
> >>>
> >>>
> >>>
> >>
> >> --
> >> View this message in context: http://www.nabble.com/CXF-integration-
> >> tf4300789s12049.html#a12297855
> >> Sent from the ServiceMix - User mailing list archive at Nabble.com.
> >>
> >
> >
> >
>
> --
> View this message in context:
> http://www.nabble.com/CXF-integration-tf4300789s12049.html#a12317115
> Sent from the ServiceMix - User mailing list archive at Nabble.com.
>
>
--
Cheers,
Guillaume Nodet
------------------------
Blog: http://gnodet.blogspot.com/