13
Building a webservice in Coldfusion9 and ASP.NET a look at opposing camps

Web services Coldfusion9 vs Asp.net

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

Page 1: Web services Coldfusion9 vs Asp.net

Building a webservice in Coldfusion9 and ASP.NET

a look at opposing camps

Page 2: Web services Coldfusion9 vs Asp.net

Hi, I'm Eric Fickes

Work : Lead Technologist @ Wiretree.com

Twitter : @ericfickes

Web : http://ericfickes.com

Page 3: Web services Coldfusion9 vs Asp.net

A tale of two web stacks

ADOBE 

FX+

{ CLOUD } +

IIS 7+

Coldfusion9 +

Hibernate +

MySQL

MICROSOFT

SL +

{ CLOUD } +

IIS 7+

ASP.NET+

nHibernate +

MySQL

Page 4: Web services Coldfusion9 vs Asp.net

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

Page 5: Web services Coldfusion9 vs Asp.net

Starting at the bottom, the database

MySQL 5x - one table to power them all!

Page 6: Web services Coldfusion9 vs Asp.net

ORM you glad Adobe didn't say banana?

Page 7: Web services Coldfusion9 vs Asp.net

nHibernate was not as simple

Page 8: Web services Coldfusion9 vs Asp.net

Coldfusion9 Webservice CFC

Page 9: Web services Coldfusion9 vs Asp.net

ASP.NET Webservice ASMX

Page 10: Web services Coldfusion9 vs Asp.net

Let's look at some code

and maybe a demo

Page 11: Web services Coldfusion9 vs Asp.net

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

Page 12: Web services Coldfusion9 vs Asp.net

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

Page 13: Web services Coldfusion9 vs Asp.net

Thank You

If you would like the source code for this demo, or have further questions, grab my card.