Web Service documentation

If you are having a problem using Dragnet, post a message here.

Moderator: SourceGear

Locked
mhsimkin
Posts: 4
Joined: Sat Feb 25, 2006 2:08 pm

Web Service documentation

Post by mhsimkin » Sat Feb 25, 2006 2:12 pm

Hi. Where can I find documentation on the web service API. What each method does, what the resultsets are, etc.

thanks

mhsimkin
Posts: 4
Joined: Sat Feb 25, 2006 2:08 pm

Need better examples of ...

Post by mhsimkin » Mon Feb 27, 2006 1:07 pm

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.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Post by lbauer » Mon Feb 27, 2006 1:23 pm

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

mhsimkin
Posts: 4
Joined: Sat Feb 25, 2006 2:08 pm

I know that, thanks. But still...

Post by mhsimkin » Mon Feb 27, 2006 6:14 pm

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.

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);
                }
            }
        }
The time at is returned on the call to ListProjects.

Thanks

Marc

Locked