Feeds

Consume .NET services without Silverlight

Adobe Flex comes through

Providing a secure and efficient Helpdesk

Unfortunately my application failed with a fault message: "Security error accessing url". Running the application in debug mode got me a more explicit message: "Denied due to lack of policy file permissions". Although I was using a local web server, Flex considered it to be a different domain. I had to add a crossdomain.xml file to the web application explicitly giving permission for cross-domain use. Silverlight is equally cautious, but currently gives a less helpful 404 error if it cannot find a suitable policy file.

After that, everything worked. A few lines of code later, and my Flex app could also create and delete rows in SQL Server, via same WCF web service.

Building a CRUD app for Flex

Flex client, meet .NET service

In its online help, Adobe remarks that: "SOAP is often very verbose and heavy across the wire, which can result in higher client-side memory requirements and processing time."

It is likely true, and it would be interesting to test. Another concern is that large amounts of wrapper code can make debugging difficult, in the event of subtle SOAP compatibility issues. On the other hand, the ability to create Flex clients that seamlessly interoperate with existing .NET web services is a real advantage. Further, provided you don't peer too closely at the innards, Visual Studio does a good job of simplifying web service implementation.

What about Silverlight versus Flex? Silverlight 2 is in beta, and still lacks a visual designer unless you wheel out Expression Blend, whereas FlexBuilder has this built-in.

On the Silverlight side, using a WCF web service is a little easier, as you would expect from a single-vendor stack, and I suspect its performance is better. That said, and leaving aside the large amount of wrapper code, which Flex generated, the code in my simple client ended up similar in both.

Given that I was initially skeptical whether this would work at all, it is a good result for Adobe's client; it also suggests that for many projects either one will do.®

Internet Security Threat Report 2014

More from The Register

next story
Microsoft on the Threshold of a new name for Windows next week
Rebranded OS reportedly set to be flung open by Redmond
SMASH the Bash bug! Apple and Red Hat scramble for patch batches
'Applying multiple security updates is extremely difficult'
Business is back, baby! Hasta la VISTA, Win 8... Oh, yeah, Windows 9
Forget touchscreen millennials, Microsoft goes for mouse crowd
Apple: SO sorry for the iOS 8.0.1 UPDATE BUNGLE HORROR
Apple kills 'upgrade'. Hey, Microsoft. You sure you want to be like these guys?
ARM gives Internet of Things a piece of its mind – the Cortex-M7
32-bit core packs some DSP for VIP IoT CPU LOL
Lotus Notes inventor Ozzie invents app to talk to people on your phone
Imagine that. Startup floats with voice collab app for Win iPhone
prev story

Whitepapers

Providing a secure and efficient Helpdesk
A single remote control platform for user support is be key to providing an efficient helpdesk. Retain full control over the way in which screen and keystroke data is transmitted.
Intelligent flash storage arrays
Tegile Intelligent Storage Arrays with IntelliFlash helps IT boost storage utilization and effciency while delivering unmatched storage savings and performance.
Beginner's guide to SSL certificates
De-mystify the technology involved and give you the information you need to make the best decision when considering your online security options.
Security for virtualized datacentres
Legacy security solutions are inefficient due to the architectural differences between physical and virtual environments.
Secure remote control for conventional and virtual desktops
Balancing user privacy and privileged access, in accordance with compliance frameworks and legislation. Evaluating any potential remote control choice.