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. General Programming
  3. C#
  4. .net 2.0 - developing webservice

.net 2.0 - developing webservice

Scheduled Pinned Locked Moved C#
csharptutorialquestion
2 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.
  • F Offline
    F Offline
    fmardani
    wrote on last edited by
    #1

    Hi, Using .Net 2.0 I have created webservices inside a project. These services are in a solution on my machine which I am developing. To reference these services, I use Add Web Reference, webservices in this solution (Because the services are saved in my local machine). At what stage should I place these webservices in the virtual directory of a webserver? Should these webservices be developed in a virtual directory on my local machine as opposed to in the local C drive as it is now? The intension is that others be able to see these webservices as they are being developed. For an example, from my machine to reference one of the webservices, this is the path I use: http://localhost:2144/inTest.asmx does this mean that other developers to reference this webservice should use: http://MyMachineName:2144/inTest.asmx ?? Thanks

    C 1 Reply Last reply
    0
    • F fmardani

      Hi, Using .Net 2.0 I have created webservices inside a project. These services are in a solution on my machine which I am developing. To reference these services, I use Add Web Reference, webservices in this solution (Because the services are saved in my local machine). At what stage should I place these webservices in the virtual directory of a webserver? Should these webservices be developed in a virtual directory on my local machine as opposed to in the local C drive as it is now? The intension is that others be able to see these webservices as they are being developed. For an example, from my machine to reference one of the webservices, this is the path I use: http://localhost:2144/inTest.asmx does this mean that other developers to reference this webservice should use: http://MyMachineName:2144/inTest.asmx ?? Thanks

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

      fmardani wrote:

      Should these webservices be developed in a virtual directory on my local machine as opposed to in the local C drive as it is now?

      A webservice will always be on your hard drive, it will simply be in a directory that is mapped to a folder in IIS. VS.NET is mapping it for you, it has a web server built in. You should probably leave it where it is, so you can debug it and work on it. Deploy it when you move it to a machine it will run on.

      fmardani wrote:

      does this mean that other developers to reference this webservice should use:

      They should probably reference it locally on their machines. If you want it somewhere that people can run it, but not work on it, then you may want to set up a machine to host it.

      Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

      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