KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openharmonise > webdav > client > webservice > SearchDetailsService


1 /*
2  * The contents of this file are subject to the
3  * Mozilla Public License Version 1.1 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at http://www.mozilla.org/MPL/
6  *
7  * Software distributed under the License is distributed on an "AS IS"
8  * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
9  * See the License for the specific language governing rights and
10  * limitations under the License.
11  *
12  * The Initial Developer of the Original Code is Simulacra Media Ltd.
13  * Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
14  *
15  * All Rights Reserved.
16  *
17  * Contributor(s):
18  */

19 package org.openharmonise.webdav.client.webservice;
20
21 import java.net.URL JavaDoc;
22 import java.util.ArrayList JavaDoc;
23 import java.util.List JavaDoc;
24
25 import javax.xml.namespace.QName JavaDoc;
26 import javax.xml.rpc.ServiceException JavaDoc;
27
28 import org.apache.axis.client.*;
29
30 /**
31  * Web Service which provides functionality that WebDAV does not.
32  *
33  * @author Matthew Large
34  * @version $Revision: 1.2 $
35  *
36  */

37 public class SearchDetailsService {
38     public static final String JavaDoc SIMULACRA_WEBSERVICE_NAMESPACE_URI =
39       "webservice.server.dav.openharmonise.org";
40     
41       /**
42        *
43        */

44       public SearchDetailsService() {
45           super();
46       }
47
48     
49     /**
50      * Returns the list of stop words used by server when indexing
51      * content
52      *
53      * @param endpoint
54      * @return
55      * @throws java.rmi.RemoteException
56      * @throws ServiceException
57      */

58     public static List JavaDoc getStopWords(URL JavaDoc endpoint)
59       throws java.rmi.RemoteException JavaDoc, ServiceException JavaDoc {
60
61       Service service = new Service();
62       Call call = (Call) service.createCall();
63
64       call.setTargetEndpointAddress(endpoint);
65       call.setOperationName(
66         new QName JavaDoc(SIMULACRA_WEBSERVICE_NAMESPACE_URI, "getIndexerStopWords"));
67
68       call.setReturnType(org.apache.axis.Constants.SOAP_ARRAY);
69       call.setReturnClass(ArrayList JavaDoc.class);
70
71       List JavaDoc ret =
72         (List JavaDoc) call.invoke((Object JavaDoc[])null);
73
74       return ret;
75     }
76     
77     
78     
79   }
80
Popular Tags