.NET
  Home arrow .NET arrow Dealing with .NET Enterprise Services: .NE...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Dealing with .NET Enterprise Services: .NET Remoting, Web Services and Service Components
By: Jagadish Chaterjee
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 5 stars5 stars5 stars5 stars5 stars / 13
    2006-02-08

    Table of Contents:
  • Dealing with .NET Enterprise Services: .NET Remoting, Web Services and Service Components
  • Working with the Remoting Client and Remoting Object
  • Working with a basic COM application
  • Working with a database-based COM application
  • Working with Web Services
  • Working with database based Web Services

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Dealing with .NET Enterprise Services: .NET Remoting, Web Services and Service Components


    (Page 1 of 6 )

    This article will give you a kick start for learning advanced concepts for .NET Enterprise services such as .NET Remoting, Web Services and Service Components (COM+).
    A downloadable file for this article is available here.

    All demonstration solutions have been developed using SQL Server 2000 Enterprise Edition and Visual Studio 2003 Enterprise Architect on Windows Server 2003 Standard Edition.  Please note that I didn’t really test the solution on any  other versions/editions of similar Microsoft products. 

    It has been a while since I contributed an article on “Building a Robust and Highly Scalable Distributed Architecture in VB.NET” which you can read at this link: http://www.aspfree.com/c/a/VB.NET/Building-a-Robust-and-Highly-Scalable-
    Distributed-Architecture-using-VB-NET/
    . In that article, I mixed all of the technologies together, or, to put it another way, I integrated them. Now in this article, I would like to provide samples of each of those technologies individually, showing them in ways that are not at all related each other.  The previous article gave you enough of an explanation about each of these technologies that I won't repeat myself.

    I strongly suggest you go to that link to read a brief overview on the technologies if you are not familiar with them.

    Working with the .NET Remoting Server

    .NET Remoting is simply a next generation DCOM.  Those who are familiar with DCOM, can simply consider .NET Remoting to be something like DCOM+.NET BCL + “some extras too.”

    For any Remoting application, there will generally be a server and client (apart from a Remote Object).  The Remoting server will continuously listen to the incoming requests of the Remoting client and pass the messages (or info) accordingly.  Let us go through the code for the Remoting Server.  You can skip to the next section, if you would like to view the definition of “Remoting Object” which is being used by this Remoting Server.

    Private Sub btnStart_Click(ByVal sender As System.Object, ByVal e
    As System.EventArgs) Handles btnStart.Click
            Dim chan As New TcpChannel(8085)
            ChannelServices.RegisterChannel(chan)
            RemotingConfiguration.RegisterWellKnownServiceType( _
                GetType(RemoteObject.HelloServer), _
                "SayHello", WellKnownObjectMode.SingleCall)
            MessageBox.Show("Server started succesfully...." &
    ControlChars.CrLf & "click OK to stop the server")
            ChannelServices.UnregisterChannel(chan)
        End Sub

    It is simply a Windows desktop-based application, which starts to listen to any request from the Remoting client.  The Remoting service (according to the above coding) listens at the 8085 port (or TcpChannel).

    More .NET Articles
    More By Jagadish Chaterjee


       · Hai, the article guides you in working with .NET enterprise distributed computing. ...
     

    .NET ARTICLES

    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC
    - The Windows Ribbon Framework
    - Markup Language for the Ribbon Framework
    - Visually Upgrade Your MFC Project
    - New Features for the Statusbar in MFC
    - Working with the Statusbar in MFC
    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 5 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek