LibraryToggle FramesPrintFeedback

Depending on how you choose to create your WSDL contract, creating new data definitions requires varying amounts of knowledge. The Fuse Services Framework GUI tools provide a number of aids for describing data types using XML Schema. Other XML editors offer different levels of assistance. Regardless of the editor you choose, it is a good idea to have some knowledge about what the resulting contract should look like.

Defining the data used in a WSDL contract involves the following steps:

  1. Determine all the data units used in the interface described by the contract.

  2. Create a types element in your contract.

  3. Create a schema element, shown in Example 2.1, as a child of the type element.

    The targetNamespace attribute specifies the namespace under which new data types are defined. The remaining entries should not be changed.


  4. For each complex type that is a collection of elements, define the data type using a complexType element. See Defining data structures.

  5. For each array, define the data type using a complexType element. See Defining arrays.

  6. For each complex type that is derived from a simple type, define the data type using a simpleType element. See Defining types by restriction.

  7. For each enumerated type, define the data type using a simpleType element. See Defining enumerated types.

  8. For each element, define it using an element element. See Defining elements.

Comments powered by Disqus