コード例 #1
0
        /// <summary>
        /// Creates an initialized PRIA_REQUEST_GROUP object used for making requests against the GSCCCA REal Estate eFiling service
        /// </summary>
        /// <returns>A PRIA_REQUEST_GROUP object</returns>
        private PRIA_REQUEST_GROUP_Type createPriaRequest()
        {
            PRIA_REQUEST_GROUP_Type request = new PRIA_REQUEST_GROUP_Type();

            request.PRIAVersionIdentifier = "2.4.1";
            request.REQUEST = new List <REQUEST_Type>();
            request.REQUEST.Add(new REQUEST_Type());
            request.REQUEST[0].RequestDateTime = DateTime.Now.ToString("M/d/yyyy h:mm tt");
            request.REQUEST[0].PRIA_REQUEST    = new List <PRIA_REQUEST_Type>();
            request.REQUEST[0].PRIA_REQUEST.Add(new PRIA_REQUEST_Type());
            request.REQUEST[0].PRIA_REQUEST[0]._SequenceIdentifier = "1";
            request.REQUEST[0].PRIA_REQUEST[0]._Type   = PRIA_PRIARequestType_Enumerated.RecordDocuments;
            request.REQUEST[0].PRIA_REQUEST[0].PACKAGE = new List <PRIA_PACKAGE_Type>();
            return(request);
        }
コード例 #2
0
        /// <summary>
        /// Accepts a package on the GSCCCA Real Estate eFiling System
        /// </summary>
        /// <param name="package">A package object that contains the accepted document images, recording endorsement, and fee information</param>
        /// <returns>Returns true if the package was successfully accepted by the GSCCCA eFiling system.  False if not.  If the package could not be
        /// accepted, check the Status property of the FilingHandler object as well as the RawXMLResponse Property for additional information</returns>
        public bool AcceptPackage(Package package)
        {
            //reset variables
            clearStatus();

            //transform the accepted filing into a pria package and request.
            PRIA_REQUEST_GROUP_Type request     = createPriaRequest();
            PRIA_PACKAGE_Type       priaPackage = package.ToPriaPackage();

            request.REQUEST[0].PRIA_REQUEST[0].PACKAGE.Add(priaPackage);

            //Serialize the request and package
            string requestXML = request.ToXmlString();

            this.rawrequest = requestXML;

            //Send the request and receive a response.
            string responseXML = PRIAAcceptPackage(requestXML);

            this.rawresponse = responseXML;

            //Analyze the response
            return(processResponse(responseXML, "RECORDED"));
        }