从Biztalk Solution中的类库调用webservice时出现HTTP 401 Unautorised错误 [英] HTTP 401 Unautorised Error when calling webservice from Class Library in Biztalk Solution

查看:222
本文介绍了从Biztalk Solution中的类库调用webservice时出现HTTP 401 Unautorised错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好..
我在Biztalk解决方案中从类库调用webservice时遇到问题。实际上,当我使用默认凭据时它工作正常,但是当我使用任何其他帐户时它会出错 -
请求失败,HTTP状态401:未经授权
实际上我正在更新Infopath表单库,因为我写了webservice访问表单库。
所以授予我完全控制表格库和inetmgr上的第二个用户帐户我也给了第二个用户帐户的权限。
仍然没有工作。
请指导我正确的方向

谢谢
Sandeep

解决方案

你好Sandeep,

你可以收集承载Web服务的IIS服务器的日志,以检查用于调用WS的帐户并且无法通过身份验证。确保此帐户需要Web服务目录上的正确NTFS文件系统权限。

最近的日志文件可以在\ System32 \ LogFiles \W3SVC [n] \目录中找到(这里是网站ID,可以通过单击"网站"文件夹在右侧面板中查看IIS)。搜索结果,谢谢,结果,文君搜索结果

Hi All..
I have problem in calling webservice from class library in Biztalk Solution . Actually when i used Default credentials its working fine but when i user any other account it gives error 

The request failed with HTTP status 401: Unauthorized 
Actually i am updating Infopath form library, for that i wrote webservice to access form library.
So to give authorisation i gave full control to 2nd user account on form library and in inetmgr also i gave permissions to 2nd user account.
Still its not working.
Pls guide me in correct direction

Thanks 
Sandeep

解决方案

Hi Sandeep,

You can gather the logs of the IIS server that hosts the web service to check which account is used to call the WS and fails to pass the authentication. Make sure this account requires proper NTFS file system permission on the web service directory.

The recent log files can be found in \System32\LogFiles\W3SVC[n]\ directory (n here is the Site ID which can be viewed in the right panel by clicking Web Sites folder in IIS).

Thanks,
WenJun


这篇关于从Biztalk Solution中的类库调用webservice时出现HTTP 401 Unautorised错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆