1 / 6

Deploying a service

Deploying a service. Deployment: Making the container aware of a servlet. The web server has to be aware of the interface and exposed methods of a servlet in order to use it. Using Tomcat as an example this can be done in a number of ways.

dinoj
Download Presentation

Deploying a service

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Deploying a service

  2. Deployment: Making the container aware of a servlet • The web server has to be aware of the interface and exposed methods of a servlet in order to use it. • Using Tomcat as an example this can be done in a number of ways. 1. Enter the values manually into the SOAP admin page from a Deployment descriptor. 2. You can use the SOAP manager application from the command line 3. You can manually edit Tomcat’s WEB-INFO/web.xml file 4. You can create a WAR file and place it in Tomcat’s webapps folder 5. You can use ANT

  3. Using a WAR file • A WAR file is basically an archive description of a servlet installation (JAR and WAR naming derives from UNIX TAR – java archive, web archive, tape archive). • Example: placed in Tomcat’s webapps folder it can be interpreted by the container.

  4. Deployment Descriptor <isd:service xmlns:isd=“http://xml.apache.org/xml-soap/deployment” id=“urn:stock-onhand”> <isd:provider type=“java” scope=“Application” methods=“getQty”> <isd:java class=“StockQuantity”/> </isd:provider> <isd:faultListener>org.apache.soap.sever.DOMFaultListener</isd:faultListener> </isd:service> A SOAP manager file Some containers (Tomcat) provide GUIs for deployment

  5. SOAP Implementations • There are several implementations of the SOAP Specification • Apache Axis • GLUE • Most J2EE application servers contain a SOAP implementation • .NET has a SOAP implementation • SOAP is also implemented in PERL.

More Related