electric.proxy
Interface IReference

All Known Subinterfaces:
IChainedReference
All Known Implementing Classes:
ChainedReference, JavaToSOAP, ObjectService, RebindReference, ReferenceChain, StatelessSessionBeanService, VirtualService

public interface IReference

IReference is the interface that must be implemented by any reference to a service. It declares a family of methods for invoking an operation on a service, as well as a method for obtaining a string representation of the reference for later use with Registry.bind().

Author:
webMethods

Method Summary
 WSDL getWSDL()
          Return WSDL for the service that I reference.
 Value invoke(java.lang.reflect.Method method, java.lang.Object[] args, Context context)
          Invoke the operation associated with a particular method, using the specified arguments.
 Value invoke(java.lang.String method, java.lang.Object[] args, java.lang.Class[] argTypes, Context context)
          Invoke the operation associated with a particular method, using the specified arguments and argument types.
 Value invoke(java.lang.String method, java.lang.String[] args, Context context)
          Invoke the operation associated with a particular method, using the specified arguments.
 

Method Detail

getWSDL

public WSDL getWSDL()
Return WSDL for the service that I reference.


invoke

public Value invoke(java.lang.reflect.Method method,
                    java.lang.Object[] args,
                    Context context)
             throws java.lang.Throwable
Invoke the operation associated with a particular method, using the specified arguments.

Parameters:
method - The method to invoke
args - The arguments.
context - The context.
Throws:
java.lang.Throwable - If an exception occurs.

invoke

public Value invoke(java.lang.String method,
                    java.lang.Object[] args,
                    java.lang.Class[] argTypes,
                    Context context)
             throws java.lang.Throwable
Invoke the operation associated with a particular method, using the specified arguments and argument types. If more than one operation matches the method name and argument types, a NoSuchMethodException is thrown. The reason for allowing the argument types to be specified is to allow an argument of type Integer to be disambiguated from an argument of type int that has been wrapped in its Object equivalent.

Parameters:
method - The name of the method to invoke
args - The arguments.
argTypes - The type of the arguments.
context - The context.
Throws:
java.lang.Throwable - If an exception occurs.

invoke

public Value invoke(java.lang.String method,
                    java.lang.String[] args,
                    Context context)
             throws java.lang.Throwable
Invoke the operation associated with a particular method, using the specified arguments. If more than one operation matches the method name and argument count, a NoSuchMethodException is thrown.

Parameters:
method - The name of the method to invoke
args - The arguments, expressed as strings.
context - The context.
Throws:
java.lang.Throwable - If an exception occurs.


copyright© 2001-2004 by webMethods All Rights Reserved.