Does anybody know how to migrate a VS2003 WSE2.0 program to VS2005 WSE3.0?

Hello.

I'm trying to migrate a VS2003.NET(VB), ASP.NET 1.1, .NET Framework 1.1, WSE 2.0 SP3, IIS 5.1 Web Application to VS2005(VB), ASP.NET 2.0, .Net Framwwork 2.0, WSE 3.0, Web Application.

There were some errors which i resolved and still two warnings unresolved, but there is just one outstanding error that i cannot figure out how to fix.

In the following function i get the error "'Attachments' is not a member of 'Microsoft.Web.Services3.SoapContext'" on the "doc.load" line.

    Private Function GetList(ByVal classID As xatanetconduitwebservice.ClassType, ByVal orgID As Integer) As XmlDocument
        Try
            Dim proxy As New xatanetconduitwebservice.XataNetConduitWebServiceWse
            Dim user As New UsernameToken(txtCompany & "\" & txtUserName, txtPassword, PasswordOption.SendHashed)
            proxy.RequestSoapContext.Security.Tokens.Add(user)
            Dim lastPollDate As String = ""
            Dim entityID As String = ""
            Dim compress As Boolean = False
            Dim originalLength As Integer = 0
            Dim compressedLength() As Integer
            proxy.GetDataByOrganization(classID, entityID, lastPollDate, compress, originalLength, compressedLength, "", False, orgID)
            Dim doc As New XmlDocument
            doc.Load(proxy.ResponseSoapContext.Attachments(0).Stream)
            Return doc
        Catch ex As Exception
            errorMessageString = errorMessageString + "Error Occurred in GetList: " & Err.ToString
            Me.txtResponse.Text = ""
            Me.txtResponse.Text = errorMessageString
            Return Nothing
        End Try
    End Function

I tried for days to figure out how to code this in VS2005, WSE3.0.

Does anybody have any idea of how to resolve this ?

Any help wouls be gratefully appreciated.

Thanks,
Tony

0
TGirgenti
1/15/2007 7:58:09 PM
asp.net.migrate-vs2003-vs2005 590 articles. 0 followers. Follow

0 Replies
506 Views

Similar Articles

[PageSpeed] 33
Get it on Google Play
Get it on Apple App Store

Reply: