Web Service Error

This forum is now locked, since gold support is no longer offered.

Moderator: SourceGear

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

Web Service Error

Post by mhsimkin » Fri Mar 03, 2006 2:12 pm

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 out is returned on the call to ListProjects.

Thanks

Marc

mskrobul
Posts: 490
Joined: Wed Jan 14, 2004 10:22 am
Location: SourceGear
Contact:

Post by mskrobul » Fri Mar 17, 2006 2:30 pm

It doesn't look like the Cookie Container is being set after you create the Dragnet web service.

There is an example of how to do this in the "Login with DragnetWebService API" KB article:

http://support.sourcegear.com/viewtopic.php?t=2775
Mary Jo Skrobul
SourceGear

Locked