Sunday, December 29, 2013

webservice

[System.Web.Script.Services.ScriptService]
 add in webservice

In web.config

<webServices>
   <protocols>
    <add name="HttpGet" />
    <add name="HttpPost" />
   </protocols>
  </webServices>


=========
     <system.webServer>
    <handlers>
            <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
            <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>
        </handlers>
    </system.webServer>

1 comment: