
mark@themidnightcoders.com
themidnightcoders.com
Note: This article was created based on Flex 2. Minor changes in the description and code may be necessary before it can be applied to Flex 3.
There are several well-known approaches for integrating Adobe Flex and .NET. Primarily the approaches center around REST and XML web services. The Flex remoting approach of using the RemoteObject MXML or API is the least known and understood, however. The benefits of remoting over other alternatives are tremendous. They include significant performance improvements, reduced development costs, and a more natural client/server integration.
This article gives an overview of integrating a Flex client application with a remote .NET class. Additionally, it reviews sample .NET code that you can deploy in an ASP.NET application and expose as a Flex remoting service. Finally, the article demonstrates how to create a Flex client application and invoke a remote method on the deployed .NET class using the RemoteObject MXML/ActionScript API.
The solution demonstrated in this article uses WebORB for .NET, a product by Midnight Coders, which facilitates connectivity between Flex and .NET. WebORB functions as a gateway between Flex clients and .NET objects. Using WebORB, your Flex applications can use the standard remoting API to communicate with .NET.
Mark Piller is the founder and Chief Architect of Midnight Coders, an innovative and forward-thinking company specializing in RIA integration technologies, professional services and training. Mark has over 15 years of software development experience. For the past five years he has been specializing in building software infrastructure products designed to integrate Flex, Flash, and AJAX applications with a variety of backend systems, including .NET, Java, PHP, and Ruby on Rails. Mark is very passionate about ease-of-use of software and prides himself in creating technologies that clearly demonstrate that quality.