Results 1 to 13 of 13

Thread: WCF Serialization

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    May 2002
    Location
    fgh
    Posts
    332

    WCF Serialization

    Hello,

    I have to develop a project which uses WCF and Dotnet Desktop application.

    I have a Dotnet Class Library (DBClassLib) which functions for database activities and database is placed on remote server.

    I need to create a WCF application (DBWCF) which calls the above said class library for database access.

    WCF application will be referenced in the Dotnet Desktop Application(DBClient).

    I have gone thru some topics on serialization.

    Consider in my project, i have to add the details of a Customer such as his id, name, address, zip etc..., and there is a method in DBClassLib project to do this. ClassName : CustomerEntity CE

    This class has created like to get fields as properties. CE.name, CE.address, etc...

    So from WCF application, i will create object for DBClassLib and set the values like said above.

    Now what i am having doubt is data transmission from Desktop and WCF app.

    I can create a method in wcf app {getCustName(name,address,...)} which accepts name, address, zip etc as method parameters and set to CE.Name = name, CE.address=address, etc.

    Is the above way is fast and perfect or

    Create a seperate class (WCFCustomerClass WCC) in WCF application which will have properties like name, address etc and in the desktop application, the user needs to set WCC.name="", WCC.address="",... and pass it as serialization technique.

    Which one is perfect in the above...

    thankzzzzzzz
    Last edited by sureshvijayan; Jul 16th, 2009 at 07:24 AM.
    gh

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width