<?xml version="1.0" encoding="UTF-8"?>
<!-- Mit XMLSpy v2011 rel. 3 sp1 (x64) (http://www.altova.com) von MIC Datenverarbeitung GmbH (MIC Datenverarbeitung GmbH) bearbeitet -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:http://www.mic-cust.com/MicErrorWarningMessage/5.2" targetNamespace="urn:http://www.mic-cust.com/MicErrorWarningMessage/5.2" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<xs:element name="ErrorMessages">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="ErrorMessage" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="WarningMessages">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="WarningMessage" minOccurs="0" maxOccurs="unbounded"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="WarningMessage" type="TErrorMessageType">
		<xs:annotation>
			<xs:documentation>Warning message used for all occurred warnings and minor exceptions</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="ErrorMessage" type="TErrorMessageType">
		<xs:annotation>
			<xs:documentation>Error message used for all occurred exceptions</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="FaultMessage" type="TErrorMessageType">
		<xs:annotation>
			<xs:documentation>Fault message used for all occurred fault exceptions</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:complexType name="TErrorDetail">
		<xs:annotation>
			<xs:documentation>Contains details to an error message</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="timestamp" type="xs:dateTime"/>
			<xs:element name="stackTrace" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Stacktrace from Exception</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="additionalDetails" minOccurs="0" maxOccurs="unbounded">
				<xs:annotation>
					<xs:documentation>Additional error details</xs:documentation>
				</xs:annotation>
				<xs:complexType>
					<xs:attribute name="type" type="xs:string" use="required"/>
					<xs:attribute name="key" type="xs:string" use="required"/>
					<xs:attribute name="value" type="xs:string" use="required"/>
				</xs:complexType>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TErrorMessageType">
		<xs:annotation>
			<xs:documentation>General error type used for error messages</xs:documentation>
		</xs:annotation>
		<xs:sequence>
			<xs:element name="module" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>MIC Module where the error occured</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="process" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Process inside the MIC module where the error occured</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="errorCode" type="xs:string">
				<xs:annotation>
					<xs:documentation>Error code to identify error </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="errorDesc" type="xs:string">
				<xs:annotation>
					<xs:documentation>Description of the occurred exception</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="Reference" type="TReference" minOccurs="0"/>
			<xs:element name="Details" type="TErrorDetail" minOccurs="0">
				<xs:annotation>
					<xs:documentation>More detailed information about the error</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
	<xs:complexType name="TReference">
		<xs:sequence>
			<xs:element name="company" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>MIC company</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="plant" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>MIC plant</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="correlationId" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Unique reference number generated in MIC </xs:documentation>
				</xs:annotation>
				<xs:simpleType>
					<xs:restriction base="xs:string">
						<xs:maxLength value="255"/>
					</xs:restriction>
				</xs:simpleType>
			</xs:element>
			<xs:element name="referenceType" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Reference type used in MIC </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="referenceSid" type="xs:long" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Reference sid used MIC </xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="user" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>MIC user</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="partnerId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>Partner ID used in MIC</xs:documentation>
				</xs:annotation>
			</xs:element>
			<xs:element name="routeId" type="xs:string" minOccurs="0">
				<xs:annotation>
					<xs:documentation>ID of route where error is occurred</xs:documentation>
				</xs:annotation>
			</xs:element>
		</xs:sequence>
	</xs:complexType>
</xs:schema>
