WebLogic Server 7.0 Code Examples, BEA Systems, Inc.

examples.webservices.handler.nocomponent
Class EchoStringHandler

java.lang.Object
  |
  +--weblogic.webservice.GenericHandler
        |
        +--examples.webservices.handler.nocomponent.EchoStringHandler
All Implemented Interfaces:
javax.xml.rpc.handler.Handler

public final class EchoStringHandler
extends weblogic.webservice.GenericHandler

Class that implements the weblogic.webservice.GenericHandler abstract class. The GenericHandler class implements the javax.xml.rpc.handler.Handler interface.

This class accesses the SOAP request message. Because the Web service does not use a backend component, the class creates a SOAP response message that is sent back to the client application that invoked it.

The class only implements the handleRequest and handleResponse methods - it does not implement the init, destroy, handleFault, and getHeaders methods.

Author:
Copyright (c) 2002 by BEA Systems. All Rights Reserved.

Constructor Summary
EchoStringHandler()
           
 
Method Summary
 boolean handleRequest(javax.xml.rpc.handler.MessageContext messageContext)
          Specifies that when the Web service receives the SOAP request message, a message be logged to the log file.
 boolean handleResponse(javax.xml.rpc.handler.MessageContext messageContext)
          Creates a SOAP response message.
 
Methods inherited from class weblogic.webservice.GenericHandler
destroy, getHandlerInfo, getHeaders, handleFault, init
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EchoStringHandler

public EchoStringHandler()
Method Detail

handleRequest

public boolean handleRequest(javax.xml.rpc.handler.MessageContext messageContext)
Specifies that when the Web service receives the SOAP request message, a message be logged to the log file.
Overrides:
handleRequest in class weblogic.webservice.GenericHandler

handleResponse

public boolean handleResponse(javax.xml.rpc.handler.MessageContext messageContext)
Creates a SOAP response message. This is necessary because the Web service does not invoke a backend component.
Overrides:
handleResponse in class weblogic.webservice.GenericHandler

Documentation is available at
http://e-docs.bea.com/wls/docs70

Copyright © 2002 BEA Systems, Inc. All Rights Reserved.