FORM验证的WEB服务页面,无法使用POST方式执行其中的函数.该如何处理
FORM验证的WEB服务页面,无法使用POST方式执行其中的函数...
<authentication mode= "Forms ">
<forms name= ".ASPXFORMSAUTH "
loginUrl= "SignInService.asmx "
cookieless= "UseCookies "
timeout= "40 ">
</forms>
</authentication>
<authorization>
<deny users= "? "/>
</authorization>
web.config中配置form验证如上
在SignInService.asmx中有个默认的HelloWorld函数
执行返回的字符串HelloWorld
该函数使用SOAP方式调用没有任何问题
当使用POST方式时如下
POST /WebService/ClientUser/SignInService.asmx/HelloWorld
返回的是页面跳转信息 请问该问题如何解决
------解决方案--------------------
UP
------解决方案--------------------
machine.config里配置了允许http post协议吗?
<!-- machine.config -->
<configuration>
<system.web>
<webServices>
<protocols>
<add name= "HttpSoap "/>
<add name= "HttpPost "/>
<add name= "HttpGet "/>
<add name= "Documentation "/>
</configuration>
<authentication mode= "Forms ">
<forms name= ".ASPXFORMSAUTH "
loginUrl= "SignInService.asmx "
cookieless= "UseCookies "
timeout= "40 ">
</forms>
</authentication>
<authorization>
<deny users= "? "/>
</authorization>
web.config中配置form验证如上
在SignInService.asmx中有个默认的HelloWorld函数
执行返回的字符串HelloWorld
该函数使用SOAP方式调用没有任何问题
当使用POST方式时如下
POST /WebService/ClientUser/SignInService.asmx/HelloWorld
返回的是页面跳转信息 请问该问题如何解决
------解决方案--------------------
UP
------解决方案--------------------
machine.config里配置了允许http post协议吗?
<!-- machine.config -->
<configuration>
<system.web>
<webServices>
<protocols>
<add name= "HttpSoap "/>
<add name= "HttpPost "/>
<add name= "HttpGet "/>
<add name= "Documentation "/>
</configuration>