Ejemplo n.º 1
0
 public object[] GetNewRequests(WsToken token)
 {
     object[] results = this.Invoke("GetNewRequests", new object[] {
         token
     });
     return((object[])(results[0]));
 }
Ejemplo n.º 2
0
 public WsResponse SyncRequest(WsToken token, System.Xml.XmlNode doc)
 {
     object[] results = this.Invoke("SyncRequest", new object[] {
         token,
         doc
     });
     return((WsResponse)(results[0]));
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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");
        }
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
 /// <remarks/>
 public void SyncRequestAsync(WsToken token, System.Xml.XmlNode doc)
 {
     this.SyncRequestAsync(token, doc, null);
 }
Ejemplo n.º 7
0
 /// <remarks/>
 public void GetNewRequestsAsync(WsToken token)
 {
     this.GetNewRequestsAsync(token, null);
 }