Communication remarks between the wcf client and webservice

Source: Internet
Author: User

Http://www.cnblogs.com/yiyisawa/archive/2008/12/16/1356191.html wcf client communicates with webservice (-) modify the configuration file only and change the server's article if you want to transfer the wcf service or web service host to iis (the previous host is not in iis, but the service is temporarily run, and then take the temporary service address), there are several points to note:

1. When a wcf client is used to call a wcf service or web service, an issue occurs when the wcf client calls a web service:

The HTTP request is unauthorized with client authentication scheme 'anonus us'. The authentication header has ed from the server was 'negotiate, Kerberos, ntlm '.

Solution:

Add the following settings to the security settings in the configuration file binding of the wcf client. For details, see:

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

Code
<Security mode = "TransportCredentialOnly">
<Transport clientCredentialType = "Windows" proxyCredentialType = "Windows" realm = ""/>
<Message clientCredentialType = "UserName" algorithmSuite = "Default"/>
</Security>

 

2. When you browse webservice in iis, the Service Unavailable is highlighted in red.

Solution:

Internet Information Services (iis) Manager ---> web sites ---> virtual directory of a specific project --> right-click Properties ---> permissions:

1. Add the following permissions:

Iis_WPG

NETWORK SERVICE

Users (Yiyisawa \ Users) should be added based on the domain name, (looks like)

Internet Information Services (iis) manager ---> web sites ---> virtual Directory of a specific project --> right-click properties ---> properties --> Directory Security ---> Authentication and access control --> edit ---> select Enable anonynous access.

In addition, the I386 file is required during the IIS reinstallation process because the HOST is going to be sent to iis and the IIS fails:

Insert a system disk and boot it to the drive letter.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.