MotorcycleSafety Vendor Integration

WSDL Specifications and Business Rules - Client side validation (here)

Testing - Scenarios (here) and Data (here)

Web Service Description (here)

Security credentials must be passed to the web service thru the TREDSCredentials object.

Code Sample (C#)

The web service method to submit a course is "SubmitCourse".
  • Input parameters
    • Course (Course)
  • Output
    • CourseID (integer)
Code Sample (C#)

Known SOAP Exceptions

  • The User Name entered does not exist. Please check your User Name and try again.
  • Invalid Password. Please try again. You have {0} more attempt(s) left before your account gets locked. Please go to https://treds.virginia.gov/ and make sure you can login to TREDS with the same credentials.
  • Your password has expired. Please go to https://treds.virginia.gov/ and click the Reset Password / Unlock Account link to reset your password.
  • Your account has been disabled. Please contact your Department Administrator to have your account enabled. If you are unable to contact your Department Administrator, call the TREDS Support at 804-239-6931.
  • Your account has been locked because of a maximum number of incorrect attempts. Please go to https://treds.virginia.gov/ and click the Reset Password / Unlock Account link to reset your password.
  • User does not have TrainingSiteId, please contact TREDS Support. (Reason: The username used to submit the course does not associated with any training site)
  • Please provide a valid ClassCode. (Reason: If ClassCode is null or NotProvided)
  • Please provide SourceChannel. (Reason: If SourceChannel is nothing or "NotProvided")
  • Course should have atleast one Instructor and one Student. (Reason: The course object should have atleast one instructor and onr student)
  • The InstructorID does not exists in TREDS. If it is a new Instructor please contact motorcycle safety program manager. (Reason: If submitted InstructorID does not match with our list of instructors in TREDS)
  • Please provide Student FirstName and LastName. (Reason: If Firstname or Lastname is empty or null)
  • Please provide DLNumber for student: {Student LastName}. (Reason: If student DL Number is empty or null)
  • Please provide LicenseState for student: {Student LastName}. (Reason: If LicenseState for the student is empty or null)
  • All address fields (Address, City, State and Zip) are required for student: {Student LastName}. (Reason: If student Address, City, State or Zip are empty or null)
  • Please provide Gender for student: {Student LastName} (Reason : If Student Gender is null or NotProvided)
  • Please provide Grade for student: {Student LastName} (Reason : If Student Grade is null or NotProvided)
  • Please provide a valid TrainingSiteID. The permitted training site id's for user 'regressionmotorcycleuser' are: 022. If you have any question please contact TREDS Support at 804-239-6931.
  • This user does not have TrainingSiteId, please contact TREDS Support at 804-239-6931.

Reason for deleting crash: