/// <summary> /// Method that checks the validity of the PT-61 /// </summary> /// <param name="pt61Number">The filing number of the PT-61.</param> /// <returns>A PT61ValidationResult object </returns> public PT61ValidationResult ValidatePT61Status(string pt61Number) { OnlineServiceProxy proxy = getConfiguredProxy(); //get response xml var response = proxy.ValidatePT61Status(pt61Number); //Serialize XmlSerializer serializer = new XmlSerializer(typeof(PT61ValidationResult), new XmlRootAttribute("GSCCCA")); StringReader reader = new StringReader(response); PT61ValidationResult validationResult = (PT61ValidationResult)serializer.Deserialize(reader); //append raw xml to object validationResult.RawXML = response; return(validationResult); }