RE: WSE and SSL

Tech-Archive recommends: Fix windows errors by optimizing your registry



Yes, the web service supports password hashing. The service works fine when
the calling application requests using HTTP. But it does not when HTTPS is
enabled.
Any suggestions on how to get it working? Are there any examples/sample
codes that would implement like a Hello World service in HTTPS?

Thanks

"MAHESH MANDHARE" wrote:

> hi RG,
> you are calliing web service from client app using sendhashed option does
> your web service supports password hashing if not set this option to
> sendPlainText
> --
> Have A Good Day,
> Mahesh,
> Maheshmandhare@xxxxxxxxxxx
>
>
> "RG" wrote:
>
> > 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

  • Re: WSE and SSL
    ... Adding ssl support has nothing to do with web service implementation. ... All you need to do is get a valid certificate and change the settings in IIS to make the web application use ssl. ... the calling application requests using HTTP. ... Are there any examples/sample codes that would implement like a Hello World service in HTTPS? ...
    (microsoft.public.dotnet.framework.webservices.enhancements)
  • HttpWebRequest adding junk characters
    ... I am trying to invoke a remote Web Service that accepts XML data over https ... but the server is returning a "The data at the root level is invalid. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • RE: HTTPS and Certificate
    ... I have an ASP .NET Application that I have been using ... that calls a web service on another machine. ... Does anyone know what I need to do to implement HTTPS? ... BizTalk Utilities - Frustration free BizTalk Adapters ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Web service client using https
    ... I am trying to connect .NET web service using HTTPS. ... For that need to send SOAP message to the ... I have a doubt can we access web services using HTTPS ...
    (comp.lang.python)
  • Re: HTTPS and Certificate
    ... poping up which will provide information on exactly what is not accepted by ... > that calls a web service on another machine. ... > trust relationship with remote server. ... > Does anyone know what I need to do to implement HTTPS? ...
    (microsoft.public.dotnet.framework.aspnet.security)