groovyx.net.ws
Interface IWSClient<C>

All Known Implementing Classes:
AbstractCXFWSClient, WSClient

public interface IWSClient<C>

Interface for a WSClient. The generic type C refers to a client implementation.

Since:
0.5
Author:
Dennis Bayer

Method Summary
 C createClient(java.lang.Object... args)
          Factory method to create the webservices client.
 void initialize()
          Initializes the client.
 java.lang.Object invokeMethod(java.lang.String name, java.lang.Object args)
          Invokes the webservice-method.
 

Method Detail

invokeMethod

java.lang.Object invokeMethod(java.lang.String name,
                              java.lang.Object args)
Invokes the webservice-method.

Parameters:
name - The name of the method.
args - The arguments of the method.
Returns:
The result of the call.

createClient

C createClient(java.lang.Object... args)
Factory method to create the webservices client.

Parameters:
args - The arguments needed for the initialization of the client.
Returns:
An instance of C.

initialize

void initialize()
Initializes the client.