.NET API for connecting to Bugzilla

I am looking for a library to connect to Bugzilla that works with C #. I found Bugzilla C # Proxy , but that is not quite what I am looking for. I could not find anything else through Google search queries. Does anyone have any other suggestions? Thanks.

+7
c # api bugzilla
source share
2 answers

As a result, I used Bugzilla C # Proxy for some operations and wrote a small class that retrieved the XML error code when I needed more detailed error information. Note. I had to change the Bugzilla C # proxy to open CookieContainer so that I could use it for authentication for my XML requests.

HttpWebRequest request = (HttpWebRequest) WebRequest.Create(string.Format(_url, buggid)); request.CookieContainer = _cookies; HttpWebResponse response = (HttpWebResponse)request.GetResponse(); Stream dataStream = response.GetResponseStream(); StreamReader reader = new StreamReader(dataStream); string responseFromServer = reader.ReadToEnd(); reader.Close(); dataStream.Close(); response.Close(); XmlReaderSettings settings = new XmlReaderSettings(); settings.ProhibitDtd = false; settings.XmlResolver = null; settings.ValidationType = ValidationType.None; StringReader sr = new StringReader(responseFromServer); XmlReader xreader = XmlReader.Create(sr, settings); XmlDocument doc = new XmlDocument(); doc.Load(xreader); 
+4
source share

I met this problem a few months ago. And we did not find anything. To communicate with bugzilla, we wrote a cgi script that uses the internal Bugzilla api. And just call our cgi script methods on HTTP requests from C # code.

+1
source share

All Articles