WSE1.0 to WSE3.0

Posted on 2006-04-04
Last Modified: 2012-06-27
I am upgrading a project from WSE 1 TO 3, I have the following code on the client

        Dim proxy As New TestWS.DataServiceWse
        proxy.Url = WSLocation
        Dim reqCtx As SoapContext = proxy.RequestSoapContext
        Dim tok As New UsernameToken(EmailAddress, Password, PasswordOption.SendHashed)
        reqCtx.Security.Elements.Add(New Signature(tok))
        Return proxy

And on the web service

 Private Function Authenticater() As Boolean

        Dim requestContext As SoapContext = HttpSoapContext.RequestContext
        Dim userToken As UsernameToken
        If requestContext Is Nothing Then
            Throw New SoapException("Only SOAP requests are accepted", _
        End If

        For Each userToken In requestContext.Security.Tokens
            If TypeOf userToken Is UsernameToken Then
                If userToken.PasswordOption = PasswordOption.SendHashed Then
                    Return True
                    Exit For
                    Throw New SoapException("The password must be hashed", SoapException.ClientFaultCode)
                End If
            End If
    End Function

does anyone before I upgrade whether this will work with 3?
Question by:rocky050371
    LVL 48

    Accepted Solution

    make a copy and try it doesnt hurt.

    Author Comment

    This is no quite what I was after

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
    The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now