// ------------------------------------------------------------------------------
//
// This code was generated by a tool.
// Mono Runtime Version: 1.1.4322.573
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
//
// ------------------------------------------------------------------------------
//
// This source code was auto-generated by Mono Web Services Description Language Utility
//
using System;
namespace Beagle.Daemon
{
///
///
///Web Service Interface to Beagle
///
[System.Web.Services.WebServiceBinding(Name="BeagleWebServiceSoap",Namespace="http://www.gnome.org/projects/beagle/webservices"),
System.Diagnostics.DebuggerStepThroughAttribute(),
System.ComponentModel.DesignerCategoryAttribute("code")]
public class BeagleWebService: System.Web.Services.Protocols.SoapHttpClientProtocol {
public BeagleWebService () {
this.Url = "http://localhost:8888/beagle/search.asmx";
}
string hostname = "localhost";
string port = "8888";
public BeagleWebService (string Hostname, string Port) {
if (Hostname == null || Hostname == "")
this.hostname = "localhost";
else
this.hostname = Hostname;
this.Url = "http://" + this.hostname + ":" + this.port + "/beagle/search.asmx";
}
public string Hostname {
get {return hostname;}
set {
hostname = value;
this.Url = "http://" + this.hostname + ":" + this.port + "/beagle/search.asmx";
}
}
public string Port {
get {return port;}
set {
port = value;
this.Url = "http://" + this.hostname + ":" + this.port + "/beagle/search.asmx";
}
}
///
///Full object interface to Beagle
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.gnome.org/projects/beagle/webservices/BeagleQuery",RequestNamespace="http://www.gnome.org/projects/beagle/webservices",ResponseNamespace="http://www.gnome.org/projects/beagle/webservices",ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public SearchResult BeagleQuery(SearchRequest req) {
object[] results = this.Invoke("BeagleQuery", new object[] {
req});
return ((SearchResult)(results[0]));
}
public System.IAsyncResult BeginBeagleQuery(SearchRequest req, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("BeagleQuery", new object[] {
req}, callback, asyncState);
}
public SearchResult EndBeagleQuery(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((SearchResult)(results[0]));
}
///
///Simple Interface to Beagle
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.gnome.org/projects/beagle/webservices/SimpleQuery",RequestNamespace="http://www.gnome.org/projects/beagle/webservices",ResponseNamespace="http://www.gnome.org/projects/beagle/webservices",ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public SearchResult SimpleQuery(string text) {
object[] results = this.Invoke("SimpleQuery", new object[] {
text});
return ((SearchResult)(results[0]));
}
public System.IAsyncResult BeginSimpleQuery(string text, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("SimpleQuery", new object[] {
text}, callback, asyncState);
}
public SearchResult EndSimpleQuery(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((SearchResult)(results[0]));
}
///
///Full text Interface to Beagle
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.gnome.org/projects/beagle/webservices/SimpleQuery2",RequestNamespace="http://www.gnome.org/projects/beagle/webservices",ResponseNamespace="http://www.gnome.org/projects/beagle/webservices",ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public SearchResult SimpleQuery2(string text, string mimeType, string source, string queryDomain) {
object[] results = this.Invoke("SimpleQuery2", new object[] {
text,
mimeType,
source,
queryDomain});
return ((SearchResult)(results[0]));
}
public System.IAsyncResult BeginSimpleQuery2(string text, string mimeType, string source, string queryDomain, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("SimpleQuery2", new object[] {
text,
mimeType,
source,
queryDomain}, callback, asyncState);
}
public SearchResult EndSimpleQuery2(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((SearchResult)(results[0]));
}
///
///Common Interface to get more results from Beagle
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.gnome.org/projects/beagle/webservices/GetMoreResults",RequestNamespace="http://www.gnome.org/projects/beagle/webservices",ResponseNamespace="http://www.gnome.org/projects/beagle/webservices",ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public SearchResult GetResults(GetResultsRequest req) {
object[] results = this.Invoke("GetResults", new object[] {
req});
return ((SearchResult)(results[0]));
}
public System.IAsyncResult BeginGetResults(GetResultsRequest req, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetResults", new object[] {
req}, callback, asyncState);
}
public SearchResult EndGetResults(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((SearchResult)(results[0]));
}
///
///Common Interface to get Snippets for results
///
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://www.gnome.org/projects/beagle/webservices/GetSnippets",RequestNamespace="http://www.gnome.org/projects/beagle/webservices",ResponseNamespace="http://www.gnome.org/projects/beagle/webservices",ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped,Use=System.Web.Services.Description.SoapBindingUse.Literal)]
public HitSnippet[] GetSnippets(GetSnippetsRequest req) {
object[] results = this.Invoke("GetSnippets", new object[] {
req});
return ((HitSnippet[])(results[0]));
}
public System.IAsyncResult BeginGetSnippets(GetSnippetsRequest req, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("GetSnippets", new object[] {
req}, callback, asyncState);
}
public HitSnippet[] EndGetSnippets(System.IAsyncResult asyncResult) {
object[] results = this.EndInvoke(asyncResult);
return ((HitSnippet[])(results[0]));
}
}
///
[Serializable()]
[System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public class SearchRequest {
///
public string[] text;
///
public string[] mimeType;
///
public string[] searchSources;
///
public QueryDomain qdomain;
///
public int searchId;
///
public int hopCount;
}
/*
///
[Serializable()]
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public enum QueryDomain {
///
Local,
///
System,
///
Neighborhood,
///
Global,
}
*/
///
[Serializable()]
[System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public class SearchResult {
///
public int statusCode;
///
public string statusMsg;
///
public string searchToken;
///
public int firstResultIndex;
///
public int numResults;
///
public int totalResults;
///
public HitResult[] hitResults;
}
///
[Serializable()]
[System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public class HitResult {
///
public string uri;
///
public string resourceType;
///
public string mimeType;
///
public string source;
///
public double score;
///
public HitProperty[] properties;
///
public int hashCode;
///
public string snippet;
}
///
[Serializable()]
[System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public class HitProperty {
///
public string PKey;
///
public string PVal;
///
public bool IsMutable;
///
public bool IsSearched;
}
///
[Serializable()]
[System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public class GetResultsRequest {
///
public string searchToken;
///
public int startIndex;
}
///
[Serializable()]
[System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public class GetSnippetsRequest {
///
public string searchToken;
///
[System.Xml.Serialization.XmlArrayItem(IsNullable=false)]
public int[] hitHashCodes;
}
///
[Serializable()]
[System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
public class HitSnippet {
///
public int hashCode;
///
public string snippet;
}
}