//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.832 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ using System; using System.ComponentModel; using System.Diagnostics; using System.Web.Services; using System.Web.Services.Protocols; using System.Xml.Serialization; // // This source code was auto-generated by wsdl, Version=2.0.50727.42. // /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="ContentServiceBinding", Namespace="urn:msdn-com:public-content-syndication")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(requestedDocument[]))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(primary[]))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(image[]))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(common[]))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(feature[]))] public partial class ContentService : System.Web.Services.Protocols.SoapHttpClientProtocol { private appId appIdValueField; private System.Threading.SendOrPostCallback GetContentOperationCompleted; private System.Threading.SendOrPostCallback GetNavigationPathsOperationCompleted; /// public ContentService() { this.Url = "http://services.msdn.microsoft.com/ContentServices/ContentService.asmx"; } public appId appIdValue { get { return this.appIdValueField; } set { this.appIdValueField = value; } } /// public event GetContentCompletedEventHandler GetContentCompleted; /// public event GetNavigationPathsCompletedEventHandler GetNavigationPathsCompleted; /// [System.Web.Services.Protocols.SoapHeaderAttribute("appIdValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:msdn-com:public-content-syndication/GetContent", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)] [return: System.Xml.Serialization.XmlElementAttribute("getContentResponse", Namespace="urn:msdn-com:public-content-syndication")] public getContentResponse GetContent([System.Xml.Serialization.XmlElementAttribute(Namespace="urn:msdn-com:public-content-syndication")] getContentRequest getContentRequest) { object[] results = this.Invoke("GetContent", new object[] { getContentRequest}); return ((getContentResponse)(results[0])); } /// public System.IAsyncResult BeginGetContent(getContentRequest getContentRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetContent", new object[] { getContentRequest}, callback, asyncState); } /// public getContentResponse EndGetContent(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((getContentResponse)(results[0])); } /// public void GetContentAsync(getContentRequest getContentRequest) { this.GetContentAsync(getContentRequest, null); } /// public void GetContentAsync(getContentRequest getContentRequest, object userState) { if ((this.GetContentOperationCompleted == null)) { this.GetContentOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetContentOperationCompleted); } this.InvokeAsync("GetContent", new object[] { getContentRequest}, this.GetContentOperationCompleted, userState); } private void OnGetContentOperationCompleted(object arg) { if ((this.GetContentCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetContentCompleted(this, new GetContentCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapHeaderAttribute("appIdValue")] [System.Web.Services.Protocols.SoapDocumentMethodAttribute("urn:msdn-com:public-content-syndication/GetNavigationPaths", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Bare)] [return: System.Xml.Serialization.XmlElementAttribute("getNavigationPathsResponse", Namespace="urn:msdn-com:public-content-syndication")] public getNavigationPathsResponse GetNavigationPaths([System.Xml.Serialization.XmlElementAttribute(Namespace="urn:msdn-com:public-content-syndication")] getNavigationPathsRequest getNavigationPathsRequest) { object[] results = this.Invoke("GetNavigationPaths", new object[] { getNavigationPathsRequest}); return ((getNavigationPathsResponse)(results[0])); } /// public System.IAsyncResult BeginGetNavigationPaths(getNavigationPathsRequest getNavigationPathsRequest, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetNavigationPaths", new object[] { getNavigationPathsRequest}, callback, asyncState); } /// public getNavigationPathsResponse EndGetNavigationPaths(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((getNavigationPathsResponse)(results[0])); } /// public void GetNavigationPathsAsync(getNavigationPathsRequest getNavigationPathsRequest) { this.GetNavigationPathsAsync(getNavigationPathsRequest, null); } /// public void GetNavigationPathsAsync(getNavigationPathsRequest getNavigationPathsRequest, object userState) { if ((this.GetNavigationPathsOperationCompleted == null)) { this.GetNavigationPathsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNavigationPathsOperationCompleted); } this.InvokeAsync("GetNavigationPaths", new object[] { getNavigationPathsRequest}, this.GetNavigationPathsOperationCompleted, userState); } private void OnGetNavigationPathsOperationCompleted(object arg) { if ((this.GetNavigationPathsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetNavigationPathsCompleted(this, new GetNavigationPathsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:msdn-com:public-content-syndication/2006/09/common")] [System.Xml.Serialization.XmlRootAttribute(Namespace="urn:msdn-com:public-content-syndication/2006/09/common", IsNullable=false)] public partial class appId : System.Web.Services.Protocols.SoapHeader { private string valueField; /// public string value { get { return this.valueField; } set { this.valueField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:msdn-com:public-content-syndication")] public partial class navigationPathNode { private string titleField; private bool isPhantomField; private bool isPhantomFieldSpecified; private navigationKey navigationNodeKeyField; private navigationKey contentNodeKeyField; /// public string title { get { return this.titleField; } set { this.titleField = value; } } /// public bool isPhantom { get { return this.isPhantomField; } set { this.isPhantomField = value; } } /// [System.Xml.Serialization.XmlIgnoreAttribute()] public bool isPhantomSpecified { get { return this.isPhantomFieldSpecified; } set { this.isPhantomFieldSpecified = value; } } /// public navigationKey navigationNodeKey { get { return this.navigationNodeKeyField; } set { this.navigationNodeKeyField = value; } } /// public navigationKey contentNodeKey { get { return this.contentNodeKeyField; } set { this.contentNodeKeyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:msdn-com:public-content-syndication")] public partial class navigationKey { private string contentIdField; private string localeField; private string versionField; /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string contentId { get { return this.contentIdField; } set { this.contentIdField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string locale { get { return this.localeField; } set { this.localeField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string version { get { return this.versionField; } set { this.versionField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:msdn-com:public-content-syndication")] public partial class navigationPath { private navigationPathNode[] navigationPathNodesField; /// [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] public navigationPathNode[] navigationPathNodes { get { return this.navigationPathNodesField; } set { this.navigationPathNodesField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:msdn-com:public-content-syndication")] public partial class availableVersionAndLocale { private string localeField; private string versionField; /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string locale { get { return this.localeField; } set { this.localeField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string version { get { return this.versionField; } set { this.versionField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:msdn-com:public-content-syndication")] public partial class requestedDocument { private string selectorField; private documentTypes typeField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string selector { get { return this.selectorField; } set { this.selectorField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public documentTypes type { get { return this.typeField; } set { this.typeField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:msdn-com:public-content-syndication")] public enum documentTypes { /// primary, /// common, /// image, /// feature, } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:mtpg-com:mtps/2004/1/primary")] public partial class primary { private System.Xml.XmlElement anyField; private string primaryFormatField; private string locationField; /// [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement Any { get { return this.anyField; } set { this.anyField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, Namespace="urn:mtpg-com:mtps/2004/1/primary/category")] public string primaryFormat { get { return this.primaryFormatField; } set { this.primaryFormatField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string location { get { return this.locationField; } set { this.locationField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:mtpg-com:mtps/2004/1/image")] public partial class image { private string nameField; private string imageFormatField; private string locationField; private byte[] valueField; /// [System.Xml.Serialization.XmlAttributeAttribute()] public string name { get { return this.nameField; } set { this.nameField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, Namespace="urn:mtpg-com:mtps/2004/1/image/category")] public string imageFormat { get { return this.imageFormatField; } set { this.imageFormatField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string location { get { return this.locationField; } set { this.locationField = value; } } /// [System.Xml.Serialization.XmlTextAttribute(DataType="base64Binary")] public byte[] Value { get { return this.valueField; } set { this.valueField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:mtpg-com:mtps/2004/1/common")] public partial class common { private System.Xml.XmlElement[] anyField; private string commonFormatField; private string locationField; /// [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, Namespace="urn:mtpg-com:mtps/2004/1/common/category")] public string commonFormat { get { return this.commonFormatField; } set { this.commonFormatField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string location { get { return this.locationField; } set { this.locationField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:mtpg-com:mtps/2004/1/feature")] public partial class feature { private System.Xml.XmlElement[] anyField; private string featureFormatField; private string locationField; /// [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute(Form=System.Xml.Schema.XmlSchemaForm.Qualified, Namespace="urn:mtpg-com:mtps/2004/1/feature/category")] public string featureFormat { get { return this.featureFormatField; } set { this.featureFormatField = value; } } /// [System.Xml.Serialization.XmlAttributeAttribute()] public string location { get { return this.locationField; } set { this.locationField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:msdn-com:public-content-syndication")] public partial class getContentRequest { private string contentIdentifierField; private string localeField; private string versionField; private requestedDocument[] requestedDocumentsField; /// public string contentIdentifier { get { return this.contentIdentifierField; } set { this.contentIdentifierField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string locale { get { return this.localeField; } set { this.localeField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string version { get { return this.versionField; } set { this.versionField = value; } } /// [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] public requestedDocument[] requestedDocuments { get { return this.requestedDocumentsField; } set { this.requestedDocumentsField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:msdn-com:public-content-syndication")] public partial class getContentResponse { private string contentIdField; private string contentGuidField; private string contentAliasField; private string localeField; private string versionField; private availableVersionAndLocale[] availableVersionsAndLocalesField; private primary[] primaryDocumentsField; private image[] imageDocumentsField; private common[] commonDocumentsField; private feature[] featureDocumentsField; /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string contentId { get { return this.contentIdField; } set { this.contentIdField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string contentGuid { get { return this.contentGuidField; } set { this.contentGuidField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string contentAlias { get { return this.contentAliasField; } set { this.contentAliasField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string locale { get { return this.localeField; } set { this.localeField = value; } } /// [System.Xml.Serialization.XmlElementAttribute(Namespace="urn:mtpg-com:mtps/2004/1/key")] public string version { get { return this.versionField; } set { this.versionField = value; } } /// [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] public availableVersionAndLocale[] availableVersionsAndLocales { get { return this.availableVersionsAndLocalesField; } set { this.availableVersionsAndLocalesField = value; } } /// [System.Xml.Serialization.XmlArrayItemAttribute("primary", Namespace="urn:mtpg-com:mtps/2004/1/primary", IsNullable=false)] public primary[] primaryDocuments { get { return this.primaryDocumentsField; } set { this.primaryDocumentsField = value; } } /// [System.Xml.Serialization.XmlArrayItemAttribute("image", Namespace="urn:mtpg-com:mtps/2004/1/image", IsNullable=false)] public image[] imageDocuments { get { return this.imageDocumentsField; } set { this.imageDocumentsField = value; } } /// [System.Xml.Serialization.XmlArrayItemAttribute("common", Namespace="urn:mtpg-com:mtps/2004/1/common", IsNullable=false)] public common[] commonDocuments { get { return this.commonDocumentsField; } set { this.commonDocumentsField = value; } } /// [System.Xml.Serialization.XmlArrayItemAttribute("feature", Namespace="urn:mtpg-com:mtps/2004/1/feature", IsNullable=false)] public feature[] featureDocuments { get { return this.featureDocumentsField; } set { this.featureDocumentsField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:msdn-com:public-content-syndication")] public partial class getNavigationPathsRequest { private navigationKey rootField; private navigationKey targetField; /// public navigationKey root { get { return this.rootField; } set { this.rootField = value; } } /// public navigationKey target { get { return this.targetField; } set { this.targetField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace="urn:msdn-com:public-content-syndication")] public partial class getNavigationPathsResponse { private navigationPath[] navigationPathsField; /// [System.Xml.Serialization.XmlArrayItemAttribute(IsNullable=false)] public navigationPath[] navigationPaths { get { return this.navigationPathsField; } set { this.navigationPathsField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetContentCompletedEventHandler(object sender, GetContentCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetContentCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetContentCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public getContentResponse Result { get { this.RaiseExceptionIfNecessary(); return ((getContentResponse)(this.results[0])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] public delegate void GetNavigationPathsCompletedEventHandler(object sender, GetNavigationPathsCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class GetNavigationPathsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal GetNavigationPathsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public getNavigationPathsResponse Result { get { this.RaiseExceptionIfNecessary(); return ((getNavigationPathsResponse)(this.results[0])); } } }