Types section

The following section of the example Service Manager IncidentManagement wsdl shows the definition of the data, including data types, that is being communicated between the consumer and Service Manager.

- <types>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
  attributeFormDefault="unqualified" elementFormDefault="qualified" 
  targetNamespace="http://servicecenter.peregrine.com/PWS" 
  version="2007-04-14 Rev 1"
xmlns="http://servicecenter.peregrine.com/PWS" 
xmlns:cmn="http://servicecenter.peregrine.com/PWS/Common">
  <xs:import namespace="http://servicecenter.peregrine.com/PWS/Common" 
  schemaLocation="http://server:13080/sc62server/PWS/Common.xsd" /> 
- <xs:complexType name="IncidentKeysType">
- <xs:sequence>
  <xs:element minOccurs="0" name="IncidentID" nillable="true" 
  type="cmn:StringType" /> 
  </xs:sequence>
  <xs:attribute name="query" type="xs:string" use="optional" /> 
  </xs:complexType>
- <xs:complexType name="IncidentInstanceType">
- <xs:sequence>
  <xs:element minOccurs="0" name="IncidentID" nillable="true" 
   type="cmn:StringType" /> 
- <xs:element minOccurs="0" name="IncidentDescription">
- <xs:complexType>
- <xs:complexContent>
- <xs:extension base="cmn:ArrayType">
- <xs:sequence>
  <xs:element maxOccurs="unbounded" minOccurs="0" 
   name="IncidentDescription" type="cmn:StringType" /> 
  </xs:sequence>
  </xs:extension>
  </xs:complexContent>
  </xs:complexType>
  </xs:element>
- <xs:complexType name="IncidentModelType">
- <xs:sequence>
  <xs:element name="keys" type="IncidentKeysType" /> 
  <xs:element name="instance" type="IncidentInstanceType" /> 
  <xs:element minOccurs="0" name="messages" type="cmn:MessagesType" /> 
  </xs:sequence>
  <xs:attribute name="query" type="xs:string" use="optional" /> 
  </xs:complexType>
- <xs:element name="RetrieveIncidentRequest">
- <xs:complexType>
- <xs:sequence>
  <xs:element name="model" type="IncidentModelType" /> 
  </xs:sequence>
  <xs:attribute name="attachmentInfo" type="xs:boolean" use="optional" /> 
  <xs:attribute name="attachmentData" type="xs:boolean" use="optional" /> 
  <xs:attribute default="true" name="ignoreEmptyElements" type="xs:boolean" use="optional" /> 
  </xs:complexType>
  </xs:element>
- <xs:element name="RetrieveIncidentResponse">
- <xs:complexType>
- <xs:sequence>
  <xs:element name="model" type="IncidentModelType" /> 
  <xs:element minOccurs="0" name="messages" type="cmn:MessagesType" /> 
  </xs:sequence>
  <xs:attribute name="status" type="cmn:StatusType" use="required" /> 
  <xs:attribute name="message" type="xs:string" use="required" /> 
  <xs:attribute name="schemaRevisionDate" type="xs:date" use="required" /> 
  <xs:attribute name="schemaRevisionLevel" type="xs:int" use="required" /> 
  <xs:attribute name="returnCode" type="xs:decimal" use="optional" /> 
  <xs:attribute name="query" type="xs:string" use="optional" /> 
  </xs:complexType>
  </xs:element>
  </types>