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
14 namespace Beagle
.Daemon
18 ///Web Service Interface to Beagle
20 [System
.Web
.Services
.WebServiceBinding(Name
="BeagleWebServiceSoap",Namespace
="http://www.gnome.org/projects/beagle/webservices"),
21 System
.Diagnostics
.DebuggerStepThroughAttribute(),
22 System
.ComponentModel
.DesignerCategoryAttribute("code")]
23 public class BeagleWebService
: System
.Web
.Services
.Protocols
.SoapHttpClientProtocol
{
25 public BeagleWebService () {
26 this.Url
= "http://localhost:8888/beagle/search.asmx";
29 string hostname
= "localhost";
32 public BeagleWebService (string Hostname
, string Port
) {
34 if (Hostname
== null || Hostname
== "")
35 this.hostname
= "localhost";
37 this.hostname
= Hostname
;
39 this.Url
= "http://" + this.hostname
+ ":" + this.port
+ "/beagle/search.asmx";
42 public string Hostname
{
43 get {return hostname;}
46 this.Url
= "http://" + this.hostname
+ ":" + this.port
+ "/beagle/search.asmx";
54 this.Url
= "http://" + this.hostname
+ ":" + this.port
+ "/beagle/search.asmx";
59 ///Full object interface to Beagle
61 [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
)]
62 public SearchResult
BeagleQuery(SearchRequest BeagleQueryRequest
) {
63 object[] results
= this.Invoke("BeagleQuery", new object[] {
65 return ((SearchResult
)(results
[0]));
68 public System
.IAsyncResult
BeginBeagleQuery(SearchRequest BeagleQueryRequest
, System
.AsyncCallback callback
, object asyncState
) {
69 return this.BeginInvoke("BeagleQuery", new object[] {
70 BeagleQueryRequest
}, callback
, asyncState
);
73 public SearchResult
EndBeagleQuery(System
.IAsyncResult asyncResult
) {
74 object[] results
= this.EndInvoke(asyncResult
);
75 return ((SearchResult
)(results
[0]));
79 ///Simple Interface to Beagle
81 [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
)]
82 public SearchResult
SimpleQuery(string text
) {
83 object[] results
= this.Invoke("SimpleQuery", new object[] {
85 return ((SearchResult
)(results
[0]));
88 public System
.IAsyncResult
BeginSimpleQuery(string text
, System
.AsyncCallback callback
, object asyncState
) {
89 return this.BeginInvoke("SimpleQuery", new object[] {
90 text
}, callback
, asyncState
);
93 public SearchResult
EndSimpleQuery(System
.IAsyncResult asyncResult
) {
94 object[] results
= this.EndInvoke(asyncResult
);
95 return ((SearchResult
)(results
[0]));
99 ///Full text Interface to Beagle
101 [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
)]
102 public SearchResult
SimpleQuery2(string text
, string mimeType
, string source
, string queryDomain
) {
103 object[] results
= this.Invoke("SimpleQuery2", new object[] {
108 return ((SearchResult
)(results
[0]));
111 public System
.IAsyncResult
BeginSimpleQuery2(string text
, string mimeType
, string source
, string queryDomain
, System
.AsyncCallback callback
, object asyncState
) {
112 return this.BeginInvoke("SimpleQuery2", new object[] {
116 queryDomain
}, callback
, asyncState
);
119 public SearchResult
EndSimpleQuery2(System
.IAsyncResult asyncResult
) {
120 object[] results
= this.EndInvoke(asyncResult
);
121 return ((SearchResult
)(results
[0]));
125 ///Common Interface to get more results from Beagle
127 [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
)]
128 public SearchResult
GetMoreResults(string searchToken
, int index
) {
129 object[] results
= this.Invoke("GetMoreResults", new object[] {
132 return ((SearchResult
)(results
[0]));
135 public System
.IAsyncResult
BeginGetMoreResults(string searchToken
, int index
, System
.AsyncCallback callback
, object asyncState
) {
136 return this.BeginInvoke("GetMoreResults", new object[] {
138 index
}, callback
, asyncState
);
141 public SearchResult
EndGetMoreResults(System
.IAsyncResult asyncResult
) {
142 object[] results
= this.EndInvoke(asyncResult
);
143 return ((SearchResult
)(results
[0]));
147 ///Common Interface to get Snippets for results
149 [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
)]
150 public HitSnippet
[] GetSnippets(string searchToken
, [System
.Xml
.Serialization
.XmlArrayItem(IsNullable
=false)]
152 object[] results
= this.Invoke("GetSnippets", new object[] {
155 return ((HitSnippet
[])(results
[0]));
158 public System
.IAsyncResult
BeginGetSnippets(string searchToken
, int[] hitIds
, System
.AsyncCallback callback
, object asyncState
) {
159 return this.BeginInvoke("GetSnippets", new object[] {
161 hitIds
}, callback
, asyncState
);
164 public HitSnippet
[] EndGetSnippets(System
.IAsyncResult asyncResult
) {
165 object[] results
= this.EndInvoke(asyncResult
);
166 return ((HitSnippet
[])(results
[0]));
171 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
172 public class SearchRequest
{
175 public string[] text
;
178 public string[] mimeType
;
181 public string[] searchSources
;
184 public QueryDomain qdomain
;
187 public int searchId
= 0;
190 public int hopCount
= 0;
195 [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://www.gnome.org/projects/beagle/webservices")]
196 public enum QueryDomain {
210 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
211 public class SearchResult
{
214 public int statusCode
;
217 public string statusMsg
;
220 public string searchToken
;
223 public int firstResultIndex
;
226 public int numResults
;
229 public int totalResults
;
232 public HitResult
[] hitResults
;
236 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
237 public class HitResult
{
246 public string resourceType
;
249 public string mimeType
;
252 public string source
;
255 public double scoreRaw
;
258 public double scoreMultiplier
;
261 public HitProperty
[] properties
;
264 public string snippet
;
268 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
269 public class HitProperty
{
278 public bool IsMutable
;
281 public bool IsSearched
;
285 [System
.Xml
.Serialization
.XmlType(Namespace
="http://www.gnome.org/projects/beagle/webservices")]
286 public class HitSnippet
{
292 public string snippet
;