WCF vs WebService

This post quickly explains difference between WCF & WebServices.

1. Protocols:

  • Web service supports HTTP via SOAP.
  • WCF supports HTTP, TCP,MSMQ, UDP , Named Pipe and many custom formats  SOAP, JSON, REST etc

2. Security:

  • Web Service provides only transport level security.
  • WCF supports Transport Level , Message Level & Data Level Security.

3. Hosting:

  • Web Service can be hosted in IIS only
  • WCF  can be hosted on IIS, WAS- (Windows Activation Server) , Managed Windows Service. Also it can be self hosted ( windows form , console app )

4. Migration:

  • Any .net distributed applciation can be easily migrated to WCF with very fewer changes.
  • Not easily possible in Web Service.

5. Serialization:

  • In order to serialize a web service we need to explicitly specify serialization attributes using  XML Serialization
  • WCF incorporates  Serialization by default for exposed methods using WCFSerialization.

ActiveX Explained

This post provides a quick overview of ActiveX.

ActiveX are Extension of OLE.  Primarily defining how information would be shared by applications. ActiveX focus is on connected environment particularly World Wide Web. Microsoft added ActiveX support to Internet Explorer (IE 3.0) in 1996, It would download certain ActiveX for websites to enhances user experience. It has more control to windows operating system, thus it is more prone to associated security risks. ActiveX is only supported by Microsoft Operating Systems.

Dynamic Data Exchange (DDE) Explained

This is a quick overview of DDE – Dynamic Data Exchange.

Windows applications often require to exchange information with multiple application instances or even with different application instances. These applications may be running on a single machine or on several machines in a network environment. Several standard protocols have been developed to address these requirements. This communication is referred as interprocess communication.

DDE – Dynamic Data Exchange is among earlier versions of such data transfer protocols. It sends data to & from applications. This protocol can be used for one time data exchange or progressive data exchange. DDE was first introduced in 1987 & since it uses Windows Messaging Layer, therefore it still works in modern versions of Microsoft operating systems.

DDE – supports several Data Exchange formats & custom formats could be defined for specialized inter-process communications.

MS Office Web Apps : A new dimension of maintaining Artifacts

“Oops mate… do I really need to download this document when all I need to read is just the summary section”

How many of us have gone through that kind of experience? Perhaps at-least once by every single MS office user we know.

Realizing how product dynamics are changing, companies are becoming more web-centric than ever.

MS office Web App team has launched “Office Web App Viewer” leveraging the access anywhere concept for MS Office based artifacts. The idea revolves around web users who would be able to view publicly accessible documents without actually downloading it which leads more freedom to users.

These documents may include Word, Excel or Power point formats. Imagine how it would revolutionize the way content is made available for web-audience. For instance bloggers would use OWV (office web viewer) links instead of regular download links (or both) on their blogs to cover more audience.

How it works:

“Links to download documents are converted to Office Web Viewer Links”

All these documents actually go to Microsoft Skydrive Cloud storage; hence each OWV link is a link to cloud.

Advantages:

  1. It’s Free.
  2. One OWV link will work for all Computers / Devices & OS Platforms.

How to get a Office Web Viewer App Link

I have a link to a PowerPoint document that is publicly accessible.

https://prosarfraz.files.wordpress.com/2013/04/mongodb_twitter_webapi_semi.pptx

Now I would convert it to OWV Link by putting http://view.officeapps.live.com/op/view.aspx?src=  just before my publicly accessible URL.

Office Web Viewer Link: http://view.officeapps.live.com/op/view.aspx?src=https://prosarfraz.files.wordpress.com/2013/04/mongodb_twitter_webapi_semi.pptx

Notice how seamless experience it is.

Happy Artifact-ING.

Powerpoint Presentation on “Twitter & MongoDB Integration with MVC4 WebAPI”

This is the power-point slide that i used to deliver my talk on “Twitter & MongoDB Integration with MVC4 WebAPI” at Microsoft Karachi this month

Downloadable Link : MongoDB_Twitter_WebAPI_semin

Incase you don’t want to download the file but still like to view the show 🙂 try this Office Web Viewer Link: http://view.officeapps.live.com/op/view.aspx?src=https://prosarfraz.files.wordpress.com/2013/04/mongodb_twitter_webapi_semi.pptx

In-case you wonder how Office Web Viewer works Read this.