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
  1. Home
  2. Database & SysAdmin
  3. Hosting and Servers
  4. Update existing desktop C# application as a webservice

Update existing desktop C# application as a webservice

Scheduled Pinned Locked Moved Hosting and Servers
csharpwcfdesigntestingtools
3 Posts 2 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.
  • A Offline
    A Offline
    aks
    wrote on last edited by
    #1

    I have a regular C# desktop GUI application providing regular windows interface. WCF is not used for supporting these interfaces, since it mainly working as a standalone desktop application, with a lot of data involved in data transfer. But I have used WCF with netNamedPipeBinding for UI automation. Now I would like to call these interfaces from a web page also. So in my understanding 1. I have to host my desktop application as WCF web service ( with httpBinding and need o provide a new contract for the interfaces). 2. Call the existing I/Fs from the new interface class. Please correct me if wrong.

    aks

    W 1 Reply Last reply
    0
    • A aks

      I have a regular C# desktop GUI application providing regular windows interface. WCF is not used for supporting these interfaces, since it mainly working as a standalone desktop application, with a lot of data involved in data transfer. But I have used WCF with netNamedPipeBinding for UI automation. Now I would like to call these interfaces from a web page also. So in my understanding 1. I have to host my desktop application as WCF web service ( with httpBinding and need o provide a new contract for the interfaces). 2. Call the existing I/Fs from the new interface class. Please correct me if wrong.

      aks

      W Offline
      W Offline
      Wayne Gaylard
      wrote on last edited by
      #2

      Can't you extract the data layer from the desktop application, and use it to create a WCF service. Then you could use it in both web and desktop applications.

      Everyone dies - but not everyone lives

      A 1 Reply Last reply
      0
      • W Wayne Gaylard

        Can't you extract the data layer from the desktop application, and use it to create a WCF service. Then you could use it in both web and desktop applications.

        Everyone dies - but not everyone lives

        A Offline
        A Offline
        aks
        wrote on last edited by
        #3

        Thank you Wayne. I am a beginner in web development. My real concern is whether I would go for a WCF service, REST service or a Web Api. My primary intention is to use the service in a client web application. Later I also planning to use it from different devices like tab/mob.

        aks

        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