使用具有摘要式身份验证的Java客户端来使用wcf Web服务

时间:2016-04-12 13:30:19

标签: java web-services wcf

使用带有摘要认证的java客户端来使用wcf web服务,例如, 我无法识别java的等效于ClientCredentials.HttpDigest.ClientCredential.UserName

.Net示例

Catalogo.CatalogoWSClient proxy = new Catalogo.CatalogoWSClient();

string user = "usuario";
string pass = "senha";

proxy.ClientCredentials.HttpDigest.ClientCredential.UserName = user;
proxy.ClientCredentials.HttpDigest.ClientCredential.Password = pass;
proxy.ClientCredentials.UserName.UserName = user;
proxy.ClientCredentials.UserName.Password = pass;

0 个答案:

没有答案