NonStop SOAP for Java User's Manual
SOAP Deployment Descriptor
NonStop SOAP for Java User’s Manual—523860-001
4-7
Specifying Type Mapping in a Deployment
Descriptor File
For example, the following deployment descriptor can be seen in the Address Book 
sample. The mappings are provided under the <isd:mappings> element as a separate 
<isd:map> element for each mapping provided.
Therefore, in an XML document an element with type "ns1:Address" (where ns1 
defines the namespace "http://addressbook.samples") can be converted to an object of 
type "samples.addressbook.Address" using the 
org.apache.soap.encoding.soapenc.BeanSerializer (as defined by the 
attribute "xml2JavaClassName"). Similarly, using the 
org.apache.soap.encoding.soapenc.BeanSerializer (as defined by the 
attribute "java2XMLClassName") class, objects of type 
"samples.addressbook.Address" can be serialized to XML.
Example 4-4. Example Deployment Descriptor
<isd:service xmlns:isd="http://xml.apache.org/xml-soap/deployment"
 id="urn:AddressBook">
 <isd:provider type="java" .........>
 <isd:java class="samples.addressbook.AddressBook" static="false"/>
 </isd:provider>
 <isd:faultListener>.............</isd:faultListener>
 <isd:mappings>
 <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
 xmlns:x="http://addressbook.samples" qname="x:Address"
 javaType="samples.addressbook.Address"
 java2XMLClassName="org.apache.soap.encoding.soapenc.BeanSerializer"
 xml2JavaClassName="org.apache.soap.encoding.soapenc.BeanSerializer"/>
 <isd:map encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
 .............
 />
 </isd:mappings>
</isd:service>










