Hi. Where can I find documentation on the web service API. What each method does, what the resultsets are, etc.
thanks
Web Service documentation
Moderator: SourceGear
Need better examples of ...
I am trying to build a dashboard/reporting environment for dragnet. I need to get better examples (or maybe the source code). I can not get the ListProjects to work, it just returns 1004 SOAP Timeout.
The web methods / parameters can be found on your Dragnet server with the following URL : http://localhost/dragnet/dragnetwebservice.asmx.
Linda Bauer
SourceGear
Technical Support Manager
SourceGear
Technical Support Manager
I know that, thanks. But still...
Linda, thank you for pointing me to that page. I have looked at it, but it still does not help.
Here is the code that is returning the time out message.
The time at is returned on the call to ListProjects.
Thanks
Marc
Here is the code that is returning the time out message.
Code: Select all
int ret = -1;
string authTicket;
Dragnet.MantisProject[] Projects;
Dragnet.DragnetWebService dws = new Dragnet.DragnetWebService();
ret = dws.LoginPlainText("Dashboard", "dashboard", out authTicket);
if (0 == ret)
{
dws.DragnetAuthValue = new Dragnet.DragnetAuth();
dws.DragnetAuthValue.Token = authTicket;
// get a list of projects
ret = dws.ListProjects(out Projects);
foreach (Dragnet.MantisProject current in Projects)
{
if (current.Active)
{
// get all the incidents in this project
Dragnet.MantisItemQueryFilter qf = new Dragnet.MantisItemQueryFilter();
Dragnet.MantisItemExpanded[] items;
qf.Projects[0] = current.ID;
ret = dws.QueryItems(qf, true, out items);
}
}
}
Thanks
Marc