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.XataNetConduitWebServiceW se
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.
Any help would be gratefully appreciated.
Thanks,
Tony