locked
Reg Best Approach for WCF Implementation for an ERP Web Application RRS feed

  • Question

  • Hai,

    I am designing the ERP Web Application. I would like to know the best approach for the WCF implementation.

    I have 2 design. can anybody help me which is best or tell me any other best approach for the same.

     

    First Approach

    Web Server(Server-1)        

    UI Layer(Web Application) - (Layer-1)      

    UI Handler(Class Library) - (Layer-2)   

    Web Service(Server-2)       

    WCF Service (WCF Service Application)      

    Contract Client(Class Library)      

    Contract (Class Library)      

    Biz Operation Layer (Class Library)      

    DB Layer (Class Library)      

    Biz Entity (Class Library) Data Flow

     

    UI -> UI handler -> Web Service -> Contract Client -> Biz -> DB

    Here Each Call is Binded to one Method in Each Layer.

     Second Approach

    Web Server(Server-1)

    UI Layer(Web Application) - (Layer-1) 

    UI Handler(Class Library) - (Layer-2)   

    Web Service(Server-2)       

    WCF Service (WCF Service Application)      

    Biz Layer (Class Library)      

    DB Layer (Class Library)      

    Biz Entity (Class Library)

    Here We expose only one method for each module as a one Web Service. Each module will call the corresponding Method of their service(Here we have Swith Case to delegate the call to corresponding Method Call), which intern call the corresponding Buisenss layer and DAL.

    UI -> UI handler -> Web Service -> Biz -> DB

    Which is best or Is there anyother best approach available for WCF implementation.

     

    Thanks in Advance.

    Palanivelrajan 

    Friday, December 10, 2010 2:24 AM

All replies

  • The second approach suites fine. But you need add a class library for dal inside the second approach. Because dal is the only layer that interacts with the database.

     


    PHIJO MP
    Friday, December 10, 2010 5:34 AM
  • Regarding the WCF service : You can create a single class library for the wcf service only. You can use wcf service assembly for hosting wcf service. Makes sure that all the assemblies are installed in the GAC or the bin folder before hosting the wcf service.

    Please do create proof of concept and thoroughly test your software application before you come to any conclusion.

     


    PHIJO MP
    Friday, December 10, 2010 5:41 AM
  • Web Server(Server-1)        

    UI Layer(Web Application) - (Layer-1)   - HTML5 or Android Apps or Windows Apps or Silverlight   

    Web Server(Server-2)        

    UI Handler(Class Library) - (Layer-2)    - MVC

    Web Service(Server-3)       

    WCF Service (WCF Service Application)    

    WCF Class Library       

    DB Layer (Class Library)      

    Entity (Class Library) Data Flow

    Database Server(Server-4)      

    DB

    Wednesday, July 17, 2013 8:49 AM
  • What are your non-functional requirements? What kind of throughput are you expecting?

    http://pauliom.wordpress.com

    Friday, July 19, 2013 2:02 PM