Webservices help please?

Discussion in 'ASP.NET WebServices' started by bytepushers, Dec 22, 2003.

  1. Hey all... i'm new to discountasp.net and i must say i'm impressed thus far. My question. How do i setup a webservice with my webspace? Do i just store the asmx file in one of my directories and then create the proxy on my client machine? Is it that easy? Thanks in advance to all answers.

    Bryan
     
  2. quote:How do i setup a webservice with my webspace? Do i just store the asmx file in one of my directories and then create the proxy on my client machine? Is it that easy? Thanks in advance to all answers.

    Bryan</blockquote id="quote"></font id="quote">

    Bryan,

    This is the way I use webservices (using Visual Studio 2003.NET):
    <ul>[*]Create your webservice (*.asmx) [*]Upload your dll and asmx file to your webspace[*]In your web-project, make a webreference to your newly created webservice (http://..../myWebservice.asmx)[*]Start using your own webservice ...[/list]
    So yes, it is that easily !
    Success

    --
    Steurm
    www.steurm.net/steurm
     
  3. Just as an addition this is what I have done also;


    I have created an application setting which stores the path to the asmx file, so when I am working on localhost
    this gets read out of the web.config and I set the URL to the webservice at runtime before I do any call.


    this means that when I upload the application I do not have to change anything, the only thing to remember is do not blow away your web.config when you upload the application which you dont need to do anyway and you
    live site will use your runtime Webservice and then when working locally you can call the one on your machine which also means you can debug it as well! If you need to.


    Michael
     

Share This Page