com.funambol.ws.util
Class WSTools

java.lang.Object
  extended bycom.funambol.ws.util.WSTools

public class WSTools
extends java.lang.Object

This class groups some utility methods for WS invoking and handling


Field Summary
static java.lang.String FAULT_DATA_STORE
           
static java.lang.String FAULT_UNAUTHORIZED
           
 
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
 

Field Detail

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
Constructor Detail

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
Method Detail

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 invoke
args - 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.