add.brief.option.add.gnome.vfs.binary.helper
[tfs.git] / class / Microsoft.TeamFoundation.Client / CommonStructureService.cs
blob7f26ef1b3497becb849d0d9c077c0900339a2052
1 //
2 // Microsoft.TeamFoundation.Client.CommonStructureService
3 //
4 // Authors:
5 // Joel Reed (joelwreed@gmail.com)
6 //
7 // Copyright (C) 2007 Joel Reed
8 //
9 // Permission is hereby granted, free of charge, to any person obtaining
10 // a copy of this software and associated documentation files (the
11 // "Software"), to deal in the Software without restriction, including
12 // without limitation the rights to use, copy, modify, merge, publish,
13 // distribute, sublicense, and/or sell copies of the Software, and to
14 // permit persons to whom the Software is furnished to do so, subject to
15 // the following conditions:
16 //
17 // The above copyright notice and this permission notice shall be
18 // included in all copies or substantial portions of the Software.
19 //
20 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
23 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
24 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
25 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
26 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
29 using System;
30 using System.Net;
31 using System.Web.Services;
32 using Microsoft.TeamFoundation.Server;
34 namespace Microsoft.TeamFoundation.Client
36 [System.Web.Services.WebServiceBinding(Name="ClassificationSoap", Namespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03")]
37 [System.Diagnostics.DebuggerStepThroughAttribute()]
38 [System.ComponentModel.DesignerCategoryAttribute("code")]
39 internal class CommonStructureService : System.Web.Services.Protocols.SoapHttpClientProtocol, ICommonStructureService
41 public CommonStructureService(TeamFoundationServer teamFoundationServer)
43 this.Url = String.Format("{0}/{1}", teamFoundationServer.Uri, "services/v1.0/CommonStructureService.asmx");
44 this.Credentials = teamFoundationServer.Credentials;
47 [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03/GetProjectProperties", RequestNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ResponseNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
48 [return: System.Xml.Serialization.XmlElementAttribute("name")]
49 public void GetProjectProperties(string projectUri, out string name, out string state, out int templateId, out ProjectProperty[] properties) {
50 object[] results = this.Invoke("GetProjectProperties", new object[] {
51 projectUri});
52 properties = ((ProjectProperty[])(results[3]));
53 templateId = ((int)(results[2]));
54 state = ((string)(results[1]));
55 name = ((string)(results[0]));
58 [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03/GetProject", RequestNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ResponseNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
59 public ProjectInfo GetProject(string projectUri) {
60 object[] results = this.Invoke("GetProject", new object[] {
61 projectUri});
62 return ((ProjectInfo)(results[0]));
65 [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03/GetProjectFromName", RequestNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ResponseNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
66 public ProjectInfo GetProjectFromName(string projectName) {
67 object[] results = this.Invoke("GetProjectFromName", new object[] {
68 projectName});
69 return ((ProjectInfo)(results[0]));
72 [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03/ListProjects", RequestNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ResponseNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
73 public ProjectInfo[] ListProjects() {
74 object[] results = this.Invoke("ListProjects", new object[0]);
75 return ((ProjectInfo[])(results[0]));
78 [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03/ListAllProjects", RequestNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ResponseNamespace="http://schemas.microsoft.com/TeamFoundation/2005/06/Services/Classification/03", ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped, Use=System.Web.Services.Description.SoapBindingUse.Literal)]
79 public ProjectInfo[] ListAllProjects() {
80 object[] results = this.Invoke("ListAllProjects", new object[0]);
81 return ((ProjectInfo[])(results[0]));