ucar.ncx.soap
Class NcxSoapMessageServlet

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--ucar.ncx.soap.NcxSoapMessageServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class NcxSoapMessageServlet
extends javax.servlet.http.HttpServlet

Servlet for netcdf to xml transformation based on the Apache-SOAP API. The servlet receives an HTTP request containing a SOAP message which contains an xml document with the request parameters. The output xml-encoded metadata is written to the HTTP response. The servlet must deployed to the servlet engine within some specified servlet context (for example, the "soap" servlet context) and declared in the corresponding web deployment descriptor file web.xml as:

 <servlet>
  <servlet-name>NcxSoapMessageServlet</servlet-name>
  <display-name>netcdf to xml SOAP messaging servlet</display-name>
  <servlet-class>ucar.ncx.soap.NcxSoapMessageServlet</servlet-class>
 </servlet>
 <servlet-mapping>
  <servlet-name>NcxSoapMessageServlet</servlet-name>
  <url-pattern>/NcxSoapMessageServlet</url-pattern>
 </servlet-mapping>
 
and it can then be invoked by sending the SOAP-formatted input message to the url: http://host:port/soap/NcxSoapMessageServlet

See Also:
Serialized Form

Constructor Summary
NcxSoapMessageServlet()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Unsupported GET request method - all requests to servlet must be received using POST
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Main servlet processing method
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NcxSoapMessageServlet

public NcxSoapMessageServlet()
Method Detail

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
Main servlet processing method

Overrides:
doPost in class javax.servlet.http.HttpServlet
Parameters:
request - the HTTP request to the servlet
response - the HTTP response from the servlet
Throws:
java.io.IOException
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
Unsupported GET request method - all requests to servlet must be received using POST

Overrides:
doGet in class javax.servlet.http.HttpServlet
Parameters:
request - the HTTP request to the servlet
response - the HTTP response from the servlet
Throws:
java.io.IOException
javax.servlet.ServletException