Click here to Skip to main content
15,884,177 members
Articles / Mobile Apps

ForestPad - a method for storing and retrieving textual information

Rate me:
Please Sign up or sign in to vote.
3.85/5 (14 votes)
6 Jun 2004CPOL11 min read 131K   404   30  
Three applications: PocketPC, Windows Desktop, and a Web Service collaborate to syncronize your textual information
//------------------------------------------------------------------------------
// <autogenerated>
//     This code was generated by a tool.
//     Runtime Version: 1.1.4322.573
//
//     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.573.
// 
namespace ForestPadUtilities.ForestPadService {
    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="ForestPadServiceSoap", Namespace="http://tempuri.org/")]
    public class ForestPadService : System.Web.Services.Protocols.SoapHttpClientProtocol {
        
        /// <remarks/>
        public ForestPadService() {
            this.Url = "http://work/forestPadService/forestpadservice.asmx";
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/IsUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool IsUser(string Username, string Password) {
            object[] results = this.Invoke("IsUser", new object[] {
                        Username,
                        Password});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginIsUser(string Username, string Password, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("IsUser", new object[] {
                        Username,
                        Password}, callback, asyncState);
        }
        
        /// <remarks/>
        public bool EndIsUser(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetRemoteFileList", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public System.Data.DataSet GetRemoteFileList(string Username, string Password) {
            object[] results = this.Invoke("GetRemoteFileList", new object[] {
                        Username,
                        Password});
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetRemoteFileList(string Username, string Password, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetRemoteFileList", new object[] {
                        Username,
                        Password}, callback, asyncState);
        }
        
        /// <remarks/>
        public System.Data.DataSet EndGetRemoteFileList(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((System.Data.DataSet)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetRemoteDirectory", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string GetRemoteDirectory(string Username, string Password) {
            object[] results = this.Invoke("GetRemoteDirectory", new object[] {
                        Username,
                        Password});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginGetRemoteDirectory(string Username, string Password, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("GetRemoteDirectory", new object[] {
                        Username,
                        Password}, callback, asyncState);
        }
        
        /// <remarks/>
        public string EndGetRemoteDirectory(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/OpenFileFromServer", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public string OpenFileFromServer(string Filename, string Username, string Password) {
            object[] results = this.Invoke("OpenFileFromServer", new object[] {
                        Filename,
                        Username,
                        Password});
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginOpenFileFromServer(string Filename, string Username, string Password, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("OpenFileFromServer", new object[] {
                        Filename,
                        Username,
                        Password}, callback, asyncState);
        }
        
        /// <remarks/>
        public string EndOpenFileFromServer(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((string)(results[0]));
        }
        
        /// <remarks/>
        [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SaveFileToServer", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
        public bool SaveFileToServer(string Filename, string FileContents, string Username, string Password) {
            object[] results = this.Invoke("SaveFileToServer", new object[] {
                        Filename,
                        FileContents,
                        Username,
                        Password});
            return ((bool)(results[0]));
        }
        
        /// <remarks/>
        public System.IAsyncResult BeginSaveFileToServer(string Filename, string FileContents, string Username, string Password, System.AsyncCallback callback, object asyncState) {
            return this.BeginInvoke("SaveFileToServer", new object[] {
                        Filename,
                        FileContents,
                        Username,
                        Password}, callback, asyncState);
        }
        
        /// <remarks/>
        public bool EndSaveFileToServer(System.IAsyncResult asyncResult) {
            object[] results = this.EndInvoke(asyncResult);
            return ((bool)(results[0]));
        }
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer Snoffleware Studios LLC
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions