title: How to Identify a Required attribute from WSDL file?
body: <p>I am creating a WCF service here is the DataContract section of the service i am setting the <code>Fromdate</code> field a required attribute.</p>
  
  <pre><code>[DataContract(Name = "PriceCalculationRequest")]
      public class PriceReq
      {
          [DataMember(Name = "PickupDate", Order = 1, IsRequired = true , EmitDefaultValue=true)]
          private DateTime FromDate { get; set; }
  
          [DataMember(Name = "ReturnDate", Order = 3)]
          public DateTime ToDate { get; set; }
  
          [DataMember(Order = 2)]
          public string PickupLocation { get; set; }
  
          [DataMember(Order = 4)]
          public string ReturnLocation { get; set; }
  
          public string CarType { get; set; }
      }
  </code></pre>
  
  <p>And this is the <code>wsdl</code> file generated from the above code, how can i identify which attribute is a required attribute,</p>
  
  <pre><code>&lt;xs:sequence&gt;
  &lt;xs:element minOccurs="0" name="pickupDate" type="xs:dateTime"/&gt;
  &lt;xs:element minOccurs="0" name="returnDate" type="xs:dateTime"/&gt;
  &lt;xs:element minOccurs="0" name="pickupLocation" nillable="true" type="xs:string"/&gt;
  &lt;xs:element minOccurs="0" name="vehiclePreference" nillable="true" type="xs:string"/&gt;
  &lt;/xs:sequence&gt;
  </code></pre>