Apache SOAP deployment descriptors

Apache SOAP utilizes XML documents called deployment descriptors to provide the SOAP run time with information on client services. The contents of the deployment descriptor vary, depending on the type of programming component that is published using SOAP. Deployment descriptors provide an array of information, such as:

Standard Java class deployment descriptor

A deployment descriptor that publishes a service that is implemented with a standard Java class or bean can look like this example:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:service-urn" [type="message"]>
   <isd:provider type="java" scope="Request | Session | Application" methods="exposed-methods">
      <isd:java class="implementing-class" [static"true|false"]/>
   </isd:provider>
   <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>

In the example,

Bean Scripting Framework (BSF) script deployment descriptor

A deployment descriptor that publishes a service that is implemented with a BSF script can look like the following example:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment" id="urn:service-urn">
   <isd:provider type="script" scope="Request | Session | Application" methods="exposed-methods">
   <isd:script language="language-name" [source="source-filename"]>[script-body]
   </isd:script>
   </isd:provider>
   <isd:faultListener>org.apache.soap.server.DOMFaultListener</isd:faultListener>
</isd:service>

where:

The deployment descriptor must also have a source attribute on the <script> element, or a script-body attribute. The script-body attribute contains the script that is used to provide the service. If the deployment descriptor has the source attribute, then source-filename refers to the file that contains the service implementation.