Tag: axis2

使用WS-Security UsernameToken PasswordDigest身份validation方案的WCF客户端使用Axis 2 Web服务时出错

我有一个WCF客户端连接到基于Java的Axis2 Web服务(在我的控制之外)。 它即将应用WS-Security,我需要修复.NET客户端。 但是,我正在努力提供正确的身份validation。 我知道WSE 3.0可能会让它变得更容易,但我宁愿不再使用过时的技术。 类似的问题(未解决),包括这个 , 这个和这个 。 SOAP消息应如下所示: 2010-05-28T12:50:33.675+01:00 但是,我的看起来像这样: 2010-06-23T10:31:23.441Z 2010-06-23T10:36:23.441Z 我的客户端看起来像这样:PS注意所需的 SecurityHeaderType参数。 那是什么? public MyAck SendRequest(MyRequest request) { RemoteServicePortTypeClient client = new RemoteServicePortTypeClient(); client.ClientCredentials.UserName.UserName = “JAY”; client.ClientCredentials.UserName.Password = “AND”; // what is the difference between the two different Credential types?? //client.ClientCredentials.HttpDigest.ClientCredential.UserName = “SILENT”; //client.ClientCredentials.HttpDigest.ClientCredential.Password = “BOB”; SecurityHeaderType sht = new […]