Don't follow contract first or last.  Follow what works best for the
software, you, future of the software and inter-operability.  Can you
develop with it quickly?  Does it have lots of bugs?  Stable?  Works with
other platform?  Extensible when you need it in the future?  Good
performance?  Easy to manage the code?

Contract first is really one of the dumbest idea, that works sometimes.  So,
I would use it when it works.  Basically, the WSDL is the one that dictates
everything.  The problem is that not all clients support any legal WSDL
throwing at it, making it less ideal.  So, at the end, the above paragraph
is what important.

So why it's dumb?  It's not the above alone.  The main problem is that if
people design WS to be portable between platforms (it's main idea), then why
would you need contract first or last?  Just code to WS, and the other party
following similar API would works.  Reality is that that is not the case.
So rise the contract first idea.

Many frameworks now use annotation to mark WS, so WSDL is not even the first
thing in the picture.  If that works, why bother with contract first?  There
are obviously other important factors than contract first.

TEST, TEST, TEST.


On Tue, Mar 15, 2011 at 2:43 AM, Dennis Sosnoski <[email protected]> wrote:

>  Hi Srinivas,
>
> I'll add that from what I know of Spring web services it uses an older
> technology which delivers much worse performance (with DOM-based handling,
> at least on the client side). It also has had problems with some basic SOAP
> features, such as the encoding types it uses on requests. I'd say the bottom
> line is that you're better off staying with one of the mainstream web
> services stacks for Java, such as Axis2. Most of these other stacks also
> work well with Spring.
>
> You can see my Java Web Services series on developerWorks for comparisons
> of the main open source stacks:
> http://www.ibm.com/developerworks/views/java/libraryview.jsp?search_by=java+web+services:
>
>   - Dennis
>
> Dennis M. Sosnoski
> Java SOA and Web Services Consulting<http://www.sosnoski.com/consult.html>
> Axis2/CXF/Metro SOA and Web Services 
> Training<http://www.sosnoski.com/training.html>
> Web Services Jump-Start <http://www.sosnoski.com/jumpstart.html>
>
> On 03/15/2011 07:10 PM, Sagara Gunathunga wrote:
>
> On Tue, Mar 15, 2011 at 12:09 AM, srinivasch <[email protected]> 
> <[email protected]> wrote:
>
>
>  My last application had Axis2 web service and used contract last approach. We
> had a new requirement for creating a web service and I used Spring Web
> service. A discussion came up in the meeting that why use Spring WS when we
> already have the required Axis2 libraries to create new web service. I was
> convincing my team because Spring has Contract first approach which is the
> best way of creating and all other best points mention in the chapter 2 of
> the documentation.
>
> But their point was Axis 2 also has contract first.
>
>
>  Axis2 supports equally for both contract first and code first
> approaches from its very early stages.
>
>
>
>  I would really appreciate anyone since I am really new to web services and
> still learning what is the difference between Axis 2 and Spring WS. I like
> an elaborate answer for our better understanding.
>
>
>  The first factor is spring-ws only supports for contract first while
> Axis2 supports for both approaches and much matured. Also Axis2
> supports higher number of specs than Spring-ws [1] does and provide
> better interoperability with other platforms.
>
> In case of data binding both frameworks supports for wide range of
> data bindings.personally I believe Axis2 ADB provides better
> performance and WSDL2JAVA tool significantly reduce your development
> time in contact first approach where Spring -ws does not provide such
> tool.
>
> You can use [2] [3] [4] [5] as references.
>
> [1] - http://wiki.apache.org/ws/StackComparison
> [2] - http://wso2.org/library/2873
> [3] - http://wso2.org/library/2935
> [4] - 
> http://today.java.net/article/2006/08/07/contract-first-web-services-apache-axis2
> [5] - http://axis.apache.org/axis2/java/core/docs/spring.html
>
> Thanks !
>
>
>
>  Thanks in advance.
> --
> View this message in context: 
> http://old.nabble.com/Axis2-vs-Spring-Webservice-tp31150976p31150976.html
> Sent from the Axis - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>

Reply via email to