1 // ------------------------------------------------------------------------------
3 // This code was generated by a tool.
4 // Mono Runtime Version: 1.1.4322.573
6 // Changes to this file may cause incorrect behavior and will be lost if
7 // the code is regenerated.
9 // ------------------------------------------------------------------------------
12 // This source code was auto-generated by Mono Web Services Description Language Utility
16 namespace Beagle
.Daemon
20 ///Web Service Interface to Beagle
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";
34 public BeagleWebService (string Hostname
, string Port
) {
36 if (Hostname
== null || Hostname
== "")
37 this.hostname
= "localhost";
39 this.hostname
= Hostname
;
41 this.Url
= "http://" + this.hostname
+ ":" + this.port
+ "/beagle/search.asmx";
45 public string Hostname
{
46 get {return hostname;}
49 this.Url
= "http://" + this.hostname
+ ":" + this.port
+ "/beagle/search.asmx";
57 this.Url
= "http://" + this.hostname
+ ":" + this.port
+ "/beagle/search.asmx";
62 ///Full object interface to Beagle
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[] {
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]));
82 ///Simple Interface to Beagle
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[] {
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]));
102 ///Full text Interface to Beagle
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[] {
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[] {
119 queryDomain
}, callback
, asyncState
);
122 public SearchResult
EndSimpleQuery2(System
.IAsyncResult asyncResult
) {
123 object[] results
= this.EndInvoke(asyncResult
);
124 return ((SearchResult
)(results
[0]));
128 ///Common Interface to get more results from Beagle
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[] {
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]));
148 ///Common Interface to get Snippets for results
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[] {
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]));
170 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
171 public class SearchRequest
{
174 public string[] text
;
177 public string[] mimeType
;
180 public string[] searchSources
;
183 public QueryDomain qdomain
;
195 [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.gnome.org/projects/beagle/webservices")]
196 public enum QueryDomain {
214 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
215 public class SearchResult
{
218 public int statusCode
;
221 public string statusMsg
;
224 public string searchToken
;
227 public int firstResultIndex
;
230 public int numResults
;
233 public int totalResults
;
236 public HitResult
[] hitResults
;
241 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
242 public class HitResult
{
248 public string resourceType
;
251 public string mimeType
;
254 public string source
;
260 public HitProperty
[] properties
;
266 public string snippet
;
271 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
272 public class HitProperty
{
281 public bool IsMutable
;
284 public bool IsSearched
;
289 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
290 public class GetResultsRequest
{
293 public string searchToken
;
296 public int startIndex
;
301 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
302 public class GetSnippetsRequest
{
305 public string searchToken
;
308 [System
.Xml
.Serialization
.XmlArrayItem(IsNullable
=false)]
309 public int[] hitHashCodes
;
314 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
315 public class HitSnippet
{
321 public string snippet
;