electric.soap.local.reference
Class SOAPLocalTransport

java.lang.Object
  extended byelectric.soap.local.reference.SOAPLocalTransport
All Implemented Interfaces:
ISOAPHandler, ISOAPReference

public class SOAPLocalTransport
extends java.lang.Object
implements ISOAPReference

SOAPLocalTransport behaves like a soap transport, but instead of sending the message out over a network, it calls an in-container service directly.

Author:
webMethods
See Also:
HTTPToSOAP, JMSToSOAP

Constructor Summary
SOAPLocalTransport(XURL endpoint, IService service)
           
 
Method Summary
 XURL getEndpoint()
           
 IService getService()
          Return the service we're short-circuited to,
 WSDL getWSDL()
          Get the WSDL directly from our service.
 SOAPMessage handle(SOAPMessage soapRequest, Context messageContext)
          Calls the service using the service's handler chain.
 ISOAPReference next()
          Always return null, since we're the end of the reference chain.
 void setNext(ISOAPReference reference)
          Ignored, since we're always the end of the reference chain.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SOAPLocalTransport

public SOAPLocalTransport(XURL endpoint,
                          IService service)
Parameters:
endpoint -
service -
Method Detail

getService

public IService getService()
Return the service we're short-circuited to,


getWSDL

public WSDL getWSDL()
Get the WSDL directly from our service.

Specified by:
getWSDL in interface ISOAPReference

getEndpoint

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

next

public ISOAPReference next()
Always return null, since we're the end of the reference chain.


setNext

public void setNext(ISOAPReference reference)
Ignored, since we're always the end of the reference chain.

Parameters:
reference -

handle

public SOAPMessage handle(SOAPMessage soapRequest,
                          Context messageContext)
                   throws java.rmi.RemoteException,
                          java.lang.SecurityException
Calls the service using the service's handler chain. (Calling the service directly using invoke would bypass logging, interceptors and security.)

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


copyright© 2001-2004 by webMethods All Rights Reserved.