WSE1.0 to WSE3.0

Posted on 2006-04-04
Medium Priority
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

Mikal613 earned 1000 total points
ID: 16373615
make a copy and try it doesnt hurt.

Author Comment

ID: 16399442
This is no quite what I was after

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It’s quite interesting for me as I worked with Excel using vb.net 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 …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Integration Management Part 2
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

807 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