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:

Deployment descriptors for each of the soap samples are included in the soapsamples.ear file in the ServerSamplesCode directory. For example, this might be /QIBM/UserData/WebAS5/Base/instance_name/installedApps/soapsamples.ear/ ServerSampleCode/src/addressbook/DeploymentDescriptor, where instance_name is the name of the root folder for your WAS instance.

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,

Enterprise bean deployment descriptor

A deployment descriptor that publishes a service that is implemented with an enterprise bean can looks like this:

<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment7quot; id="urn:service-urn">
   <isd:provider type="provider-class" scope="Application" methods="exposed-methods">
      <isd:java class="jndi-name"/>
      <isd:option key="FullHomeInterfaceName" value="home-name" />
   </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.