//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.1433 // // 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.312. // /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Web.Services.WebServiceBindingAttribute(Name="MPSInterfaceSoapBinding", Namespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11")] public partial class MPSInterfaceService : System.Web.Services.Protocols.SoapHttpClientProtocol { private System.Threading.SendOrPostCallback IsMachineConnectedOperationCompleted; private System.Threading.SendOrPostCallback EnumerateConnectedMachinesOperationCompleted; private System.Threading.SendOrPostCallback PullOperationCompleted; private System.Threading.SendOrPostCallback ReleaseOperationCompleted; private System.Threading.SendOrPostCallback SubscribeForNotificationsOperationCompleted; private System.Threading.SendOrPostCallback UnsubscribeOperationCompleted; /// public MPSInterfaceService() { this.Url = "http://hostname:7793/MPSInterfaceService"; } /// public event IsMachineConnectedCompletedEventHandler IsMachineConnectedCompleted; /// public event EnumerateConnectedMachinesCompletedEventHandler EnumerateConnectedMachinesCompleted; /// public event PullCompletedEventHandler PullCompleted; /// public event ReleaseCompletedEventHandler ReleaseCompleted; /// public event SubscribeForNotificationsCompletedEventHandler SubscribeForNotificationsCompleted; /// public event UnsubscribeCompletedEventHandler UnsubscribeCompleted; /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.intel.com/platform/client/MPSInterface/2010/11/IsMachineConnected", RequestNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", ResponseNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlElementAttribute("IsConnected")] public bool IsMachineConnected(SystemType Machine, [System.Xml.Serialization.XmlAnyElementAttribute()] ref System.Xml.XmlElement[] Any) { object[] results = this.Invoke("IsMachineConnected", new object[] { Machine, Any}); Any = ((System.Xml.XmlElement[])(results[1])); return ((bool)(results[0])); } /// public System.IAsyncResult BeginIsMachineConnected(SystemType Machine, System.Xml.XmlElement[] Any, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("IsMachineConnected", new object[] { Machine, Any}, callback, asyncState); } /// public bool EndIsMachineConnected(System.IAsyncResult asyncResult, out System.Xml.XmlElement[] Any) { object[] results = this.EndInvoke(asyncResult); Any = ((System.Xml.XmlElement[])(results[1])); return ((bool)(results[0])); } /// public void IsMachineConnectedAsync(SystemType Machine, System.Xml.XmlElement[] Any) { this.IsMachineConnectedAsync(Machine, Any, null); } /// public void IsMachineConnectedAsync(SystemType Machine, System.Xml.XmlElement[] Any, object userState) { if ((this.IsMachineConnectedOperationCompleted == null)) { this.IsMachineConnectedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnIsMachineConnectedOperationCompleted); } this.InvokeAsync("IsMachineConnected", new object[] { Machine, Any}, this.IsMachineConnectedOperationCompleted, userState); } private void OnIsMachineConnectedOperationCompleted(object arg) { if ((this.IsMachineConnectedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.IsMachineConnectedCompleted(this, new IsMachineConnectedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.intel.com/platform/client/MPSInterface/2010/11/EnumerateConnectedM" + "achines", RequestNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", ResponseNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlElementAttribute("Expires")] public string EnumerateConnectedMachines(out object EnumerationContext, [System.Xml.Serialization.XmlAnyElementAttribute()] out System.Xml.XmlElement[] Any, [System.Xml.Serialization.XmlAnyAttributeAttribute()] out System.Xml.XmlAttribute[] AnyAttr) { object[] results = this.Invoke("EnumerateConnectedMachines", new object[0]); EnumerationContext = ((object)(results[1])); Any = ((System.Xml.XmlElement[])(results[2])); AnyAttr = ((System.Xml.XmlAttribute[])(results[3])); return ((string)(results[0])); } /// public System.IAsyncResult BeginEnumerateConnectedMachines(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("EnumerateConnectedMachines", new object[0], callback, asyncState); } /// public string EndEnumerateConnectedMachines(System.IAsyncResult asyncResult, out object EnumerationContext, out System.Xml.XmlElement[] Any, out System.Xml.XmlAttribute[] AnyAttr) { object[] results = this.EndInvoke(asyncResult); EnumerationContext = ((object)(results[1])); Any = ((System.Xml.XmlElement[])(results[2])); AnyAttr = ((System.Xml.XmlAttribute[])(results[3])); return ((string)(results[0])); } /// public void EnumerateConnectedMachinesAsync() { this.EnumerateConnectedMachinesAsync(null); } /// public void EnumerateConnectedMachinesAsync(object userState) { if ((this.EnumerateConnectedMachinesOperationCompleted == null)) { this.EnumerateConnectedMachinesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnumerateConnectedMachinesOperationCompleted); } this.InvokeAsync("EnumerateConnectedMachines", new object[0], this.EnumerateConnectedMachinesOperationCompleted, userState); } private void OnEnumerateConnectedMachinesOperationCompleted(object arg) { if ((this.EnumerateConnectedMachinesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.EnumerateConnectedMachinesCompleted(this, new EnumerateConnectedMachinesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.intel.com/platform/client/MPSInterface/2010/11/Pull", RequestNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", ResponseNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlElementAttribute("Items")] public SystemType[] Pull(object EnumerationContext, [System.Xml.Serialization.XmlElementAttribute(DataType="positiveInteger")] string MaxElements, [System.Xml.Serialization.XmlAnyElementAttribute()] System.Xml.XmlElement[] Any, [System.Xml.Serialization.XmlAnyAttributeAttribute()] ref System.Xml.XmlAttribute[] AnyAttr, out object EndOfSequence) { object[] results = this.Invoke("Pull", new object[] { EnumerationContext, MaxElements, Any, AnyAttr}); AnyAttr = ((System.Xml.XmlAttribute[])(results[1])); EndOfSequence = ((object)(results[2])); return ((SystemType[])(results[0])); } /// public System.IAsyncResult BeginPull(object EnumerationContext, string MaxElements, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Pull", new object[] { EnumerationContext, MaxElements, Any, AnyAttr}, callback, asyncState); } /// public SystemType[] EndPull(System.IAsyncResult asyncResult, out System.Xml.XmlAttribute[] AnyAttr, out object EndOfSequence) { object[] results = this.EndInvoke(asyncResult); AnyAttr = ((System.Xml.XmlAttribute[])(results[1])); EndOfSequence = ((object)(results[2])); return ((SystemType[])(results[0])); } /// public void PullAsync(object EnumerationContext, string MaxElements, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.PullAsync(EnumerationContext, MaxElements, Any, AnyAttr, null); } /// public void PullAsync(object EnumerationContext, string MaxElements, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr, object userState) { if ((this.PullOperationCompleted == null)) { this.PullOperationCompleted = new System.Threading.SendOrPostCallback(this.OnPullOperationCompleted); } this.InvokeAsync("Pull", new object[] { EnumerationContext, MaxElements, Any, AnyAttr}, this.PullOperationCompleted, userState); } private void OnPullOperationCompleted(object arg) { if ((this.PullCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.PullCompleted(this, new PullCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.intel.com/platform/client/MPSInterface/2010/11/Release", RequestNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", ResponseNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public void Release(object EnumerationContext, [System.Xml.Serialization.XmlAnyAttributeAttribute()] System.Xml.XmlAttribute[] AnyAttr) { this.Invoke("Release", new object[] { EnumerationContext, AnyAttr}); } /// public System.IAsyncResult BeginRelease(object EnumerationContext, System.Xml.XmlAttribute[] AnyAttr, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Release", new object[] { EnumerationContext, AnyAttr}, callback, asyncState); } /// public void EndRelease(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } /// public void ReleaseAsync(object EnumerationContext, System.Xml.XmlAttribute[] AnyAttr) { this.ReleaseAsync(EnumerationContext, AnyAttr, null); } /// public void ReleaseAsync(object EnumerationContext, System.Xml.XmlAttribute[] AnyAttr, object userState) { if ((this.ReleaseOperationCompleted == null)) { this.ReleaseOperationCompleted = new System.Threading.SendOrPostCallback(this.OnReleaseOperationCompleted); } this.InvokeAsync("Release", new object[] { EnumerationContext, AnyAttr}, this.ReleaseOperationCompleted, userState); } private void OnReleaseOperationCompleted(object arg) { if ((this.ReleaseCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ReleaseCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.intel.com/platform/client/MPSInterface/2010/11/SubscribeForNotific" + "ations", RequestNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", ResponseNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] [return: System.Xml.Serialization.XmlElementAttribute("Expires")] public string SubscribeForNotifications([System.Xml.Serialization.XmlElementAttribute(DataType="anyURI")] string Delivery, [System.Xml.Serialization.XmlAnyElementAttribute()] ref System.Xml.XmlElement[] Any, [System.Xml.Serialization.XmlAnyAttributeAttribute()] ref System.Xml.XmlAttribute[] AnyAttr) { object[] results = this.Invoke("SubscribeForNotifications", new object[] { Delivery, Any, AnyAttr}); Any = ((System.Xml.XmlElement[])(results[1])); AnyAttr = ((System.Xml.XmlAttribute[])(results[2])); return ((string)(results[0])); } /// public System.IAsyncResult BeginSubscribeForNotifications(string Delivery, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SubscribeForNotifications", new object[] { Delivery, Any, AnyAttr}, callback, asyncState); } /// public string EndSubscribeForNotifications(System.IAsyncResult asyncResult, out System.Xml.XmlElement[] Any, out System.Xml.XmlAttribute[] AnyAttr) { object[] results = this.EndInvoke(asyncResult); Any = ((System.Xml.XmlElement[])(results[1])); AnyAttr = ((System.Xml.XmlAttribute[])(results[2])); return ((string)(results[0])); } /// public void SubscribeForNotificationsAsync(string Delivery, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.SubscribeForNotificationsAsync(Delivery, Any, AnyAttr, null); } /// public void SubscribeForNotificationsAsync(string Delivery, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr, object userState) { if ((this.SubscribeForNotificationsOperationCompleted == null)) { this.SubscribeForNotificationsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSubscribeForNotificationsOperationCompleted); } this.InvokeAsync("SubscribeForNotifications", new object[] { Delivery, Any, AnyAttr}, this.SubscribeForNotificationsOperationCompleted, userState); } private void OnSubscribeForNotificationsOperationCompleted(object arg) { if ((this.SubscribeForNotificationsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SubscribeForNotificationsCompleted(this, new SubscribeForNotificationsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://schemas.intel.com/platform/client/MPSInterface/2010/11/Unsubscribe", RequestNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", ResponseNamespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public void Unsubscribe([System.Xml.Serialization.XmlElementAttribute(DataType="anyURI")] string Delivery, [System.Xml.Serialization.XmlAnyElementAttribute()] System.Xml.XmlElement[] Any, [System.Xml.Serialization.XmlAnyAttributeAttribute()] System.Xml.XmlAttribute[] AnyAttr) { this.Invoke("Unsubscribe", new object[] { Delivery, Any, AnyAttr}); } /// public System.IAsyncResult BeginUnsubscribe(string Delivery, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("Unsubscribe", new object[] { Delivery, Any, AnyAttr}, callback, asyncState); } /// public void EndUnsubscribe(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } /// public void UnsubscribeAsync(string Delivery, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr) { this.UnsubscribeAsync(Delivery, Any, AnyAttr, null); } /// public void UnsubscribeAsync(string Delivery, System.Xml.XmlElement[] Any, System.Xml.XmlAttribute[] AnyAttr, object userState) { if ((this.UnsubscribeOperationCompleted == null)) { this.UnsubscribeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUnsubscribeOperationCompleted); } this.InvokeAsync("Unsubscribe", new object[] { Delivery, Any, AnyAttr}, this.UnsubscribeOperationCompleted, userState); } private void OnUnsubscribeOperationCompleted(object arg) { if ((this.UnsubscribeCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UnsubscribeCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] [System.SerializableAttribute()] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://schemas.intel.com/platform/client/MPSInterface/2010/11")] public partial class SystemType { private string systemNameField; private System.Xml.XmlElement[] anyField; /// public string SystemName { get { return this.systemNameField; } set { this.systemNameField = value; } } /// [System.Xml.Serialization.XmlAnyElementAttribute()] public System.Xml.XmlElement[] Any { get { return this.anyField; } set { this.anyField = value; } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] public delegate void IsMachineConnectedCompletedEventHandler(object sender, IsMachineConnectedCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class IsMachineConnectedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal IsMachineConnectedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public bool Result { get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } /// public System.Xml.XmlElement[] Any { get { this.RaiseExceptionIfNecessary(); return ((System.Xml.XmlElement[])(this.results[1])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] public delegate void EnumerateConnectedMachinesCompletedEventHandler(object sender, EnumerateConnectedMachinesCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class EnumerateConnectedMachinesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal EnumerateConnectedMachinesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } /// public object EnumerationContext { get { this.RaiseExceptionIfNecessary(); return ((object)(this.results[1])); } } /// public System.Xml.XmlElement[] Any { get { this.RaiseExceptionIfNecessary(); return ((System.Xml.XmlElement[])(this.results[2])); } } /// public System.Xml.XmlAttribute[] AnyAttr { get { this.RaiseExceptionIfNecessary(); return ((System.Xml.XmlAttribute[])(this.results[3])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] public delegate void PullCompletedEventHandler(object sender, PullCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class PullCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal PullCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public SystemType[] Result { get { this.RaiseExceptionIfNecessary(); return ((SystemType[])(this.results[0])); } } /// public System.Xml.XmlAttribute[] AnyAttr { get { this.RaiseExceptionIfNecessary(); return ((System.Xml.XmlAttribute[])(this.results[1])); } } /// public object EndOfSequence { get { this.RaiseExceptionIfNecessary(); return ((object)(this.results[2])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] public delegate void ReleaseCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] public delegate void SubscribeForNotificationsCompletedEventHandler(object sender, SubscribeForNotificationsCompletedEventArgs e); /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public partial class SubscribeForNotificationsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { private object[] results; internal SubscribeForNotificationsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : base(exception, cancelled, userState) { this.results = results; } /// public string Result { get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } /// public System.Xml.XmlElement[] Any { get { this.RaiseExceptionIfNecessary(); return ((System.Xml.XmlElement[])(this.results[1])); } } /// public System.Xml.XmlAttribute[] AnyAttr { get { this.RaiseExceptionIfNecessary(); return ((System.Xml.XmlAttribute[])(this.results[2])); } } } /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.312")] public delegate void UnsubscribeCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);