WSE and SSL



I have created a Web Service (using WSE 2.0, SP3) that has a method
ProcessRequest exposed. A client application calls the webservice using the
following code.

========================================
Dim loWebService As New MyWebServiceWse

loWebService.Url = "http://www.testwebservice.com/MyTest/MyTest.asmx";

loWebService.AllowAutoRedirect = True
System.Net.ServicePointManager.CertificatePolicy = New CertPolicy

Dim loContext As SoapContext = loWebService.RequestSoapContext
loContext.Security.Timestamp.TtlInSeconds = -1

'Instantiate a new UsernameToken object.
Dim loUserNameToken As New UsernameToken(txtUserID.Text, txtPassword.Text,
PasswordOption.SendHashed)

'Add the token to the SoapContext.
loContext.Security.Tokens.Add(loUserNameToken)

'Generate a signature using the username token,
'and add the signature to the SoapContext.
loContext.Security.Elements.Add(New MessageSignature(loUserNameToken))

'Call the Web method.
lsResponse = loWebService.ProcessRequest(rtbRequest.Text)

========================================

This code works fine when the URL is HTTP. But, on a HTTPS call, when the
SSL is enabled to this site, It first gives me Security.SecurityFault
exception (WSE563) - The computed password digest does not match the incoming
username token. Then after that, for the subsequent requests, I get a
Destination unreachable WSE816 error - The header must match the value of the
incoming message's HTTP request.

How can I get this fixed? Is there anything different that I need to do in
the WebService code and/or the Client application code to handle HTTPS
request.

Thanks,
R
.



Relevant Pages

  • WSE and SSL
    ... Dim loWebService As New MyWebServiceWse ... 'Add the token to the SoapContext. ... 'Generate a signature using the username token, ... This code works fine when the URL is HTTP. ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: Usernametoken cant beused inweb services that are invoked bywebcl
    ... you still use the built-in username token manager which can only handle windows accounts - you have to register your own in web.config ... Dim aa As String Dim bb As String ... SoapException("Missing security token", SoapException.ClientFaultCode) ... apEnvelope envelope) at ...
    (microsoft.public.dotnet.security)
  • Re: WSE 3.O Web Service with ASP.Net Client using VB.Net
    ... <configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0"</a>;> ... ''' Constructs an instance of this security token manager. ... Dim principal As GenericPrincipal = New ... There is a logon page which takes a Username and Password, ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • Return Value?
    ... Public Class UserDetails ... Public FirstName As String ... Public Function Login(ByVal UserName As String, ... Dim sqlCmd As SqlCommand ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Modifying AD User attribute
    ... Would you haapened to have a script to do the following: ... username in AD with username in the spreadsheet, ... Dim objRootDSE, strDNSDomain, strNetBIOSDomain ... ' Determine DNS domain name from RootDSE object. ...
    (microsoft.public.windows.server.scripting)

Loading