/// <summary> /// Creates a fully configured gsccca web service proxy based on the FilingHandler attributes /// </summary> /// <returns>A fully configured OnlineServiceProxy</returns> private OnlineServiceProxy getConfiguredProxy() { this.proxy = new OnlineServiceProxy(); this.proxy.Url = this.webServiceURL; this.proxy.Timeout = this.requestTimeout; return(proxy); }
/// <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); }
/// <summary> /// Retrieve a pending filing from the GSCCCA eFiling system provided in a PRIA Response xml Document /// </summary> /// <param name="gscccaID">The GSCCCAID of the pending filing being requested</param> /// <returns>A PRIA Response xml document containing the pending filing being requested, if found</returns> public string PRIAGetPendingPackage(string gscccaID) { OnlineServiceProxy proxy = getConfiguredProxy(); return(proxy.GetPendingPackage(this.userid, this.password, gscccaID)); }
/// <summary> /// Retrieves a previously rejected filing from the GSCCCA eFiling system with status provided in a PRIA Response xml document /// </summary> /// <param name="gscccaID">The GSCCCAID of the rejected filing that is to be returned</param> /// <returns>A PRIA Response xml document containing the status of the request and a list of recording errors, if found.</returns> public string PRIARetrieveRejectedPackage(string gscccaID) { OnlineServiceProxy proxy = getConfiguredProxy(); return(proxy.RetrieveRejectedPackage(this.userid, this.password, gscccaID)); }
/// <summary> /// Rejects a filing on the GSCCCA eFiling system wiht the status provided in a PRIA Response xml document /// </summary> /// <param name="gscccaID">The GSCCCAID of the document which is to be marked rejected</param> /// <param name="rejectionReasons">A list of reasons why the filing could not be recorded</param> /// <returns>A PRIA Response xml document containing the status of the rejection request</returns> public string PRIARejectPackage(string gscccaID, List <string> rejectionReasons) { OnlineServiceProxy proxy = getConfiguredProxy(); return(proxy.RejectPackage(this.userid, this.password, gscccaID, rejectionReasons.ToArray())); }
/// <summary> /// Accepts a filing on the GSCCCA eFiling system using strictly PRIA xml documents /// </summary> /// <param name="priaXML">The PRIA 2.4.1 Request xml document containing the filing to be marked accepted </param> /// <returns>A PRIA Response xml document containing the status of the Request submitted</returns> public string PRIAAcceptPackage(string priaXML) { OnlineServiceProxy proxy = getConfiguredProxy(); return(proxy.AcceptPackage(this.userid, this.password, priaXML)); }
///////////////////////////PRIA SPECIFIC METHODS FOLLOW //////////////////////// /// <summary> /// Submits a test filing. ONLY TO BE USED FOR TESTING AS PART OF THIS API /// </summary> /// <param name="priaXML">The PRIA 2.4.1 Request xml document containing the filing to be submitted </param> /// <returns>A PRIA Response xml document containing the status of the Request submitted</returns> public string PRIATestSubmit(string priaXML) { OnlineServiceProxy proxy = getConfiguredProxy(); return(proxy.Submit(this.userid, this.password, priaXML)); }