org.jibx.soap.server
Class SOAPService

java.lang.Object
  extended byorg.jibx.soap.server.SOAPService

public class SOAPService
extends java.lang.Object

Service implementation for a document-literal web service using SOAP. This builds on the basic SOAP mapping implementation, attaching service endpoint information to allow the actual processing of requests.


Method Summary
static SOAPService getInstance(ServiceDefinition sdef)
          Get a SOAP mapper instance for a specific service.
 void processRequest(javax.servlet.http.HttpServlet serv, javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp)
          Process SOAP service request.
 void releaseInstance()
          Release instance, returning it to the available list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processRequest

public void processRequest(javax.servlet.http.HttpServlet serv,
                           javax.servlet.http.HttpServletRequest req,
                           javax.servlet.http.HttpServletResponse rsp)
Process SOAP service request. This first unmarshals and processes the request headers through any configured filters, then passes the unmarshalled body payload object to the appropriate handler for actual request processing. The object returned by the handler (if any) is then serialized out as the response body payload, along with any headers added during processing or by filters during the outbound processing.

Parameters:
serv - servlet processing request
req - servlet request information
rsp - servlet response information

releaseInstance

public void releaseInstance()
Release instance, returning it to the available list. This method must be called when processing is completed.


getInstance

public static SOAPService getInstance(ServiceDefinition sdef)
                               throws SOAPException
Get a SOAP mapper instance for a specific service. This will either get an available instance from the pool, or create a new instance if none are currently available.

Parameters:
sdef - service definition for mapper to be returned
Returns:
SOAP mapper instance for service
Throws:
SOAPException


Project Web Site