//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version: 1.0.3705.288 // // 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.288. // namespace Google { 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")] [System.Web.Services.WebServiceBindingAttribute(Name="GoogleSearchBinding", Namespace="urn:GoogleSearch")] [System.Xml.Serialization.SoapIncludeAttribute(typeof(ResultElement))] public class GoogleSearchService : System.Web.Services.Protocols.SoapHttpClientProtocol { /// public GoogleSearchService() { this.Url = "http://api.google.com/search/beta2"; } /// [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:GoogleSearchAction", RequestNamespace="urn:GoogleSearch", ResponseNamespace="urn:GoogleSearch")] [return: System.Xml.Serialization.SoapElementAttribute("return", DataType="base64Binary")] public System.Byte[] doGetCachedPage(string key, string url) { object[] results = this.Invoke("doGetCachedPage", new object[] { key, url}); return ((System.Byte[])(results[0])); } /// public System.IAsyncResult BegindoGetCachedPage(string key, string url, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doGetCachedPage", new object[] { key, url}, callback, asyncState); } /// public System.Byte[] EnddoGetCachedPage(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((System.Byte[])(results[0])); } /// [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:GoogleSearchAction", RequestNamespace="urn:GoogleSearch", ResponseNamespace="urn:GoogleSearch")] [return: System.Xml.Serialization.SoapElementAttribute("return")] public string doSpellingSuggestion(string key, string phrase) { object[] results = this.Invoke("doSpellingSuggestion", new object[] { key, phrase}); return ((string)(results[0])); } /// public System.IAsyncResult BegindoSpellingSuggestion(string key, string phrase, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doSpellingSuggestion", new object[] { key, phrase}, callback, asyncState); } /// public string EnddoSpellingSuggestion(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } /// [System.Web.Services.Protocols.SoapRpcMethodAttribute("urn:GoogleSearchAction", RequestNamespace="urn:GoogleSearch", ResponseNamespace="urn:GoogleSearch")] [return: System.Xml.Serialization.SoapElementAttribute("return")] public GoogleSearchResult doGoogleSearch(string key, string q, int start, int maxResults, bool filter, string restrict, bool safeSearch, string lr, string ie, string oe) { object[] results = this.Invoke("doGoogleSearch", new object[] { key, q, start, maxResults, filter, restrict, safeSearch, lr, ie, oe}); return ((GoogleSearchResult)(results[0])); } /// public System.IAsyncResult BegindoGoogleSearch(string key, string q, int start, int maxResults, bool filter, string restrict, bool safeSearch, string lr, string ie, string oe, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("doGoogleSearch", new object[] { key, q, start, maxResults, filter, restrict, safeSearch, lr, ie, oe}, callback, asyncState); } /// public GoogleSearchResult EnddoGoogleSearch(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((GoogleSearchResult)(results[0])); } } /// [System.Xml.Serialization.SoapTypeAttribute("GoogleSearchResult", "urn:GoogleSearch")] public class GoogleSearchResult { /// public bool documentFiltering; /// public string searchComments; /// public int estimatedTotalResultsCount; /// public bool estimateIsExact; /// public ResultElement[] resultElements; /// public string searchQuery; /// public int startIndex; /// public int endIndex; /// public string searchTips; /// public DirectoryCategory[] directoryCategories; /// public System.Double searchTime; } /// [System.Xml.Serialization.SoapTypeAttribute("ResultElement", "urn:GoogleSearch")] 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.SoapTypeAttribute("DirectoryCategory", "urn:GoogleSearch")] public class DirectoryCategory { /// public string fullViewableName; /// public string specialEncoding; } }