I am using VB.NET 2005 and have Dragnet.dll and Dragnetlib.dll referenced.
Here's an example of what I am trying to do.
Code: Select all
Dim retValue As Int32 = -1
Dim cc As New Net.CookieContainer
Dim mItem As New MantisItem
Dim dws As New DragnetWebService
With mItem
.ProjectID = 103
.Version = My.Application.Info.Version.ToString
.TypeID = 2
.PlatformID = 101
.CategoryID = 0
.Description = "This is a bug test"
.Details = "This is a detail test"
.Custom1 = "Site Name"
.Custom2 = "QuickBooks Version 2005"
End With
'This block is what's missing, I wrote it here but these properties are not actually avaliable.
'***************************
With dws
.CookieContainer = cc
.url = "http://localhost/dragnet/dragnetwebservice.asmx"
End With
'***************************
retValue = dws.AddItemExternal(mItem)
MessageBox.Show(retValue)