.Net Integration with Adobe Flex/Actionscript Application

.Net Integration with Adobe Flex/Actionscript Application.

1]Download and Install WebORB Application

Download the Free Enterprise Edition running in Development Mode (does not require a license key). You’ll have access to all of the Enterprise Edition features, except that the free download is limited to 5 IP addresses and requires IIS for operation. Be sure to familiarize yourself with some of the documentation included with the product. Alternatively, you can find helpful resources in the Developer Den.

2]Create Class file in .NET [C# ,VB,J# or ASP] Application

The following example demonstrates basic invocation of a method in a .NET class. Consider the following very basic .NET class: The class can be compiled in any of the following Visual Studio solution types: Class Library, Web Application or Web Service.

C# Code :

namespace Example{
class BasicService {
public String SayHello()
{
return “hello world”;
}}}

Flex client Code:

The following code can be used to invoke the SayHello() method shown above from a Flex client:

var ro:RemoteObject = new RemoteObject( “GenericDestination” );
ro.source = “Example.BasicService”;
ro.SayHello.addEventListener( ResultEvent.RESULT, gotHelloResult );
ro.SayHello();

public function gotHelloResult( result:ResultEvent ):void
{
Alert.show( “Server responded – “ + result.result );
}

Register Destionation Id with remoting-config.xml file in BlazeDS

3]Deployment of application

WebORB supports simple drag-and-drop deployment of user applications. To deploy application assemblies into WebORB, simply copy the DLL files into the /bin folder of the WebORB-enabled ASP.NET application. WebORB automatically exposes user classes for Flex and Flash remoting clients, as well as for AJAX, Silverlight and now WCF.

4] Data Management/Database Integration

WebORB support Flex Data Management Services (FDMS)

WebORB currently implements a subset of the FDMS unctionality. Application can perform all four basic database operations (CRUD) using the mx.data.DataService API. Data destination classes can be registered in data-management-config.xml. Client applications can use mx.data.DataService class to perform fill and sync operations. The current release does not support FDMS client synchronization and conflict resolution; however, these features are available in the Flex ActiveRecord implementation

5]Data type Mapping

WebORB map client-side objects to the corresponding .NET types

The WebORB client/server type mapping system is one of the most powerful features . WebORB intelligently adapts client-side objects to any corresponding server type. For example, if a Flex or Flash client sends a linear array, the server side type can be any linear .NET collection or a custom array of application objects. Additionally, developer can override default type mapping mechanism and map specific .NET types to their corresponding ActionScript classes.

About ashokabhat

I am a C,C ,JAVA,Adobe Flex,.NET Programmer Currently working as a Software Developer
This entry was posted in Uncategorized. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s