Upload
eric-fickes
View
1.813
Download
1
Embed Size (px)
DESCRIPTION
My RMAUG ( http://www.rmaug.com/ ) presentation comparing web services done the Adobe way and the Microsoft way. Compared technologies : Coldfusion9 with Hibernate vs ASP.NET with nHibernate. There are some code screenshots along with coding tips for both stacks.NOTE : Jun Heider and I will giving an in depth comparison of the Adobe and Microsoft stacks at 360|Flex 2010 in San Jose. This talk will be more of an apples to apples since both sides will handle remoting, as well as the latest and greatest ORM and techniques that apply to each side. This preso does not talk about MS Remoting, or MS' Linq to SQL ORM functionality.
Citation preview
Building a webservice in Coldfusion9 and ASP.NET
a look at opposing camps
Hi, I'm Eric Fickes
Work : Lead Technologist @ Wiretree.com
Twitter : @ericfickes
Web : http://ericfickes.com
A tale of two web stacks
ADOBE
FX+
{ CLOUD } +
IIS 7+
Coldfusion9 +
Hibernate +
MySQL
MICROSOFT
SL +
{ CLOUD } +
IIS 7+
ASP.NET+
nHibernate +
MySQL
K.I.S.S. get's you CRUD webservicesCREATE - Create a new video object in the database READ - Return a collection of custom class Video to the client UPDATE - Update video record
DELETE – Remove video record
Starting at the bottom, the database
MySQL 5x - one table to power them all!
ORM you glad Adobe didn't say banana?
nHibernate was not as simple
Coldfusion9 Webservice CFC
ASP.NET Webservice ASMX
Let's look at some code
and maybe a demo
Coldfusion tips
• Don't forget to enable Flash Remoting ( CFAdmin )• Enable Robust Exception Information ( CFAdmin )• Build your code in a standalone test.cfm file• Refactor code into your CFC and enable output• You can test code in test.cfm• Then final testing in your Flex client • CFDUMP is your friend• Loading your webservice.cfc shows you classdocs• Install TamperData Firefox Addon
ASP.NET tips
• You can test your webservices in your browser!!! • nHibernate IList collections need to be wrapped • Silverlight needs clientaccess.xml and crossdomain.xml files
for webservices just like flash does.• If you want Remoting, but not .NET remoting, use WebORB• C# is awesome• Install TamperData Firefox Addon
Thank You
If you would like the source code for this demo, or have further questions, grab my card.