Developing Service-Oriented AJAX Applications

Developing Service-Oriented AJAX Applications
Authors
Daniel Larson
ISBN
0735625913
Published
12 Nov 2008
Purchase online
amazon.com

Delve into the fundamental architectural principles and techniques for developing service-oriented AJAX applications for the enterprise. This guide offers a code-heavy, example-based approach to learning how to write a modern services API and an AJAX front end that can easily be extended, reused, and integrated by third parties. Focusing on Microsoft technologies and enterprise servers, including Microsoft SharePoint(r) Server 2007, ASP.NET AJAX, and Microsoft .NET Frameworks 2.0, 3.0, and 3.5,

Page 2 of 2
  1. Editorial Reviews
  2. Customer Reviews

Customer Reviews

said
This book has been extremely helpful. I have a lot of experience with Asp 2.0, Ajax and xslt - but the 3.5 WCF stuff is totally new to me. Very well written, excellent examples and exactly what I've been looking for. Thank You.

avanhorn said
I can't say enough about how pleased I am with this book.

With what seems like a flood of Ajax frameworks lately coupled with an "explosion" of new MS technologies over the past year (WCF, LINQ, etc), I have been struggling lately with how to effectively bring web apps into the web 2.0 world without compromising the use of the robust MS/ASP.NET
framework technologies I've grown to depend on.

With the introduction of WCF and the ASP.NET Ajax framework, the solution became clear. Unfortunately, these technologies (WCF in particular) are extremely robust and flexible, which can make it hard to distill a best-practices approach.

Dan's book does just that. Taking a direct head-on approach to the task of building real world applications via these technologies, he guides you steadfastly from end-to-end and point-to-point through territory that can sometimes be foggy to say the least when navigated on your own.

In clear and concise language, this book does not, as another reviewer has said, try to "overshoot its aim", but rather it gives you a crystal clear no-nonsense approach to solving the architectural challenges of today's Ajax web applications using the Microsoft platform.

This book brings together the key pieces of about ten other books on your shelf to make sense of the end-to-end "big picture", while still giving you the hands-on detailed implementation information and guidance.

Highly recommended and a definite go-to-guide when coding.

ely said
In Daniel Larson's latest book, Developing Service-Oriented Ajax Application on the Microsoft Platform, Dan gives us a deep look on what it means to develop client based applications with JavaScript, the MS Ajax Library, and Windows Communication Foundation (WCF). This book is about Service Based Ajax development, which means developing JavaScript components running in the web browser that call back into services on the web server using XML HTTP requests using no postbacks. There is no coverage of the Update Panel or the Ajax Control Toolkit, so if you are looking for a book on those subjects, look elsewhere.

The first few chapters give a basic introduction to service oriented architecture, the MS Ajax Library, and using WCF to create the services. I was not familiar with the MS Ajax Library or WCF, but these chapters are great introductions to both. While this book is not comprehensive on WCF, Dan does a great job of explaining the basics and gives enough knowledge to get started, which is all that is required in this book. I would recommend that you have some familiarity with writing object based JavaScript, because while Dan does explain what is going on to a point, someone not experienced in creating classes and instances in JavaScript might be lost.

I felt the book dragged in the middle chapters, as more parts of the MS Ajax Library are covered, some of which are covered to some extent in the earlier chapters. It seemed like Dan was repeating himself to some amount, but probably for good reason as understanding the core library is crucial to developing the client based components. I was ready to start developing some real stuff, but was stuck on reviewing the basics. Leave it to me to get impatient and jump in over my head.

The real meat begins in chapter seven with developing client based components, which are actual chunks of reusable JavaScript code you can use in your applications. This continues through chapter nine, and in chapter ten Dan goes over some of the nice new features that came in Visual Studio 2008 SP1, persisting browser history in the Ajax framework. Chapter eleven is a nice bonus chapter on extending SharePoint with Ajax, which I just glossed over since I do not do SharePoint development.

At times I found the code in the chapters hard to follow, and there are a few occasions that code referenced is not actually in the book. I recommend downloading the source code from the website and use it to follow along with the examples in the book. The code presented in the later chapters follows best practices and guidelines, and never leaves the user with "demo ware". All the examples I tried worked great in IE7, FF3, and Chrome beta. I also recommend using Firebug to help diagnose any errors you might have in the JavaScript.

Overall, I highly recommend this book to anyone who is looking to develop service oriented applications with the Microsoft Ajax Library. It provides a pure Ajax approach that is going to be the driving force of web applications in the future. Was that a Postback? I don't think so.

gift_mansion said
Software and web application developers who want to stay on the leading edge must move to a new paradigm every few years. Today's shifting landscape, with rich clients, enterprise integration and the desire for decoupled services, requires a new way of thinking and a new architecture. In his book, Daniel Larson does an excellent job of presenting a new paradigm for web application development using the .NET Framework.

As the title plainly states, the author shows us how to put together a service-oriented AJAX application, however, the key to the book is that he presents an architecture upon which we can immediately start building applications using this new paradigm. He starts with the fundamentals of AJAX and Windows Communication Foundation (WCF), the two technologies that he uses as building blocks for the rest of the book. He hits the right notes for the developer who is new to these technologies, but reinforces important concepts for developers who have already taken the plunge in these areas. As he moves forward, he expands on the usage of Javascript within Ajax and the Microsoft Ajax library. I found especially useful the coverage he provides of building a class library in Chapter 7, "Building an Ajax Class Library with Components". The concepts presented allow you to create a true object-oriented model with your Javascript code so that the end result is a rich class library that can be reused.

Importantly, the book does not overshoot its aim. It does not try to completely cover WCF, but goes into it just enough to get you building more robust applications. No area is glossed over, so that you don't quite `get it' even after reading it and putting it to use. He makes a good case for using the REST service model, and provides alternatives to WCF if you don't want take that step right away.

While the book has plenty of code samples, the book lacks pictures and diagrams that could have enhanced the learning process, especially by showing how data flows in this architecture and how the various components interact. Hopefully, the 2nd edition will improve on this. But this doesn't detract from the fact that the author has suitably covered this particular subject.

said
As developers we should all be very, or at least somewhat, familiar with the Microsoft Patterns and Practices documentation. If you are not, let me rephrase my previous statement ... YOU SHOULD BE. With that in mind, that is the context of which I believe Daniel Larson has written his latest book, Developing Service-Oriented AJAX Applications on the Microsoft Platform. The book is, as stated by the publisher, very code-heavy which in my opinion is the way books and documentation should be written. I learn more from seeing the "written word" than just reading about it in a bunch of fluff-n-stuff paragraph writing. Good job Daniel on not so much fluff, but a whole lot of stuff.

Daniel is known for his Microsoft SharePoint expertise. Daniel has stepped out beyond that and really shown us what some of the best patterns for architectural design are for service-oriented applications. He starts us out in the first three chapters by discussing the "who" and "what" so that we have a good foundation which to build upon. The middle three chapters then begin the "why" and "where," which to me were some of the most important sections. I learned more from those three chapters. And then for the dessert, Daniel gives us the "when" and "how" in the last five chapters.

The one aspect to Daniels book for which I am most grateful for are the "Case Study" examples that he has included in each chapter, beginning with Chapter 8, Building AJAX Controls. I have always found that this type of example can really drive home the information that is being provided to the reader. In my own experience as a college and Secondary-level instructor, the most useful technique for student learning is the ability to apply the information to a "Real World" example or situation. This allows the students to apply the information and develop what Jean Piaget, and other Constructivism theorists, consider accommodation and assimilation. The students are allowed to learn and incorporate the new information into new or pre-existing knowledge bases. I wish there could have been more "Case Study" examples included in the previous chapters to Chapter 8. Not necessarily as thorough as the examples from Chapter 8 on, but just to include some personal experiences from Daniel's own work or others. There are "Tips," "Notes," etc. that are included, but just not quite the same. Hence, this is why I am giving the book four stars instead of five.

Daniel wrote in the Introduction, "This book is written to explain the service-oriented AJAX architecture pattern - and is not a comprehensive reference to the complete Microsoft AJAX Library, ASP.NET, and WCF" (p. 18, para. 5). While this may not be an all-comprehensive reference, I believe that Daniel has given us the foundation that we, as developers, can build quite easily upon reading this book. Where you go from here is completely up to you, but Daniel has given you the foundation required to begin developing the service-oriented applications. By keeping this book as a handy reference, you can utilize much of the information included to search for certain aspects, techniques, or sequences you wish to pursue to gain further understanding and development.

I would suggest this book for anyone who has the desire to begin exploring the position of building or extending service-oriented applications as this will be a good starting off point. You will learn the various Microsoft technologies that are available and how to get them to work together to create richer and stronger applications. After this book, you can continue on to get more in-depth coverage of some of the aforementioned technologies. Daniel has opened the door for you by writing this book. It is up to you to read, understand and then step through the door onto a pathway that will lead you to becoming a developer you have only thought about becoming.

You might also like...

Comments

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.” - Rich Cook