electric.soap.java.reference
Class JavaToSOAP

java.lang.Object
  extended byelectric.soap.references.chain.ChainedSOAPReference
      extended byelectric.soap.java.reference.JavaToSOAP
All Implemented Interfaces:
IChainedSOAPReference, IEXMLLoggingConstants, IGLUEContextConstants, IGLUELoggingConstants, ILoggingConstants, IReference, ISOAPConstants, ISOAPHandler, ISOAPReference

public final class JavaToSOAP
extends ChainedSOAPReference
implements IReference, ISOAPConstants, IGLUELoggingConstants, IGLUEContextConstants

JavaToSOAP converts a Java method call into a SOAP invocation, which is then chained to another ISOAPHandler.

Author:
webMethods

Field Summary
 
Fields inherited from class electric.soap.references.chain.ChainedSOAPReference
nextReference
 
Fields inherited from interface electric.soap.ISOAPConstants
ACTOR, ASYNC, BODY, DETAIL, ENCODING_STYLE, ENVELOPE, EXCEPTION, FAULT, FAULT_ACTOR, FAULT_CODE, FAULT_STRING, GET_SOAP_ACTOR, GET_SOAP_CODE, HEADER, MUST_UNDERSTAND, NEXT_ACTOR, OPTIMIZED_HEADER, SET_SOAP_ACTOR, SET_SOAP_CODE, SET_SOAP_DETAIL, SOAP_ACTION_HEADER, SOAP_BINDING, SOAP_ENCODING, SOAP_ENCODING_PREFIX, SOAP_ENVELOPE, SOAP_HTTP_TRANSPORT, SOAP_PREFIX, SOAP11_BINDING, SOAP11_ENCODING, SOAP11_ENVELOPE, SOAP12, SOAP12_BINDING, SOAP12_ENCODING, SOAP12_ENVELOPE, SOAP12_HTTP_CONTENT_TYPE, STACKTRACE, TME_PREFIX, UNDERSTOOD, XSD_PREFIX, XSI_PREFIX, XSI_SUFFIX
 
Fields inherited from interface electric.glue.IGLUELoggingConstants
CLUSTER_DEBUG_EVENT, CLUSTER_EVENT, CONSOLE_DEBUG_EVENT, DEPLOY_EVENT, DETECTORS_EVENT, HTTP_EVENT, JMS_EVENT, REBINDING_EVENT, SECURITY_DEBUG_EVENT, SECURITY_DETAIL_EVENT, SERVLET_EVENT, SOAP_EVENT
 
Fields inherited from interface electric.xml.IEXMLLoggingConstants
MAPPING_EVENT, SCHEMA_EVENT
 
Fields inherited from interface electric.util.log.ILoggingConstants
CLASSLOADER_EVENT, COMMAND_EVENT, COMMENT_EVENT, CONFIG_EVENT, DEBUG_EVENT, ELECTRIC_LOGGING_PROPERTY, ERROR_EVENT, EXCEPTION_EVENT, FILE_EVENT, LICENSE_EVENT, RESOURCES_EVENT, SECURITY_EVENT, SHUTDOWN_EVENT, SOURCE_EVENT, SQL_EVENT, STARTUP_EVENT, WARNING_EVENT
 
Fields inherited from interface electric.glue.IGLUEContextConstants
ACTIVATION, APPLICATION, ATTACHMENT_STYLE, AUTH_METHOD, AUTH_PASSWORD, AUTH_SESSION_STATE, AUTH_USER, AUTHENTICATE, CLASS_LOADERS, CLASS_NAME, CLIENT_ID, CLIENT_SOCKET_READ_TIMEOUT, CONSTRUCTOR, CONTENT_TYPE, COOKIE_LISTENER, DATA_DIRECTORY, DATA_HANDLER, DATABASE, DATABASE_PERSISTENCE, DELETE, DESCRIPTION, DIME, DOC_BASE, DOCUMENT, DYNAMIC_OPERATIONS, ENCODED, ENDPOINT, FACTORY, FOLLOW_REDIRECTS, FORCE_ATTACHMENT_STYLE, FORWARD_INTERMEDIARY, GUARD, HTTP_REGISTRY_ROOT, HTTP_REQUEST, HTTP_RESPONSE, HTTP_SERVLET_CONFIG, INBOUND_SOAP_REQUEST_INTERCEPTOR, INBOUND_SOAP_RESPONSE_INTERCEPTOR, INSTRUMENTATION_LISTENER, INSTRUMENTOR, INTERFACE, INVOCATION_LISTENER, JNDI_PROPERTIES, KEEP_ALIVE, LAZY, LITERAL, LOCAL_ADDRESS, MESSAGE_NAME, METHOD, MIME, NAMESPACE, NET_EVENT_REAPER_CYCLE, NET_EVENT_REAPER_EXPIRY_PERIOD, NET_EVENT_RETRY_PERIOD, OUTBOUND_SOAP_REQUEST_INTERCEPTOR, OUTBOUND_SOAP_RESPONSE_INTERCEPTOR, PERSISTENCE_TYPE, PRIORITY, PROXY_HOST, PROXY_PASSWORD, PROXY_PORT, PROXY_USER, PUBLISH, QUERY_STRING, REALM, REGISTRY_ROOT, RESPONSE_UNREFED_ATTACHMENTS, RETURN_NAME, ROLE, RP_NAMESPACE, RPC, SERVICE, SERVICE_CONTEXT, SERVLET_NAME, SERVLET_PATH, SIGNATURE, SMART_CONNECTIONS, SOAP_ACTION, SOAP_ENCODING_STYLE, SOAP_PERSONALITY, SOAP_REQUEST, SOAP_VERSION, SSL_KEY_MANAGER, SSL_TRUST_MANAGER, STYLE, TARGET_NAMESPACE, TRANSACTION, TRANSPORT_SOURCE, UNREFED_ATTACHMENTS, USE, WSDL_NAME, WSDL_PERSONALITY, WSS_CONTEXT, XML_ENCODING, XML_INCLUDE, XML_PERSISTENCE
 
Constructor Summary
JavaToSOAP(XURL endpoint, ISOAPReference nextReference, Context proxyContext)
           
 
Method Summary
 XURL getEndpoint()
           
 Operations getOperations()
           
 WSDL getWSDL()
          Return WSDL for the service that I reference.
 SOAPMessage handle(SOAPMessage request, Context messageContext)
          Handle the specified SOAP request and return the SOAP response.
 Value invoke(java.lang.reflect.Method method, java.lang.Object[] args, Context proxyContext)
          Invoke the operation associated with a particular method, using the specified arguments.
 Value invoke(SOAPOperation operation, java.lang.Object[] args)
           
 Value invoke(java.lang.String method, java.lang.Object[] args, java.lang.Class[] argTypes, Context proxyContext)
          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 proxyContext)
          Invoke the operation associated with a particular method, using the specified arguments.
 java.lang.String toString()
           
 
Methods inherited from class electric.soap.references.chain.ChainedSOAPReference
getNextReference, setNextReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JavaToSOAP

public JavaToSOAP(XURL endpoint,
                  ISOAPReference nextReference,
                  Context proxyContext)
Parameters:
endpoint -
nextReference -
proxyContext -
Method Detail

toString

public java.lang.String toString()

handle

public SOAPMessage handle(SOAPMessage request,
                          Context messageContext)
                   throws java.rmi.RemoteException,
                          java.lang.SecurityException
Description copied from interface: ISOAPHandler
Handle the specified SOAP request and return the SOAP response.

Specified by:
handle in interface ISOAPHandler
Parameters:
request -
messageContext -
Throws:
java.rmi.RemoteException
java.lang.SecurityException

getWSDL

public WSDL getWSDL()
Description copied from interface: IReference
Return WSDL for the service that I reference.

Specified by:
getWSDL in interface IReference

getEndpoint

public XURL getEndpoint()
Specified by:
getEndpoint in interface ISOAPReference

getOperations

public Operations getOperations()

invoke

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

Specified by:
invoke in interface IReference
Parameters:
method - The method to invoke
args - The arguments.
proxyContext - 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 proxyContext)
             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.

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

invoke

public Value invoke(java.lang.String method,
                    java.lang.String[] args,
                    Context proxyContext)
             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.

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

invoke

public Value invoke(SOAPOperation operation,
                    java.lang.Object[] args)
             throws java.rmi.RemoteException,
                    java.lang.SecurityException
Parameters:
operation -
args -
Throws:
java.rmi.RemoteException
java.lang.SecurityException


copyright© 2001-2004 by webMethods All Rights Reserved.