• 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文件:

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

  • 相关阅读:
    集合框架学习笔记<二>
    Notepad++ Emmet安装方法教程
    vi 常用命令行
    iOS应用架构谈 view层的组织和调用方案
    搭建ssh框架项目(二)
    eclipse安装主题插件(Color Theme)
    eclipse安装properties插件
    Eclipse安装SVN插件
    搭建ssh框架项目(一)
    J2SE基础小结
  • 原文地址:https://www.cnblogs.com/yiyisawa/p/1374735.html
Copyright © 2020-2023  润新知