org.apache.wsif.base
Class WSIFClientProxy
java.lang.Object
|
+--org.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 |
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 implementeddef
- the WSDL definitionserviceNS
- WSDL service namespaceserviceName
- WSDL service nameportTypeNS
- WSDL port type namespaceportTypeName
- WSDL port type nametypeMap
- 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 WSIFException
- Invoke a user method. The java proxy support calls this method.
The fault from the fault message is not passed back to caller
(but it should be). However none of the existing providers set
the fault message. I'm not sure what to do with the fault message
anyhow. I guess raise a WSIFException which is what the current
providers do with faults already.
- Specified by:
invoke
in interface java.lang.reflect.InvocationHandler
deep
public java.lang.String deep()
Copyright © 2002, 2002 Apache XML Project. All Rights Reserved.