Developer Resources:

Customer Quotes:

This article will guide you through the process of creating and running a remoting-enabled Flex application using Flex/Flash Builder. At the end of the walkthrough you will have a Flex application communicating with a .NET object exposed through WebORB.

Run Flex/Flash Builder and select File -> New -> Flex Project.  The dialog window shown below will appear. Enter "SampleFlexToDotNetProject" as the project name. Make sure to select "ASP.NET" as the Application server type. Make other selections as shown below and click "Next >".

The next step is very important as it establishes the configuration paths. Select "Use Internet Information Services" and enter the paths for a weborb-enabled virtual directory. The paths shown in the image below assume WebORB is installed in the /weborb4 virtual directory (default location). The path for "Web application root" must point to the root of a physical directory where WebORB is installed. The same physical directory must have a corresponding virtual directory created in IIS. The second path (Web application URL) must be the URL of that virtual directory:

Click "Finish" to continue. Flex Builder creates an default (blank) Flex application.

Right click the project node in the "Flex Navigator" panel and open Properties. Select "Flex Compiler" and enter the following parameter into the "Additional compiler arguments" as shown in the image below (NOTE: the folder with the version number may be different, depending on the version of the product you have installed):

-services "c:\Program Files\WebORB for .NET\4.0\web-inf\flex\services-config.xml"

IMPORTANT: If you plan to use WebORB Real-time Messaging features like Data Management client synchronization, MSMQ integration, data push or video streaming, make sure to reference weborb-services-config.xml

Click OK to close the window.

You may receive the following error in the "Problems" window:

Channel definition, weborb.messaging.WeborbMessagingChannel, can not be found.

To remove the error, open project properties and select "Flex Build Path". Open the "Library Path" tab and click "Add SWC..". Use the Browse button to select to the following file (NOTE: The directory corresponding to the version number of the product may be different, depending on the version of WebORB you have installed):

/Program Files/WebORB for .NET/4.0/weborbassets/wdm/weborb.swc