//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version: 1.0.3705.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ // // This source code was auto-generated by wsdl, Version=1.0.3705.0. // using System.Diagnostics; using System.Xml.Serialization; using System; using System.Web.Services.Protocols; using System.ComponentModel; using System.Web.Services; /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public class PureXMLGoogleHTTPBinding : System.Web.Services.Protocols.HttpGetClientProtocol { /// public PureXMLGoogleHTTPBinding() { this.Url = "http://localhost:8000/scripts/"; } /// [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.XmlReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))] [return: System.Xml.Serialization.XmlRootAttribute("base64Binary", Namespace="http://www.prescod.net/google_search_result", DataType="base64Binary", IsNullable=false)] public System.Byte[] doGetCachedPage(string key, string url) { return ((System.Byte[])(this.Invoke("doGetCachedPage", (this.Url + "/cachedpage_pure_xml.py"), new object[] { key, url}))); } /// public System.IAsyncResult BegindoGetCachedPage(string key, string url, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doGetCachedPage", (this.Url + "/cachedpage_pure_xml.py"), new object[] { key, url}, callback, asyncState); } /// public System.Byte[] EnddoGetCachedPage(System.IAsyncResult asyncResult) { return ((System.Byte[])(this.EndInvoke(asyncResult))); } /// [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.XmlReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))] [return: System.Xml.Serialization.XmlRootAttribute("string", Namespace="http://www.prescod.net/google_search_result", IsNullable=false)] public string doSpellingSuggestion(string key, string phrase) { return ((string)(this.Invoke("doSpellingSuggestion", (this.Url + "/spelling_suggestion_pure_xml.py"), new object[] { key, phrase}))); } /// public System.IAsyncResult BegindoSpellingSuggestion(string key, string phrase, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doSpellingSuggestion", (this.Url + "/spelling_suggestion_pure_xml.py"), new object[] { key, phrase}, callback, asyncState); } /// public string EnddoSpellingSuggestion(System.IAsyncResult asyncResult) { return ((string)(this.EndInvoke(asyncResult))); } /// [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.XmlReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))] public GoogleSearchResult doGoogleSearch(string key, string q, int start, int maxResults, bool filter, string restrict, bool safeSearch, string lr, string ie, string oe) { return ((GoogleSearchResult)(this.Invoke("doGoogleSearch", (this.Url + "/search.py"), new object[] { key, q, start, maxResults, filter, restrict, safeSearch, lr, ie, oe}))); } /// public System.IAsyncResult BegindoGoogleSearch(string key, string q, string start, string maxResults, string filter, string restrict, string safeSearch, string lr, string ie, string oe, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doGoogleSearch", (this.Url + "/search.py"), new object[] { key, q, start, maxResults, filter, restrict, safeSearch, lr, ie, oe}, callback, asyncState); } /// public GoogleSearchResult EnddoGoogleSearch(System.IAsyncResult asyncResult) { return ((GoogleSearchResult)(this.EndInvoke(asyncResult))); } } /// [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] public class EfficientGoogleHTTPBinding : System.Web.Services.Protocols.HttpGetClientProtocol { /// public EfficientGoogleHTTPBinding() { this.Url = "http://localhost:8000/scripts/"; } /// [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.XmlReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))] [return: System.Xml.Serialization.XmlRootAttribute("base64Binary", Namespace="http://www.prescod.net/google_search_result", DataType="base64Binary", IsNullable=false)] public System.Byte[] doGetCachedPage(string key, string url) { return ((System.Byte[])(this.Invoke("doGetCachedPage", (this.Url + "/cachedpage.py"), new object[] { key, url}))); } /// public System.IAsyncResult BegindoGetCachedPage(string key, string url, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doGetCachedPage", (this.Url + "/cachedpage.py"), new object[] { key, url}, callback, asyncState); } /// public System.Byte[] EnddoGetCachedPage(System.IAsyncResult asyncResult) { return ((System.Byte[])(this.EndInvoke(asyncResult))); } /// [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.XmlReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))] [return: System.Xml.Serialization.XmlRootAttribute("string", Namespace="http://www.prescod.net/google_search_result", IsNullable=false)] public string doSpellingSuggestion(string key, string phrase) { return ((string)(this.Invoke("doSpellingSuggestion", (this.Url + "/spelling_suggestion.py"), new object[] { key, phrase}))); } /// public System.IAsyncResult BegindoSpellingSuggestion(string key, string phrase, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doSpellingSuggestion", (this.Url + "/spelling_suggestion.py"), new object[] { key, phrase}, callback, asyncState); } /// public string EnddoSpellingSuggestion(System.IAsyncResult asyncResult) { return ((string)(this.EndInvoke(asyncResult))); } /// [System.Web.Services.Protocols.HttpMethodAttribute(typeof(System.Web.Services.Protocols.XmlReturnReader), typeof(System.Web.Services.Protocols.UrlParameterWriter))] public GoogleSearchResult doGoogleSearch(string key, string q, string start, string maxResults, string filter, string restrict, string safeSearch, string lr, string ie, string oe) { return ((GoogleSearchResult)(this.Invoke("doGoogleSearch", (this.Url + "/search.py"), new object[] { key, q, start, maxResults, filter, restrict, safeSearch, lr, ie, oe}))); } /// public System.IAsyncResult BegindoGoogleSearch(string key, string q, string start, string maxResults, string filter, string restrict, string safeSearch, string lr, string ie, string oe, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doGoogleSearch", (this.Url + "/search.py"), new object[] { key, q, start, maxResults, filter, restrict, safeSearch, lr, ie, oe}, callback, asyncState); } /// public GoogleSearchResult EnddoGoogleSearch(System.IAsyncResult asyncResult) { return ((GoogleSearchResult)(this.EndInvoke(asyncResult))); } } /// [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.prescod.net/google_search_result")] [System.Xml.Serialization.XmlRootAttribute("searchResult", Namespace="http://www.prescod.net/google_search_result", IsNullable=false)] public class GoogleSearchResult { /// public bool documentFiltering; /// public string searchComments; /// public int estimatedTotalResultsCount; /// public bool estimateIsExact; /// public ResultElementArray resultElements; /// public string searchQuery; /// public int startIndex; /// public int endIndex; /// public string searchTips; /// public DirectoryCategoryArray directoryCategories; /// public System.Double searchTime; } /// [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.prescod.net/google_search_result")] public class ResultElementArray { /// public ResultElement item; } /// [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.prescod.net/google_search_result")] public class ResultElement { /// public string summary; /// public string URL; /// public string snippet; /// public string title; /// public string cachedSize; /// public bool relatedInformationPresent; /// public string hostName; /// public DirectoryCategory directoryCategory; /// public string directoryTitle; } /// [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.prescod.net/google_search_result")] public class DirectoryCategory { /// public string fullViewableName; /// public string specialEncoding; } /// [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.prescod.net/google_search_result")] public class DirectoryCategoryArray { /// public DirectoryCategory directoryCategory; }