• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

When should web service be developed using code first method and when should contract first method?

 
Ranch Hand
Posts: 2513
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
There are 2 ways of creating a web service.?When should a web service be developed using code first method and when should we choose contract first method for developing the web services.?

thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My response would be "White board and Use Case diagrams first" then what ever you are comfortable with based on what the use cases and diagrams suggest.

Bill
 
Ranch Hand
Posts: 1376
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Depends upon your design.
Both of these approaches have their advantages and disadvantages.
You need to weigh these advantages and disadvantages to decide the approach.

For my usage, I found mix approach to be better (starting with WSDL and Java both).

~ abhay
 
Monica Shiralkar
Ranch Hand
Posts: 2513
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

then what ever you are comfortable with based on what the use cases and diagrams suggest.



Thanks. Is it a question of just being comfortable with or there are other factors too why 2 ways exist to create Web services.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Monica. Shiralkar wrote:

then what ever you are comfortable with based on what the use cases and diagrams suggest.



Thanks. Is it a question of just being comfortable with or there are other factors too why 2 ways exist to create Web services.



Since "web service" covers a HUGE number of possible applications from a simple lookup to an Amazon sized shopping site, there is no simplifying answer to your question. I would say there is a practically infinite number of paths to follow so pick what is comfortable for you.

Bill
 
Monica Shiralkar
Ranch Hand
Posts: 2513
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks
 
Rancher
Posts: 989
9
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Monica. Shiralkar wrote:There are 2 ways of creating a web service.?When should a web service be developed using code first method and when should we choose contract first method for developing the web services.?

thanks


Prefer to start with a well defined contract if you are starting from scratch. Code first approaches are usually done because there is already code written that is tested and working (usually already in production) and now needs to be integrated with some other applications via webservices.
 
Can't .... do .... plaid .... So I did this tiny ad instead:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
reply
    Bookmark Topic Watch Topic
  • New Topic