2 // A WebService to retrieve and post comments for a specific
\r
6 // Johannes Roith <johannes@jroith.de>
\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
11 // TODO: right now, hosted on jroith2.de
\r
12 // must be moved to Ximian server
\r
17 using System.Diagnostics;
\r
18 using System.Xml.Serialization;
\r
20 using System.Web.Services.Protocols;
\r
21 using System.ComponentModel;
\r
22 using System.Web.Services;
\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
29 public CommentService() {
\r
30 this.Url = "http://www.jroith2.de/comments.asmx";
\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
41 return ((int)(results[0]));
\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
50 url}, callback, asyncState);
\r
53 public int EndAddComment(System.IAsyncResult asyncResult) {
\r
54 object[] results = this.EndInvoke(asyncResult);
\r
55 return ((int)(results[0]));
\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
62 return ((Comment[])(results[0]));
\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
70 public Comment[] EndGetCommentsByUrl(System.IAsyncResult asyncResult) {
\r
71 object[] results = this.EndInvoke(asyncResult);
\r
72 return ((Comment[])(results[0]));
\r
76 [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.go-mono.org/monodoc/")]
\r
77 public class Comment {
\r
79 public string Author;
\r
83 public string Title;
\r