Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. WCF and WF
  4. Converting Businesss Object to Data Transfer Object

Converting Businesss Object to Data Transfer Object

Scheduled Pinned Locked Moved WCF and WF
csharpwcfbusinessarchitecturehelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Saiyed Alam
    wrote on last edited by
    #1

    Hello... I'm new to WCF. I'm working on a architecture where I need to convert my Business object class to Data Transfer Object class for accessing web service. At the same time I need to do the opposite. but I don't know how to this conversion? Any help would be appreciated, specially with code sample. Thanking in Advance Johnny

    C 1 Reply Last reply
    0
    • S Saiyed Alam

      Hello... I'm new to WCF. I'm working on a architecture where I need to convert my Business object class to Data Transfer Object class for accessing web service. At the same time I need to do the opposite. but I don't know how to this conversion? Any help would be appreciated, specially with code sample. Thanking in Advance Johnny

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      If I create a webservice without using WCF, the webservice just lets me define a normal business object, and define a method that takes that object. Does WCF make web services harder to use ?

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      S 1 Reply Last reply
      0
      • C Christian Graus

        If I create a webservice without using WCF, the webservice just lets me define a normal business object, and define a method that takes that object. Does WCF make web services harder to use ?

        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

        S Offline
        S Offline
        Saiyed Alam
        wrote on last edited by
        #3

        Thanks for your quick response. Actually i have to transfer the business object from my Desktop app to a remote WCF service .That's why i think i have to convert my business object to DTO and vice versa. How can i do this?

        M 1 Reply Last reply
        0
        • S Saiyed Alam

          Thanks for your quick response. Actually i have to transfer the business object from my Desktop app to a remote WCF service .That's why i think i have to convert my business object to DTO and vice versa. How can i do this?

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          If you're really using WCF for your "web service" then you shouldn't need to ask this question. I would recommend studying at least the fundamentals in the WCF Documentation[^]

          Mark Salsbery Microsoft MVP - Visual C++ :java:

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups