开发者

Pockect PC WCF implement Windows authentication

I need to implement windows authentication on a windows Pocket PC 5.0 when connecting to the WCF service. Is it possible to let the user enter their credentials which can开发者_如何学Go then be passed to the WCF service for it to authenticate against?

I realize that pocket PC applications do not have an app.config where impersonation details can be put in


Figured this out. Had to change the security type in the WCF to Windows (from NTLM)

In the pocket pc application, I had to specify the service URL and create a network credential passing in the user details.

Works now :)

proxy.Url = "http://sds-ws65/MicrosoftDynamicsAXAif50/table1service.svc";
            proxy.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜