HTTP (HTTPS ではなく) で消費される Web サービスを作成し、NTLM/Windows 認証を使用しようとしています。残念ながら、その「完璧な」組み合わせは見つからないようです。何を試しても、Windows 認証を使用すると、常に HTTPS を使用するように強制されます。また、HTTP を使用すると、Windows 認証のすべての試行が無視されるようです。
これまでの app.config は次のとおりです。
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<system.serviceModel>
<bindings>
<basicHttpBinding>
<binding name="wsSoap" closeTimeout="00:01:00" openTimeout="00:01:00"
receiveTimeout="00:10:00" sendTimeout="00:01:00" allowCookies="false"
bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
maxBufferSize="65536" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered"
useDefaultWebProxy="true">
<readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
maxBytesPerRead="4096" maxNameTableCharCount="16384" />
<security mode="Message">
<transport clientCredentialType="Windows" proxyCredentialType="None" realm="" />
<message clientCredentialType="UserName" algorithmSuite="Default" />
</security>
</binding>
</basicHttpBinding>
</bindings>
<client>
<endpoint address="http://xyz/xyz/xyzws.asmx" binding="basicHttpBinding"
bindingConfiguration="xyzwsSoap" contract="xyzws.xyzwsSoap"
name="xyzwsSoap" />
</client>
</system.serviceModel>
</configuration>
また、basicHttpBinding の代わりに wsHttpBinding を使用して新しいバインディングを作成しようとしましたが、それもうまくいきませんでした。誰かが私たちを正しい方向に向けることができますか?