get virtual directory url from webservice class

Discussion in 'ASP .Net Web Services' started by Deepak_DOTNET, May 15, 2008.

  1. Hi

    This is .NEt webservice related query ..

    How to get virtual directory url (to which webservice is configured) inside
    webmethod of webservice class ?
    I have webservice running.I want to get virtual directory url
    say "http://localhost/CaseWork "
    within webmethod of webservice.

    is there any API to fecth the url of webservice from within webmethod ?

    Thanks.
    Deepak
    Deepak_DOTNET, May 15, 2008
    #1
    1. Advertising

  2. Deepak_DOTNET

    Prem Guest

    You wil the get virtual directory path by using Server.MapPath("\Mainapp\sub
    folder")


    "Deepak_DOTNET" wrote:

    > Hi
    >
    > This is .NEt webservice related query ..
    >
    > How to get virtual directory url (to which webservice is configured) inside
    > webmethod of webservice class ?
    > I have webservice running.I want to get virtual directory url
    > say "http://localhost/CaseWork "
    > within webmethod of webservice.
    >
    > is there any API to fecth the url of webservice from within webmethod ?
    >
    > Thanks.
    > Deepak
    >
    >
    Prem, Jun 10, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jack Wright
    Replies:
    1
    Views:
    458
    sonikchopra
    Apr 19, 2005
  2. Steve Singer
    Replies:
    0
    Views:
    525
    Steve Singer
    Feb 15, 2005
  3. Dave
    Replies:
    1
    Views:
    9,720
    Steven Cheng[MSFT]
    Oct 24, 2005
  4. =?Utf-8?B?SmVmZiBCZWVt?=

    physical path to virtual path under virtual directory

    =?Utf-8?B?SmVmZiBCZWVt?=, Aug 1, 2007, in forum: ASP .Net
    Replies:
    4
    Views:
    1,020
    Eliyahu Goldin
    Aug 1, 2007
  5. rockdale

    include virtual in virtual directory?

    rockdale, Sep 3, 2008, in forum: ASP General
    Replies:
    3
    Views:
    429
    rockdale
    Sep 4, 2008
Loading...

Share This Page