Impossible is nothing

记录在sharepoint工作中的经验

博客园 首页 新随笔 联系 订阅 管理

这个问题可能比较少的人碰到, 因为大多数MOSS项目都是基于Windows认证的, 如果是Form认证的话,那么调用moss 的web service将出现

http status 403 Forbidden errors"的错误。

 

解决方法:

1.  Add Web Reference:

http://localhost/_vti_bin/Lists.asmx    (命名SPWebLists

http://localhost/_vti_bin/Authentication.asmx  (命名SPWebAuthentication

 

引用下面代码放在需要访问Web service的页面中

 

 

Code

 

 

posted on 2009-05-21 10:46  Lordan  阅读(489)  评论(0)    收藏  举报