예제 #1
0
        public virtual getDocumentResponse getDocument(getDocumentRequest request)
        {
            // throw new ArgumentOutOfRangeException("This request was out of range.");
            try
            {
                CommercialVehicleCollisionDocumentType doc = new CommercialVehicleCollisionDocumentType();

                doc.DocumentFileControlID = "12348765";

                
                StringBuilder strBuilder = new StringBuilder();
                strBuilder.AppendLine("Speeding");
                strBuilder.Append(" Ticket");

                doc.IncidentText = "Speeding Ticket";
                //doc.IncidentText = strBuilder.ToString();

                List<string> vins = new List<string>();

                vins.Add("VIN # 97651234");
                vins.Add("VIN # 87651234");
                vins.Add("VIN # 77651234");
                //vins.Add("Client's Address: " + GetAddressAsString());
                doc.InvolvedVehicleVIN = vins.ToArray();

                getDocumentResponse docResponse = new getDocumentResponse(doc);

                return docResponse;
            }
            catch (Exception e)
            {
                Debug.WriteLine("Server exception: " + e.ToString());

                throw;
            }
        }
예제 #2
0
 public getDocumentResponse(CommercialVehicleCollisionDocumentType CommercialVehicleCollisionDocument)
 {
     this.CommercialVehicleCollisionDocument = CommercialVehicleCollisionDocument;
 }