InfoQ

News

Web Service Software Factory v3 now supports DSLs for designing Contracts

Posted by Hartmut Wilms on Apr 11, 2007 08:46 AM

Community
.NET
Topics
Web Services ,
Domain Specific Languages
Tags
Software Factories ,
Visual Studio ,
WCF

Don Smith announces the first community drop of the Web Service Software Factory (WSSF) v3. The factory supports a model-driven approach for designing and implementing web services. WCF service contracts and data contracts can now be modeled in a visual Domain-Specific Language (DSL).

The model-driven approach is a huge improvement over the wizard-based approach of the current v2 release. Today the factory allows designing a contract by adding members or operations within wizards. When finishing a wizard appropriate code will be generated. The downside of this approach is that all information concerning the service contract or data contract model are lost. For instance if you want to add members to a data contract you will have to start the wizard process all over again and finally generated code based on a complete new model.

The v3 alpha includes designers for modeling contracts already. All model information are stored, which allows to easily extend or change contracts and generate appropriate code at any time. In addition the designers provide a visual representation of your services and data contracts and their relations.

Don Smith summarizes these new features along with other improvements as follows:

  • Now Visual Studio has a memory about your decisions. In v2 you place your decisions in wizards. In addition to models, there are still wizards, but it's the model that "remembers" so you can generate code anytime you like.
  • Now you have a visualization of the application you are building. The designers provide this. Right now there are 2 designers/models. The first screen shot below shows the one for service contracts and the one after that shows data contracts.
  • Now you can delay the platform decision (WCF/ASMX/etc) and the language decision (C#/VB/etc) until as late as you like (way after you define all the service, message, and data interfaces.
  • With this version there is also no assumption that you have already defined the service contract before you start using the factory. You can either approach the solution from a capability perspective (dropping operations on the service contract designer) or from a data perspective (dropping data contracts on its designer).

The contract designers are an important and necessary feature. The process of designing a contract in the wizard-based approach is a very time-consuming endeavor. In addition the fact that you have to repeat the whole wizard process in order to apply (minor) changes is annoying, to say the least.

No comments

Watch Thread Reply

Educational Content

Bindings, Platforms, and Innovation

This presentation focuses on the Internet and separating myth from fact, history from the future, and the mundane from the imaginative. Bob Frankston presents a vision of what could and should be.

Orchestrating Long Running Activities with JBoss / JBPM

This article explores the use of JBoss and jBPM to implement design solutions that effectively address the issue of orchestrating long running activities.

Neo4j - The Benefits of Graph Databases

This presentation covers the use of graph databases as an optimal solution for data that is difficult to fit in static tables, rapidly evolving data or data that has a lot of optional attributes.

Realistic about Risk: Software development with Real Options

This session introduces Real Options and shows how it can help in running your project. Real Options is a decision-making process that can be used to manage risk.

Communication Flexibility Using Bindings

This article discusses the use of bindings on services and references (including the instance of non-configured bindings) as the means to implement SCA communications in a Web and SOA environment.

Writing DSLs in Groovy

After a short introduction to DSLs, Scott Davis plays with the keyboard showing how to approach the creation of a DSL by typing working snippets of Groovy code that get executed.

Scaling Agile with C/ALM (Collaborative Application Lifecycle Management)

IBM Rational and InfoQ present, Scaling Agile with C/ALM, an eBook showing organizations how to become “finely tuned software delivery machines” by enabling team integration and scaling.

Concurrent Programming with Microsoft F#

Amanda Laucher presents a real life enterprise application written in F#. She shows actual code snippets, explaining design decisions and suggesting how to use some of the F# constructs.