XML Schema documents and instructions on how to generate data transfer objects for TruService and other products

TruService

The major version of TruService will always be backward compatible with the previous version. Any breaking changes will introduce a new major revision.

Version 2.3.0

Changelog:

Added additional status fields on ResponseStatus, including RegistrationCode

  • XML Schema Document (XSD) : link
  • Data mapping spreadsheet (XLSX) : link
  • Visual documentation (HTML): link

Version 2.2.0

Changelog:

Add Query/Activate/Lookup request elements to support merchant led activation.

  • XML Schema Document (XSD) : link
  • Data mapping spreadsheet (XLSX) : link
  • Visual documentation (HTML): link

Version 2.1.0

Changelog:

Includes product and basket data for integrated systems

  • XML Schema Document (XSD) : link
  • Data mapping spreadsheet (XLSX) : link
  • Visual documentation (HTML): link

Version 2.0.0

Changelog:

Initial release of TruService for the cloud.

  • XML Schema Document (XSD) : link
  • Data mapping spreadsheet (XLSX) : link
  • Visual documentation (HTML) : link

TruRating Core

Contains simple types and specifies enumerations used by both TruService and TruHost.

Version 1.0.0

Changelog:

Initial release of core entities

  • XML Schema Document (XSD) : link

Generating DTO classes

If you want to generate classes for the XSD files listed above, please ensure you have the XSD downloaded to a local directory, with any imported XSD files in relative paths as specified by any import statements.

.Net

Generating classes from XSD files in .NET can be achieved by using the XSD.exe tool that is bundled with the .NET framework:

"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\xsd.exe" schema/core/v100.xsd schema/truservice/v220.xsd /c /n:"TruRating.Dto.TruService.V220"

Java

Generating classes from XSD files in Java is performed using XJC:

"C:\Program Files\Java\jdk1.8.0_92\bin\xjc.exe" -d path/to/your/output/directory/ -p com.truservice.v220.xml schema/truservice/v220.xsd
Feedback