zoukankan      html  css  js  c++  java
  • wcf client与webservice通信备注

    http://www.cnblogs.com/yiyisawa/archive/2008/12/16/1356191.html wcf client与webservice通信(-)只修改配置文件而改变服务端 一文中如果要将wcf service或web service host 到iis中去的话(之前没有host 到iis中去,只是临时运行service,然后取临时服务地址),有几点需要注意的地方:

    一.当共用一个wcf client 调用wcf service or web service时,会在wcf client 调用web service会出现issue:

    The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'Negotiate,Kerberos,NTLM'.

    解决方案:

    在wcf client的配置文件的绑定中安全设置加上以下设置,即可成功调用。详情参见:

    http://www.kodyaz.com/blogs/software_development_blog/archive/2008/02/25/849.aspx
    Code

     二.在iis中浏览webservice时出现大红色的Service Unavailable。

    解决方案:

    Internet Information Services(iis) Manager--->web sites ---> 具体项目的虚拟目录-->右键属性--->permissions:

    1.添加以下权限:

    iis_WPG

    NETWORK SERVICE

    Users(Yiyisawa\Users)这个要根据域名来添加,(貌似)

    Internet Information Services(iis) Manager--->web sites ---> 具体项目的虚拟目录-->右键属性--->properties-->Directory Security--->Authentication and access control-->edit--->选中Enable anonynous access 即可。

    另:因为要HOST到IIS中去,期间iis出故障,重装IIS,重装过程中出现需要I386文件:

    插入一张系统盘,引导到盘符下即可找到。

  • 相关阅读:
    kali linux之wireshark/tcpdump
    kali linux之netcat
    kali 插耳机没声音
    php代码审计10审计会话认证漏洞
    php代码审计9审计反序列化漏洞
    php代码审计8审计文件上传漏洞
    Python opencv 形态学
    图像与轮廓检测-轮廓检测
    Python操作Excel,openpyxl模块,画折线图
    Pthon强制删除非空文件夹
  • 原文地址:https://www.cnblogs.com/yiyisawa/p/1374735.html
Copyright © 2011-2022 走看看