<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2005 sp1 U (http://www.xmlspy.com) by Goran Lowkrantz (isMobile AB) -->
<xs:schema targetNamespace="http://www.ismobile.com/coordinator/2006/operations/cwi/delete_wo/" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:coord="http://www.ismobile.com/coordinator/2006/operations/cwi/delete_wo/" xmlns:ty="http://www.ismobile.com/coordinator/2017/types/">
    <!-- Created with com.ismobile.xsdfix:xsdfix:1.1 at 2018-01-19 14:40:42 -->
    <xs:import namespace="http://www.ismobile.com/coordinator/2017/types/" schemaLocation="http://coord.ismobile.com/coordinator/cwi/ws/hard/types.xsd"/>
    <xs:attribute name="target" type="ty:string100"/>
    <xs:attribute name="type" type="ty:string100"/>
    <xs:element name="useglobalid">
        <xs:annotation>
            <xs:documentation>True/false, if false -&gt; companyid should be the team name where the wo exists, if false -&gt; companyid should be the teamcluster name in which the wo exists</xs:documentation>
        </xs:annotation>
        <xs:complexType> 
            <xs:simpleContent>
                <xs:extension base="ty:baseBool">
                    <xs:attribute ref="coord:type" use="required" fixed="bool"/>
                </xs:extension>
            </xs:simpleContent>
        </xs:complexType>
    </xs:element>
    <xs:element name="woid" type="ty:string100" nillable="false">
        <xs:annotation>
            <xs:documentation>External workorder ID</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="companyid" type="ty:string100" nillable="false">
        <xs:annotation>
            <xs:documentation>Team name or teamcluster name where the wo exists (see useglobalid)</xs:documentation>
        </xs:annotation>
    </xs:element>
    <xs:element name="delete">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="coord:useglobalid" minOccurs="0"/>
                <xs:element ref="coord:woid"/>
                <xs:element ref="coord:companyid"/>
            </xs:sequence>
            <xs:attribute ref="coord:target" use="required" fixed="workorder"/>
        </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="messageid" type="ty:string100">
        <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="operation">
        <xs:complexType>
            <xs:sequence>
                <xs:element ref="coord:header" minOccurs="0"/>
                <xs:element ref="coord:delete"/>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
