com.funambol.ws.util
Class WSTools
java.lang.Object
com.funambol.ws.util.WSTools
- public class WSTools
- extends java.lang.Object
This class groups some utility methods for WS invoking and handling
Constructor Summary |
WSTools(java.lang.String endpoint,
java.lang.String username,
java.lang.String password)
Creates a new WSTools with the given endpoint |
Method Summary |
java.lang.Object |
invoke(java.lang.String methodName,
java.lang.Object[] args)
Invokes the given WS method with the given objects. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FAULT_UNAUTHORIZED
public static final java.lang.String FAULT_UNAUTHORIZED
- See Also:
- Constant Field Values
FAULT_DATA_STORE
public static final java.lang.String FAULT_DATA_STORE
- See Also:
- Constant Field Values
WSTools
public WSTools(java.lang.String endpoint,
java.lang.String username,
java.lang.String password)
throws com.funambol.framework.engine.source.SyncSourceException
- Creates a new WSTools with the given endpoint
- Parameters:
endpoint
- the endpoint
invoke
public java.lang.Object invoke(java.lang.String methodName,
java.lang.Object[] args)
throws com.funambol.framework.engine.source.SyncSourceException
- Invokes the given WS method with the given objects.
- Parameters:
methodName
- the method to invokeargs
- the call arguments
- Returns:
- the object returned by the invoked method
- Throws:
AdminExcheption
- in case of SyncAdmin or administration errors
com.funambol.framework.engine.source.SyncSourceException
Copyright © 2005-2006 Funambol.