//------------------------------------------------------------------------------
// <autogenerated>
// This code was generated by a tool.
// Runtime Version: 1.1.4322.2032
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </autogenerated>
//------------------------------------------------------------------------------
//
// This source code was auto-generated by Microsoft.VSDesigner, Version 1.1.4322.2032.
//
namespace RSSBlogAPI.CommunityServer {
using System.Diagnostics;
using System.Xml.Serialization;
using System;
using System.Web.Services.Protocols;
using System.ComponentModel;
using System.Web.Services;
/// <remarks/>
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.ComponentModel.DesignerCategoryAttribute("code")]
[System.Web.Services.WebServiceBindingAttribute(Name="BlogServiceSoap", Namespace="http://communityserver.org/blogs/services/posts/")]
public class BlogService : System.Web.Services.Protocols.SoapHttpClientProtocol {
public BlogCredentials BlogCredentialsValue;
/// <remarks/>
public BlogService() {
this.Url = "http://localhost/cs/blogs/blogservice.asmx";
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/Blogs", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] Blogs() {
object[] results = this.Invoke("Blogs", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginBlogs(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("Blogs", new object[0], callback, asyncState);
}
/// <remarks/>
public string[] EndBlogs(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string[])(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/Create", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int Create(BlogPost post) {
object[] results = this.Invoke("Create", new object[] {
post});
return ((int)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginCreate(BlogPost post, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("Create", new object[] {
post}, callback, asyncState);
}
/// <remarks/>
public int EndCreate(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((int)(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/Update", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void Update(BlogPost post) {
this.Invoke("Update", new object[] {
post});
}
/// <remarks/>
public System.IAsyncResult BeginUpdate(BlogPost post, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("Update", new object[] {
post}, callback, asyncState);
}
/// <remarks/>
public void EndUpdate(System.IAsyncResult asyncResult) {
this.EndInvoke(asyncResult);
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/Delete", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void Delete(int PostID) {
this.Invoke("Delete", new object[] {
PostID});
}
/// <remarks/>
public System.IAsyncResult BeginDelete(int PostID, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("Delete", new object[] {
PostID}, callback, asyncState);
}
/// <remarks/>
public void EndDelete(System.IAsyncResult asyncResult) {
this.EndInvoke(asyncResult);
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/GetRecentPosts", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public BlogPost[] GetRecentPosts(int count) {
object[] results = this.Invoke("GetRecentPosts", new object[] {
count});
return ((BlogPost[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetRecentPosts(int count, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetRecentPosts", new object[] {
count}, callback, asyncState);
}
/// <remarks/>
public BlogPost[] EndGetRecentPosts(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((BlogPost[])(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/GetRecentArticles", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
[return: System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)]
public BlogPost[] GetRecentArticles(int count) {
object[] results = this.Invoke("GetRecentArticles", new object[] {
count});
return ((BlogPost[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetRecentArticles(int count, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetRecentArticles", new object[] {
count}, callback, asyncState);
}
/// <remarks/>
public BlogPost[] EndGetRecentArticles(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((BlogPost[])(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/GetPostCategories", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] GetPostCategories() {
object[] results = this.Invoke("GetPostCategories", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetPostCategories(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetPostCategories", new object[0], callback, asyncState);
}
/// <remarks/>
public string[] EndGetPostCategories(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string[])(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("BlogCredentialsValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/GetArticleCategories", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public string[] GetArticleCategories() {
object[] results = this.Invoke("GetArticleCategories", new object[0]);
return ((string[])(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginGetArticleCategories(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetArticleCategories", new object[0], callback, asyncState);
}
/// <remarks/>
public string[] EndGetArticleCategories(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((string[])(results[0]));
}
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://communityserver.org/blogs/services/posts/Ping", RequestNamespace="http://communityserver.org/blogs/services/posts/", ResponseNamespace="http://communityserver.org/blogs/services/posts/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void Ping() {
this.Invoke("Ping", new object[0]);
}
/// <remarks/>
public System.IAsyncResult BeginPing(System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("Ping", new object[0], callback, asyncState);
}
/// <remarks/>
public void EndPing(System.IAsyncResult asyncResult) {
this.EndInvoke(asyncResult);
}
}
/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://communityserver.org/blogs/services/posts/")]
[System.Xml.Serialization.XmlRootAttribute(Namespace="http://communityserver.org/blogs/services/posts/", IsNullable=false)]
public class BlogCredentials : System.Web.Services.Protocols.SoapHeader {
/// <remarks/>
public string Username;
/// <remarks/>
public string Password;
/// <remarks/>
public string Blogname;
}
/// <remarks/>
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://communityserver.org/blogs/services/posts/")]
public class BlogPost {
/// <remarks/>
public int PostID;
/// <remarks/>
public string Title;
/// <remarks/>
public string Body;
/// <remarks/>
public System.DateTime Date;
/// <remarks/>
public string Excerpt;
/// <remarks/>
public string Name;
/// <remarks/>
public string[] Categories;
/// <remarks/>
public bool IsPublished;
/// <remarks/>
public bool EnableComments;
/// <remarks/>
public bool EnableTrackbacks;
/// <remarks/>
public bool ModerateComments;
/// <remarks/>
public bool EnableRatings;
/// <remarks/>
public bool Syndicate;
/// <remarks/>
public bool SyndicateExcerpt;
/// <remarks/>
public bool SydicateRoot;
/// <remarks/>
public bool DisplayOnHome;
/// <remarks/>
public bool IsArticle;
}
}