Thursday, June 17, 2010

To Enable The Service To Envoked From Remote Machine.

If we would like to invoke the service from other machine, by default, it would display the message "The test form is only available for requests from the local machine."

To enable the Service to be invoked from remote machine, we need to add the following settings to the Web.Config file of the Web Service Application.


<system.web>
     <webServices>
           <protocols>
                <add name="HttpGet"/>

                <add name="HttpPost"/>  
           </protocols>
     </webServices>
</system.web>


Credit : Renugopal A.P.

1 comment:

  1. Pankaj......thanks for your credit.
    I am expecting more posts from you. Don't stop this.

    ReplyDelete