Client Definition Files

SOAP/AM Client Development > Developer's Reference >

Client Definition Files

Previous pageReturn to chapter overviewNext page

A SOAP/AM Client Definition File (CDF) is an instance of an XML document that describes a Web service, its methods and their parameters, and the types on which the parameters are based. A CDF is a standard "edit" file (type 101). Typically, it is initially created using the WSDL2CDF utility. Usually, it then must be edited manually to specify fixed lengths for any string-type elements or unbounded arrays copied from the WSDL.

 

This section describes the content of the CDF. The XML schema for the CDF is located at http://www.nuwave-tech.com/schemas/soapam/cdf/cdf.xsd. If you have an XML-aware editor such as XMLSpy, the schema may be helpful in creating and/or validating your CDFs.

 

Below is an outline of a Client Definition File. Click the element name for detailed information.

 

<definitions>[1]

   <types>[1]

       <type>[1:∞]

           <element/>[1:∞]

       </type>

   </types>

   <service>[1]

       <binding/>[1]

       <messages>[1]

           <message>[1:∞]

               <request>[1]

                   <soapMessage>[1]

                       <header/>[1:∞]

                       <body>[1]

                           <part/>[1:∞]

                      </body>

                   </soapMessage>

               </request>

               <response>[1]

                   <soapMessage>[1]

                       <header/>[1:∞]

                       <body>[1]

                           <part/>[1:∞]

                       </body>

                    </soapMessage>

               </response>

           </message>

       </messages>

   </service>

</definitions>

 

The bracketed notation indicates the minimum and maximum number of occurrences [minOccurs:maxOccurs] for the element. [1] indicates the element must occur exactly once. ∞ indicates that maxOccurs is unbounded.