cvsimport
[beagle.git] / beagled / WebServices / WebServiceProxy.cs
blob98f8e7530669c1e3667665060ebea044f1caf132
1 // ------------------------------------------------------------------------------
2 // <autogenerated>
3 // This code was generated by a tool.
4 // Mono Runtime Version: 1.1.4322.573
5 //
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
8 // </autogenerated>
9 // ------------------------------------------------------------------------------
11 //
12 // This source code was auto-generated by Mono Web Services Description Language Utility
14 using System;
16 namespace Beagle.Daemon
18 /// <remarks/>
19 /// <remarks>
20 ///Web Service Interface to Beagle
21 ///</remarks>
22 [System.Web.Services.WebServiceBinding(Name="BeagleWebServiceSoap",Namespace="http://www.gnome.org/projects/beagle/webservices"),
23 System.Diagnostics.DebuggerStepThroughAttribute(),
24 System.ComponentModel.DesignerCategoryAttribute("code")]
25 public class BeagleWebService: System.Web.Services.Protocols.SoapHttpClientProtocol {
27 public BeagleWebService () {
28 this.Url = "http://localhost:8888/beagle/search.asmx";
31 string hostname = "localhost";
32 string port = "8888";
34 public BeagleWebService (string Hostname, string Port) {
36 if (Hostname == null || Hostname == "")
37 this.hostname = "localhost";
38 else
39 this.hostname = Hostname;
41 this.Url = "http://" + this.hostname + ":" + this.port + "/beagle/search.asmx";
45 public string Hostname {
46 get {return hostname;}
47 set {
48 hostname = value;
49 this.Url = "http://" + this.hostname + ":" + this.port + "/beagle/search.asmx";
53 public string Port {
54 get {return port;}
55 set {
56 port = value;
57 this.Url = "http://" + this.hostname + ":" + this.port + "/beagle/search.asmx";
61 /// <remarks>
62 ///Full object interface to Beagle
63 ///</remarks>
64 [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)]
65 public SearchResult BeagleQuery(SearchRequest req) {
66 object[] results = this.Invoke("BeagleQuery", new object[] {
67 req});
68 return ((SearchResult)(results[0]));
71 public System.IAsyncResult BeginBeagleQuery(SearchRequest req, System.AsyncCallback callback, object asyncState) {
72 return this.BeginInvoke("BeagleQuery", new object[] {
73 req}, callback, asyncState);
76 public SearchResult EndBeagleQuery(System.IAsyncResult asyncResult) {
77 object[] results = this.EndInvoke(asyncResult);
78 return ((SearchResult)(results[0]));
81 /// <remarks>
82 ///Simple Interface to Beagle
83 ///</remarks>
84 [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)]
85 public SearchResult SimpleQuery(string text) {
86 object[] results = this.Invoke("SimpleQuery", new object[] {
87 text});
88 return ((SearchResult)(results[0]));
91 public System.IAsyncResult BeginSimpleQuery(string text, System.AsyncCallback callback, object asyncState) {
92 return this.BeginInvoke("SimpleQuery", new object[] {
93 text}, callback, asyncState);
96 public SearchResult EndSimpleQuery(System.IAsyncResult asyncResult) {
97 object[] results = this.EndInvoke(asyncResult);
98 return ((SearchResult)(results[0]));
101 /// <remarks>
102 ///Full text Interface to Beagle
103 ///</remarks>
104 [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)]
105 public SearchResult SimpleQuery2(string text, string mimeType, string source, string queryDomain) {
106 object[] results = this.Invoke("SimpleQuery2", new object[] {
107 text,
108 mimeType,
109 source,
110 queryDomain});
111 return ((SearchResult)(results[0]));
114 public System.IAsyncResult BeginSimpleQuery2(string text, string mimeType, string source, string queryDomain, System.AsyncCallback callback, object asyncState) {
115 return this.BeginInvoke("SimpleQuery2", new object[] {
116 text,
117 mimeType,
118 source,
119 queryDomain}, callback, asyncState);
122 public SearchResult EndSimpleQuery2(System.IAsyncResult asyncResult) {
123 object[] results = this.EndInvoke(asyncResult);
124 return ((SearchResult)(results[0]));
127 /// <remarks>
128 ///Common Interface to get more results from Beagle
129 ///</remarks>
130 [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)]
131 public SearchResult GetResults(GetResultsRequest req) {
132 object[] results = this.Invoke("GetResults", new object[] {
133 req});
134 return ((SearchResult)(results[0]));
137 public System.IAsyncResult BeginGetResults(GetResultsRequest req, System.AsyncCallback callback, object asyncState) {
138 return this.BeginInvoke("GetResults", new object[] {
139 req}, callback, asyncState);
142 public SearchResult EndGetResults(System.IAsyncResult asyncResult) {
143 object[] results = this.EndInvoke(asyncResult);
144 return ((SearchResult)(results[0]));
147 /// <remarks>
148 ///Common Interface to get Snippets for results
149 ///</remarks>
150 [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)]
151 public HitSnippet[] GetSnippets(GetSnippetsRequest req) {
152 object[] results = this.Invoke("GetSnippets", new object[] {
153 req});
154 return ((HitSnippet[])(results[0]));
157 public System.IAsyncResult BeginGetSnippets(GetSnippetsRequest req, System.AsyncCallback callback, object asyncState) {
158 return this.BeginInvoke("GetSnippets", new object[] {
159 req}, callback, asyncState);
162 public HitSnippet[] EndGetSnippets(System.IAsyncResult asyncResult) {
163 object[] results = this.EndInvoke(asyncResult);
164 return ((HitSnippet[])(results[0]));
168 /// <remarks/>
169 [Serializable()]
170 [System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
171 public class SearchRequest {
173 /// <remarks/>
174 public string[] text;
176 /// <remarks/>
177 public string[] mimeType;
179 /// <remarks/>
180 public string[] searchSources;
182 /// <remarks/>
183 public QueryDomain qdomain;
185 /// <remarks/>
186 public int searchId;
188 /// <remarks/>
189 public int hopCount;
193 /// <remarks/>
194 [Serializable()]
195 [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.gnome.org/projects/beagle/webservices")]
196 public enum QueryDomain {
198 /// <remarks/>
199 Local,
201 /// <remarks/>
202 System,
204 /// <remarks/>
205 Neighborhood,
207 /// <remarks/>
208 Global,
212 /// <remarks/>
213 [Serializable()]
214 [System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
215 public class SearchResult {
217 /// <remarks/>
218 public int statusCode;
220 /// <remarks/>
221 public string statusMsg;
223 /// <remarks/>
224 public string searchToken;
226 /// <remarks/>
227 public int firstResultIndex;
229 /// <remarks/>
230 public int numResults;
232 /// <remarks/>
233 public int totalResults;
235 /// <remarks/>
236 public HitResult[] hitResults;
239 /// <remarks/>
240 [Serializable()]
241 [System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
242 public class HitResult {
244 /// <remarks/>
245 public string uri;
247 /// <remarks/>
248 public string resourceType;
250 /// <remarks/>
251 public string mimeType;
253 /// <remarks/>
254 public string source;
256 /// <remarks/>
257 public double score;
259 /// <remarks/>
260 public HitProperty[] properties;
262 /// <remarks/>
263 public int hashCode;
265 /// <remarks/>
266 public string snippet;
269 /// <remarks/>
270 [Serializable()]
271 [System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
272 public class HitProperty {
274 /// <remarks/>
275 public string PKey;
277 /// <remarks/>
278 public string PVal;
280 /// <remarks/>
281 public bool IsMutable;
283 /// <remarks/>
284 public bool IsSearched;
287 /// <remarks/>
288 [Serializable()]
289 [System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
290 public class GetResultsRequest {
292 /// <remarks/>
293 public string searchToken;
295 /// <remarks/>
296 public int startIndex;
299 /// <remarks/>
300 [Serializable()]
301 [System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
302 public class GetSnippetsRequest {
304 /// <remarks/>
305 public string searchToken;
307 /// <remarks/>
308 [System.Xml.Serialization.XmlArrayItem(IsNullable=false)]
309 public int[] hitHashCodes;
312 /// <remarks/>
313 [Serializable()]
314 [System.Xml.Serialization.XmlType(Namespace="http://www.gnome.org/projects/beagle/webservices")]
315 public class HitSnippet {
317 /// <remarks/>
318 public int hashCode;
320 /// <remarks/>
321 public string snippet;