<s:schema xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:b="http://schemas.ecrv.mdor.state.mn.us/ecrvBaseTypes" xmlns:e="http://schemas.ecrv.mdor.state.mn.us/ecrvTypes"  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:us="http://schemas.ecrv.mdor.state.mn.us/uploadPropertyTypeCountyService" targetNamespace="http://schemas.ecrv.mdor.state.mn.us/uploadPropertyTypeCountyService" elementFormDefault="qualified" attributeFormDefault="unqualified">
	<s:import namespace="http://schemas.ecrv.mdor.state.mn.us/ecrvBaseTypes" schemaLocation="./ecrvBaseTypes.xsd"/>
	<s:element name="CountyUploadPropertyTypeCountyRequest">
		<s:complexType>
			<s:sequence>
				<s:element name="CrvId" type="b:positiveInt" minOccurs="1" maxOccurs="1"/>
				<s:element name="UploadPropertyTypeCounty" type="us:UploadPropertyTypeCountyType" minOccurs="1" maxOccurs="unbounded"/>
			    <s:element name="UploadedAgriClassification" type="us:UploadAgriClassificationType" minOccurs="0" maxOccurs="1"/>
			    <s:element name="UploadedRuralClassification" type="us:UploadRuralClassificationType" minOccurs="0" maxOccurs="1"/>				
			</s:sequence>
		</s:complexType>
	</s:element> 
	   
	<s:element name="CountyUploadPropertyTypeCountyResponse" type="us:UploadPropertyTypeCountyResponseType"/>

	<s:element name="MuniUploadPropertyTypeCountyRequest">
		<s:complexType>
			<s:sequence>
				<s:element name="CrvId" type="b:positiveInt" minOccurs="1" maxOccurs="1"/>
				<s:element name="UploadPropertyTypeCounty" type="us:UploadPropertyTypeCountyType" minOccurs="1" maxOccurs="unbounded"/>
			    <s:element name="UploadedAgriClassification" type="us:UploadAgriClassificationType" minOccurs="0" maxOccurs="1"/>
			    <s:element name="UploadedRuralClassification" type="us:UploadRuralClassificationType" minOccurs="0" maxOccurs="1"/>
			</s:sequence>
		</s:complexType>
	</s:element>

	<s:element name="MuniUploadPropertyTypeCountyResponse" type="us:UploadPropertyTypeCountyResponseType"/>

	<s:complexType name="UploadPropertyTypeCountyType">
	     <s:sequence>
	        <s:element name="PropertyTypeGroup_cd" type="b:propertyGroupType" minOccurs="1" maxOccurs="1"/>
			<s:element name="PropertyType_cd" type="b:propertyType" minOccurs="0" maxOccurs="1"/>
			<s:element name="PrimaryType_ind" type="s:boolean" minOccurs="0" maxOccurs="1"/>
            <s:element name="YearLandAssessed" type="us:yearLandAssessedType" minOccurs="0" maxOccurs="1"/>
			<s:element name="PreviousLandValueAmount" type="b:nonNegativeInteger9" minOccurs="0" maxOccurs="1"/>
			<s:element name="PreviousBuildingValueAmount" type="b:nonNegativeInteger9" minOccurs="0" maxOccurs="1"/>			
			<s:element name="LandValueAmount" type="b:nonNegativeInteger9" minOccurs="0" maxOccurs="1"/>
			<s:element name="BuildingValueAmount" type="b:nonNegativeInteger9" minOccurs="0" maxOccurs="1"/>
			<s:element name="NumberOfParcels" type="us:numberOfParcelsType" minOccurs="0" maxOccurs="1"/>
			<s:element name="Notes" type="b:tokenMax250" minOccurs="0" maxOccurs="1"/>
		</s:sequence>
	</s:complexType>
	
	<s:complexType name="UploadAgriClassificationType">
		<s:sequence>
			<s:element name="TilledAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="TilledEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="PastureAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="PastureEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="MeadowAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="MeadowEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="WasteAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="WasteEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>
	
			<s:element name="WoodsAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="WoodsEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="ExpWetlandAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="ExpWetlandEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="ExpNativeAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="ExpNativeEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="DitchRoadAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="DitchRoadEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>
	
			<s:element name="OtherAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="OtherEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>
	
			<s:element name="FirstAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="FirstEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="NonHGASiteAcres2aNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="NonHGASiteEMV2aAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>
		
		</s:sequence>
	</s:complexType>
	
	<s:complexType name="UploadRuralClassificationType">
		<s:sequence>
			<s:element name="TilledAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="TilledEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="PastureAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="PastureEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="MeadowAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="MeadowEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>
	
			<s:element name="WasteAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="WasteEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="WoodsAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="WoodsEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="ExpWetlandAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="ExpWetlandEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="ExpNativeAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="ExpNativeEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="DitchRoadAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="DitchRoadEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="OtherAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="OtherEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="FirstAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="FirstEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>

			<s:element name="NonHGASiteAcres2bNbr" type="b:money" minOccurs="0" maxOccurs="1"/>
			<s:element name="NonHGASiteEMV2bAmt" type="b:positiveInteger9" minOccurs="0" maxOccurs="1"/>
		</s:sequence>
    </s:complexType>
    
    <s:simpleType name="numberOfParcelsType">
		<s:annotation>
			<s:documentation>
				value from 0 to 32767 for number of parcel.
			</s:documentation>
		</s:annotation>
		<s:restriction base="s:integer">
			<s:minInclusive value="0"/>
			<s:maxInclusive value="32767"/>
		</s:restriction>
	</s:simpleType>
	
	<s:simpleType name="yearLandAssessedType">
		<s:annotation>
			<s:documentation>
				Represents positive integers valid from 1 to 999,999,999
			</s:documentation>
		</s:annotation>
		<s:restriction base="s:integer">
			<s:minInclusive value="1800"/>
			<s:maxInclusive value="2040"/>
		</s:restriction>
	</s:simpleType>	

	<s:complexType name="UploadPropertyTypeCountyResponseType">
		<s:sequence>
			<s:element name="CrvId" type="s:int"/>
			<s:element name="ResponseCode" type="s:int"/>
			<s:element name="RequestErrors" minOccurs="0">
				<s:complexType>
					<s:sequence>
						<s:element name="RequestError" maxOccurs="unbounded">
							<s:complexType>
								<s:sequence>
									<s:element name="ErrorString" type="s:string"/>
								</s:sequence>
							</s:complexType>
						</s:element>
					</s:sequence>
				</s:complexType>
			</s:element>
		</s:sequence>
	</s:complexType>
</s:schema> 
