HTTP GET and HTTP POST may be enabled by editing the Web.config file for the vroot where the Web service resides. The following configuration enables both HTTP GET and HTTP POST:
<configuration>
<system.web>
<webservices>
<protocols>
<add name="HttpGet">
<add name="HttpPost">
</add>
</add>
</protocols>
</webservices>
Alternatively, you can enable these protocols for all Web services on the computer by editing the
section in Machine.config. The following example enables HTTP GET, HTTP POST, and also SOAP and HTTP POST from localhost:
(http://support.microsoft.com/kb/819267)
Không có nhận xét nào:
Đăng nhận xét