Example #1
0
 public object[] GetNewRequests(WsToken token)
 {
     object[] results = this.Invoke("GetNewRequests", new object[] {
         token
     });
     return((object[])(results[0]));
 }
Example #2
0
 public WsResponse SyncRequest(WsToken token, System.Xml.XmlNode doc)
 {
     object[] results = this.Invoke("SyncRequest", new object[] {
         token,
         doc
     });
     return((WsResponse)(results[0]));
 }
Example #3
0
 /// <remarks/>
 public void GetNewRequestsAsync(WsToken token, object userState)
 {
     if ((this.GetNewRequestsOperationCompleted == null))
     {
         this.GetNewRequestsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNewRequestsOperationCompleted);
     }
     this.InvokeAsync("GetNewRequests", new object[] {
         token
     }, this.GetNewRequestsOperationCompleted, userState);
 }
Example #4
0
        /// <summary>
        /// Constructor when form is created
        /// </summary>
        public Form1()
        {
            InitializeComponent();

            // create a new instance of the Affinity WsProcessor web service
            this.webService = new AffinityServer.WsProcessor();

            // authenticate with the service to receive a token that we will need for all other functions
            this.webToken = this.webService.Authenticate("admin", "pass123");
        }
Example #5
0
 /// <remarks/>
 public void SyncRequestAsync(WsToken token, System.Xml.XmlNode doc, object userState)
 {
     if ((this.SyncRequestOperationCompleted == null))
     {
         this.SyncRequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSyncRequestOperationCompleted);
     }
     this.InvokeAsync("SyncRequest", new object[] {
         token,
         doc
     }, this.SyncRequestOperationCompleted, userState);
 }
Example #6
0
 /// <remarks/>
 public void SyncRequestAsync(WsToken token, System.Xml.XmlNode doc)
 {
     this.SyncRequestAsync(token, doc, null);
 }
Example #7
0
 /// <remarks/>
 public void GetNewRequestsAsync(WsToken token)
 {
     this.GetNewRequestsAsync(token, null);
 }