且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从.net桌面应用程序调用安全的Java Web服务

更新时间:2021-11-30 00:12:34

您将不得不改变服务的http绑定例如



You will have to alter the http binding of your service such as

  httpBinding.Security.Transport.ClientCredentialType = HttpClientCredentialType.Ntlm;
httpBinding.Security.Message.ClientCredentialType = BasicHttpMessageCredentialType.UserName;





然后添加用户名密码





Then add username password

Service.ClientCredentials.UserName.UserName = username;
Service.ClientCredentials.UserName.Password = password;