test
Class ContainerEndpoint

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by soaprest.DualProvider
              extended by test.ContainerEndpoint
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig, javax.xml.ws.Provider<javax.xml.transform.Source>

@Copyright
@SoapRestProvider(serviceName="TestService",
                  portName="TestEndpoint",
                  targetNamespace="http://test")
public class ContainerEndpoint
extends DualProvider

Test endpoint for deployment in a container.

See Also:
Serialized Form

Field Summary
private static long serialVersionUID
          Default version identifier.
 
Constructor Summary
ContainerEndpoint()
          Construct a Test web service that can be invoked with either SOAP or ReST.
 
Method Summary
 void init()
          Initialize the web service after it has been deployed in the container.
 
Methods inherited from class soaprest.DualProvider
deploy, getImplementation, getMessageContext, getWsdlLocation, init, invoke, returnRestFaults, service, setWsdlLocation
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Default version identifier.

See Also:
Constant Field Values
Constructor Detail

ContainerEndpoint

public ContainerEndpoint()
                  throws java.lang.Exception
Construct a Test web service that can be invoked with either SOAP or ReST. Note that the constructor must have no parameters, so that it can be deployed by a container. Any parameters must be specified in the web.xml file and extracted using the getInitParameter method after the endpoint has been deployed.

Throws:
java.lang.Exception - if the web service provider cannot be constructed.
Method Detail

init

public void init()
Initialize the web service after it has been deployed in the container. This is where one can obtain the servlet context and the parameters specified in the web.xml file.

Overrides:
init in class javax.servlet.GenericServlet