<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- edited with XMLSpy v2005 sp1 U (http://www.xmlspy.com) by Goran Lowkrantz (isMobile AB) -->
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:coord="http://www.ismobile.com/coordinator/2006/operations/cwi/create_asgt/" targetNamespace="http://www.ismobile.com/coordinator/2006/operations/cwi/create_asgt/" elementFormDefault="qualified">
	<xs:attribute name="target" type="xs:string"/>
	<xs:attribute name="type" type="xs:string"/>
	<xs:element name="instruction" type="xs:string">
		<xs:annotation>
			<xs:documentation>Assignment instructions</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="messageid" type="xs:string">
		<xs:annotation>
			<xs:documentation>ID of the message from backend system, if this element is set in the XML, an ack/nack will be sent back</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="woid" type="xs:string" nillable="false">
		<xs:annotation>
			<xs:documentation>External workorder ID</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="companyid" type="xs:string" nillable="false">
		<xs:annotation>
			<xs:documentation>Team name where the workorder exists</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="workitemid" type="xs:string" nillable="false">
		<xs:annotation>
			<xs:documentation>Workitem Id, the workitem to create the assignment from</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="resid" type="xs:string" nillable="false">
		<xs:annotation>
			<xs:documentation>External Id of assigned resource</xs:documentation>
		</xs:annotation>
	</xs:element>
	<xs:element name="starttime" nillable="false">
		<xs:annotation>
			<xs:documentation>Start time for the assignment (ISO-8601)</xs:documentation>
		</xs:annotation>
		<xs:complexType mixed="true">
			<xs:attribute ref="coord:type" use="required" fixed="datetime"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="stoptime" nillable="false">
		<xs:annotation>
			<xs:documentation>Stop time for the assignment (ISO-8601)</xs:documentation>
		</xs:annotation>
		<xs:complexType mixed="true">
			<xs:attribute ref="coord:type" use="required" fixed="datetime"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="create">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="coord:woid"/>
				<xs:element ref="coord:companyid"/>
				<xs:element ref="coord:resid"/>
				<xs:element ref="coord:workitemid"/>
				<xs:element ref="coord:starttime"/>
				<xs:element ref="coord:stoptime"/>
				<xs:element ref="coord:instruction" minOccurs="0"/>
			</xs:sequence>
			<xs:attribute ref="coord:target" use="required" fixed="assignment"/>
		</xs:complexType>
	</xs:element>
	<xs:element name="header">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="coord:messageid"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
	<xs:element name="operation">
		<xs:complexType>
			<xs:sequence>
				<xs:element ref="coord:header" minOccurs="0"/>
				<xs:element ref="coord:create"/>
			</xs:sequence>
		</xs:complexType>
	</xs:element>
</xs:schema>
