public class SOAPReceiver
extends javax.servlet.http.HttpServlet
SOAPReceiver
class defines a SOAP Receiver which supports
SOAP over HTTP binding. It receives requests sent from Client
.
During the startup, it will read RequestHandler
from SOAP
binding SM schema and store in a static HashMap. Each
RequestHandler
is associated with a unique key. When a web
service client uses Client
to send request, the SOAP URL must
be in the format of 'this_servlet_URL>/key'. The SOAPReceiver
will parse the SOAP URL to get the key and use it to find corresponding
RequestHandler
. After it is done processing, it will invoke
RequestHandler.processRequest
to let web service to do further
processing.Constructor and Description |
---|
SOAPReceiver() |
Modifier and Type | Method and Description |
---|---|
void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes HTTP request and sends back HTTP response.
|
void |
init(javax.servlet.ServletConfig config)
Initializes the Servlet.
|
SOAPMessage |
onMessage(SOAPMessage message,
javax.servlet.http.HttpServletRequest request)
Processes the request message and invokes
RequestHandler.processRequest . |
doDelete, doGet, doHead, doOptions, doPut, doTrace, getLastModified, service, service
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
init
in interface javax.servlet.Servlet
init
in class javax.servlet.GenericServlet
config
- the ServletConfig
.javax.servlet.ServletException
- if there is any error.public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
request
- the HTTP request.response
- the HTTP response.IOException
- if an IO error occurs while processing
the requestjavax.servlet.ServletException
- if an servlet error occurs while processing
the requestpublic SOAPMessage onMessage(SOAPMessage message, javax.servlet.http.HttpServletRequest request)
RequestHandler.processRequest
.message
- request received from the requestorrequest
- the HTTP requestCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.