org.apache.wsif.base
Class WSIFClientProxy

java.lang.Object
  extended byorg.apache.wsif.base.WSIFClientProxy
All Implemented Interfaces:
java.lang.reflect.InvocationHandler

public class WSIFClientProxy
extends java.lang.Object
implements java.lang.reflect.InvocationHandler

WSIFClientProxy is a dynamic proxy (or stub) used by the WSIFServiceImpl when the application is using the stubs to invoke the web service. A WSIFClientProxy is created using the static newInstance method. A WSIFClientProxy dynamically implements exactly one interface passed by the application. This class invokes the web service using the WSIFOperation and WSIFPort interfaces and so is independent of any provider implementation. Operation overloading is supported.

Author:
Owen Burroughs , Ant Elder , Jeremy Hughes , Mark Whitlock , Nirmal Mukhi

Method Summary
 java.lang.String deep()
           
 java.lang.Object getProxy()
           
 java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
          Invoke a user method.
static WSIFClientProxy newInstance(java.lang.Class iface, javax.wsdl.Definition def, java.lang.String serviceNS, java.lang.String serviceName, java.lang.String portTypeNS, java.lang.String portTypeName, WSIFDynamicTypeMap typeMap)
          Factory method to create a new dynamic proxy.
 void setPort(WSIFPort wsifport)
          Select which port to use for this proxy.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

newInstance

public static WSIFClientProxy newInstance(java.lang.Class iface,
                                          javax.wsdl.Definition def,
                                          java.lang.String serviceNS,
                                          java.lang.String serviceName,
                                          java.lang.String portTypeNS,
                                          java.lang.String portTypeName,
                                          WSIFDynamicTypeMap typeMap)
                                   throws WSIFException
Factory method to create a new dynamic proxy.

Parameters:
iface - the user interface that is to be dynamically implemented
def - the WSDL definition
serviceNS - WSDL service namespace
serviceName - WSDL service name
portTypeNS - WSDL port type namespace
portTypeName - WSDL port type name
typeMap - table of mappings between XML and Java types
Returns:
the new WSIFClientProxy
Throws:
WSIFException

getProxy

public java.lang.Object getProxy()

setPort

public void setPort(WSIFPort wsifport)
Select which port to use for this proxy.


invoke

public java.lang.Object invoke(java.lang.Object proxy,
                               java.lang.reflect.Method method,
                               java.lang.Object[] args)
                        throws java.lang.Throwable
Invoke a user method. The java proxy support calls this method.

Specified by:
invoke in interface java.lang.reflect.InvocationHandler
Throws:
java.lang.Throwable

deep

public java.lang.String deep()


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.