/*
* The contents of this file are subject to the
* Mozilla Public License Version 1.1 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at http://www.mozilla.org/MPL/
*
* Software distributed under the License is distributed on an "AS IS"
* basis, WITHOUT WARRANTY OF ANY KIND, either express or implied.
* See the License for the specific language governing rights and
* limitations under the License.
*
* The Initial Developer of the Original Code is Simulacra Media Ltd.
* Portions created by Simulacra Media Ltd are Copyright (C) Simulacra Media Ltd, 2004.
*
* All Rights Reserved.
*
* Contributor(s):
*/
package org.openharmonise.webdav.client.webservice;
import java.net.URL;
import java.util.ArrayList;
import java.util.List;
import javax.xml.namespace.QName;
import javax.xml.rpc.ServiceException;
import org.apache.axis.client.*;
/**
* Web Service which provides functionality that WebDAV does not.
*
* @author Matthew Large
* @version $Revision: 1.2 $
*
*/
public class SearchDetailsService {
public static final String SIMULACRA_WEBSERVICE_NAMESPACE_URI =
"webservice.server.dav.openharmonise.org";
/**
*
*/
public SearchDetailsService() {
super();
}
/**
* Returns the list of stop words used by server when indexing
* content
*
* @param endpoint
* @return
* @throws java.rmi.RemoteException
* @throws ServiceException
*/
public static List getStopWords(URL endpoint)
throws java.rmi.RemoteException, ServiceException {
Service service = new Service();
Call call = (Call) service.createCall();
call.setTargetEndpointAddress(endpoint);
call.setOperationName(
new QName(SIMULACRA_WEBSERVICE_NAMESPACE_URI, "getIndexerStopWords"));
call.setReturnType(org.apache.axis.Constants.SOAP_ARRAY);
call.setReturnClass(ArrayList.class);
List ret =
(List) call.invoke((Object[])null);
return ret;
}
}
|