org.ws4d.java.client
Class InvokeUtil

java.lang.Object
  extended by org.ws4d.java.client.InvokeUtil

public class InvokeUtil
extends java.lang.Object

This utility class allows the invocation of a Web Service action without WSDL parsing or discovery.


Constructor Summary
InvokeUtil()
           
 
Method Summary
static ParameterValue invoke(URI address, java.lang.String actionUri, ParameterValue value)
          Invokes the operation of a Web Service with given address and input action URI.
static ParameterValue invokeAny(java.lang.String actionUri, ParameterValue value)
          Invokes the operation of a Web Service with given input action URI.
static void invokeAnyOneWay(java.lang.String actionUri, ParameterValue value)
          Invokes the one-way operation of a Web Service with given input action URI.
static void invokeOneWay(URI address, java.lang.String actionUri, ParameterValue value)
          Invokes the one-way operation of a Web Service with given address and input action URI.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InvokeUtil

public InvokeUtil()
Method Detail

invokeAnyOneWay

public static void invokeAnyOneWay(java.lang.String actionUri,
                                   ParameterValue value)
Invokes the one-way operation of a Web Service with given input action URI.

This method tries to discover the Web Service. The first service which matches the port type is used. The port type is to be extracted from the input action URI.

Parameters:
actionUri - the input action URI of the operation
value - the request value for the operation

invokeAny

public static ParameterValue invokeAny(java.lang.String actionUri,
                                       ParameterValue value)
                                throws InvocationException,
                                       TimeoutException
Invokes the operation of a Web Service with given input action URI.

This method tries to discover the Web Service. The first service which matches the port type is to be used. The port type is to be extracted from the input action URI.

Parameters:
actionUri - the input action URI of the operation
value - the request value for the operation
Returns:
the value of the response
Throws:
InvocationException
TimeoutException

invokeOneWay

public static void invokeOneWay(URI address,
                                java.lang.String actionUri,
                                ParameterValue value)
Invokes the one-way operation of a Web Service with given address and input action URI.

Parameters:
actionUri - the input action URI of the operation
value - the request value for the operation
Throws:
InvocationException
TimeoutException

invoke

public static ParameterValue invoke(URI address,
                                    java.lang.String actionUri,
                                    ParameterValue value)
                             throws InvocationException,
                                    TimeoutException
Invokes the operation of a Web Service with given address and input action URI.

Parameters:
actionUri - the input action URI of the operation
value - the request value for the operation
Returns:
the value of the response
Throws:
InvocationException
TimeoutException