asmx Web Services "The test form is only available for requests from the local machine" 解决方法

 
asmx Web Services "The test form is only available for requests from the local machine" 解决方法
 

   於 web.config 加上
 
   <configuration>
      <system.web>
         <webServices>
            <protocols>
               <add name="HttpSoap"/>
               <add name="HttpPost"/>
               <add name="HttpGet"/>
               <add name="HttpPostLocalhost"/>
               <add name="Documentation"/>
            </protocols>
         </webServices>
      </system.web>
   </configuration>