How to configure webservice to use someother extension than .asmx

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • =?Utf-8?B?U2FqaXQ=?=

    How to configure webservice to use someother extension than .asmx

    Hi,
    I am trying to create a .net webservice, but i dont want the webservice to
    be accessed using .asmx extesnion .I should be able to accesses the
    webservcie using the url something like http://localhost/myservice.sac

    I have tried configuring the web.config of the webservice like this
    <httpHandlers >
    <add path="*.sac" verb="*"
    type="System.We b.Services.Prot ocols.WebServic eHandlerFactory ,
    System.Web.Serv ices, Version=2.0.0.0 , Culture=neutral ,
    PublicKeyToken= b03f5f7f11d50a3 a"
    validate="false " />
    </httpHandlers>

    <buildProviders >
    <add extension=".sac " type="System.We b.Compilation.W ebServiceBuildP rovider" />
    </buildProviders>

    And also configured the iis to accept .sac extension to point
    aspnet_isapi.dl l

    When I run it . It shows the “helloWorld† webmethod link page, but does not
    give me the xml response back .

    Any suggestions as to how to make this work .

  • Spam Catcher

    #2
    Re: How to configure webservice to use someother extension than .asmx

    =?Utf-8?B?U2FqaXQ=?= <sajitvnair@hot mail.comwrote in
    news:F4070FD6-BC18-4E43-85D3-5ADFC1B28895@mi crosoft.com:
    When I run it . It shows the ƒ ohelloWorldƒ webmethod link page, but
    does not give me the xml response back .
    That's perfect isn't it? You loaded the page in IE correct... that's the
    standard page that is displayed to non-web services clients.

    --
    spamhoneypot@ro gers.com (Do not e-mail)

    Comment

    Working...