Prepping for monodoc move from monodoc/engine to mcs/class/monodoc...
[mono.git] / mcs / class / monodoc / commentservice.cs
1 // \r
2 // A WebService to retrieve and post comments for a specific\r
3 // Monodoc url\r
4 //\r
5 // Authors:\r
6 //   Johannes Roith <johannes@jroith.de>\r
7 //\r
8 //   This source code was (initially) auto-generated by wsdl, Version=1.0.3705.0.\r
9 //   but is cleaned and has MonoDoc namespace\r
10 //\r
11 // TODO: right now, hosted on jroith2.de\r
12 //         must be moved to Ximian server\r
13 \r
14 \r
15 namespace Monodoc {\r
16 \r
17 using System.Diagnostics;\r
18 using System.Xml.Serialization;\r
19 using System;\r
20 using System.Web.Services.Protocols;\r
21 using System.ComponentModel;\r
22 using System.Web.Services;\r
23 \r
24 [System.Diagnostics.DebuggerStepThroughAttribute()]\r
25 [System.ComponentModel.DesignerCategoryAttribute("code")]\r
26 [System.Web.Services.WebServiceBindingAttribute(Name="CommentServiceSoap", Namespace="http://www.go-mono.org/monodoc/")]\r
27 public class CommentService : System.Web.Services.Protocols.SoapHttpClientProtocol {\r
28     \r
29     public CommentService() {\r
30         this.Url = "http://www.jroith2.de/comments.asmx";\r
31     }\r
32     \r
33     [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.go-mono.org/monodoc/AddComment", RequestNamespace="http://www.go-mono.org/monodoc/", ResponseNamespace="http://www.go-mono.org/monodoc/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]\r
34     public int AddComment(string author, string mail, string title, string comment, string url) {\r
35         object[] results = this.Invoke("AddComment", new object[] {\r
36                     author,\r
37                     mail,\r
38                     title,\r
39                     comment,\r
40                     url});\r
41         return ((int)(results[0]));\r
42     }\r
43     \r
44     public System.IAsyncResult BeginAddComment(string author, string mail, string title, string comment, string url, System.AsyncCallback callback, object asyncState) {\r
45         return this.BeginInvoke("AddComment", new object[] {\r
46                     author,\r
47                     mail,\r
48                     title,\r
49                     comment,\r
50                     url}, callback, asyncState);\r
51     }\r
52     \r
53     public int EndAddComment(System.IAsyncResult asyncResult) {\r
54         object[] results = this.EndInvoke(asyncResult);\r
55         return ((int)(results[0]));\r
56     }\r
57     \r
58     [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.go-mono.org/monodoc/GetCommentsByUrl", RequestNamespace="http://www.go-mono.org/monodoc/", ResponseNamespace="http://www.go-mono.org/monodoc/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]\r
59     public Comment[] GetCommentsByUrl(string url) {\r
60         object[] results = this.Invoke("GetCommentsByUrl", new object[] {\r
61                     url});\r
62         return ((Comment[])(results[0]));\r
63     }\r
64 \r
65     public System.IAsyncResult BeginGetCommentsByUrl(string url, System.AsyncCallback callback, object asyncState) {\r
66         return this.BeginInvoke("GetCommentsByUrl", new object[] {\r
67                     url}, callback, asyncState);\r
68     }\r
69     \r
70     public Comment[] EndGetCommentsByUrl(System.IAsyncResult asyncResult) {\r
71         object[] results = this.EndInvoke(asyncResult);\r
72         return ((Comment[])(results[0]));\r
73     }\r
74 }\r
75 \r
76 [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.go-mono.org/monodoc/")]\r
77 public class Comment {\r
78     \r
79     public string Author;\r
80     public string Mail;\r
81     public string Date;\r
82     public string Text;\r
83     public string Title;\r
84 }\r
85 \r
86 }\r