开发者

Problem with WCF and NTLM

Im trying to call an Axis Ws that has NTLM Security in it, im using BasicHttpBinding, the problem is that if i call it i get an e开发者_运维知识库rror saying:

The server did not provide a meaningful reply; this might be caused by a contract mismatch, a premature session shutdown or an internal server error.

I dont have any access to that server so i cannot look at how it is configured.

But if the call a Get with HttpWebRequest to that WS with my credentials too, and then call the ws it works fine.

Any idea on what i am missing?


Looks like you need to pass your credentials when calling the web service. Have you tried using impersonation or passing your credentials (like so)?

SomeService client = new SomeService();
client.Credentials = new NetworkCredentials("username","password");
...


You may want to check the following settings are set on your webserver web.config

  <system.web>
    <identity impersonate="true" />
    <authentication mode="Windows">
  </system.web>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜