NIEM Examples - Communicating with Mexico (DQ/DR, KQ/KR & RQ/RR)
Communicating with Mexico NIEM Specifications
This section describes NIEM format and provides NIEM examples for Mexican Driver's License queries and responses (DQ/DR) and Mexican Driver History queries and responses (KQ/KR).
Users can inquire the eLicencia application to obtain license and status information about federally issued Mexican commercial driver licenses, just as such driver license queries (DQ/KQ) can be made to U.S. state driver license files for any U.S. issued license.
- A license status inquiry to eLicencia is made by addressing a driver license query (DQ/KQ) message to the destination address of "MX".
- All inquiries and responses are in a fixed format.
- At this time, the eLicencia application only supports requests using the operator license number (OLN).
- Name and date of birth inquiries are not currently supported, but are anticipated in the future.
Other search criteria that may also be added include the following:
- RFC number, a number that has been used by Mexico and is somewhat similar to the U.S. social security number (SSN); and/or
- A new identification number Mexico is planning to issue called the CURP
All Nlets NIEM messages must be based on the Nlets NIEM Message Structure and include the standard Nlets XML Header as detailed in Message Structure. The NIEM header and hierarchy of the elements in this section have been omitted to avoid redundancy. The associated schemas and instances should be consulted to determine the correct XPaths of the elements.
Element Dictionary
Transaction types detailed below include: Query by Driver's License Number (DQ), Query by Driver History (KQ), Driver License Response from Mexico (DR) and Driver History Response from Mexico (KR).
Query Formats
Query by Driver's License Number (OLN) (DQ)
n2:NLETSInquiryData
This element will contain all elements specific to this transaction.
n2:Person
This element encapsulates the information about the person being queried.
nc:DriverLicense
Details about a license issued to a person granting driving privileges.
nc:DriverLicenseIdentification
Details about a driver license identifier or driver license permit identifier, including the number and state.
nc:IdentificationID
A value that identifies something.
This element should contain the person's driver license number.
n2:ImageIndicator
Y if an image is being requested if available.
Query by Drivers History Number (OLN) (KQ)
n2:NLETSInquiryData
This element will contain all elements specific to this transaction.
n2:Person
This element encapsulates the information about the person being queried.
nc:DriverLicense
Details about a license issued to a person granting driving privileges.
nc:DriverLicenseIdentification
Details about a driver license identifier or driver license permit identifier, including the number and state.
nc:IdentificationID
A value that identifies something.
This element should contain the person's driver license number.
n2:ImageIndicator
Y if an image is being requested if available.
Response Formats
Driver License Response from Mexico (DR)
Response Data (n:NLETSResponseData)
This element will contain all elements specific to this transaction.
Response Text (n:ResponseText)
This element will contain the free text response. Nlets recommends the use of
<![CDATA[]]>
tags to ensure that the
response does not contain any characters illegal in XML.
Driver History Response from Mexico (KR)
Response Data (n:NLETSResponseData)
This element will contain all elements specific to this transaction.
Response Text (n:ResponseText)
This element will contain the free text response. Nlets recommends the use of
<![CDATA[]]>
tags to ensure that the
response does not contain any characters illegal in XML.
Communicating with Mexico NIEM Examples
Example 1: Drivers License query to Mexico.
<n2:NLETS xmlns:i="http://niem.gov/niem/appinfo/2.0" xmlns:nc="http://niem.gov/niem/niem-core/2.0"
xmlns:nh2="http://www.nlets.org/niem/nlets-hdr/1.0" xmlns:niem-xsd="http://niem.gov/niem/proxy/xsd/2.0"
xmlns:s="http://niem.gov/niem/structures/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
n2:version="4.00" xmlns:n2="http://www.nlets.org/niem/1.0">
<n2:NLETSMessageHeader>
<nh2:MessageKeyCodeText>DQ</nh2:MessageKeyCodeText>
<nh2:OriginatingORIID>AZNLETS20</nh2:OriginatingORIID>
<nh2:DestinationORIID>MX</nh2:DestinationORIID>
</n2:NLETSMessageHeader>
<n2:NLETSInquiryData n2:key="DQ">
<n2:Person>
<nc:DriverLicense>
<nc:DriverLicenseIdentification>
<nc:IdentificationID>111111111</nc:IdentificationID>
</nc:DriverLicenseIdentification>
</nc:DriverLicense>
</n2:Person>
</n2:NLETSInquiryData>
</n2:NLETS>
Example 2: Drivers License response from Mexico.
<n2:NLETS xmlns:i="http://niem.gov/niem/appinfo/2.0" xmlns:nc="http://niem.gov/niem/niem-core/2.0"
xmlns:nh2="http://www.nlets.org/niem/nlets-hdr/1.0" xmlns:niem-xsd="http://niem.gov/niem/proxy/xsd/2.0"
xmlns:s="http://niem.gov/niem/structures/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
n2:version="4.00" xmlns:n2="http://www.nlets.org/niem/1.0">
<n2:NLETSMessageHeader>
<nh2:MessageKeyCodeText>DR</nh2:MessageKeyCodeText>
<nh2:OriginatingORIID>MXLIC0000</nh2:OriginatingORIID>
<nh2:DestinationORIID>AZNLETS20</nh2:DestinationORIID>
<nh2:MessageReceiveDate>01/01/2012</nh2:MessageReceiveDate>
<nh2:MessageReceiveTime>09:00</nh2:MessageReceiveTime>
<nh2:MessageSendDate>01/01/2012</nh2:MessageSendDate>
<nh2:MessageSendTime>09:00</nh2:MessageSendTime>
<nh2:ReceiveMessageNumeric>11234</nh2:ReceiveMessageNumeric>
<nh2:SendMessageNumeric>61230</nh2:SendMessageNumeric>
</n2:NLETSMessageHeader>
<n2:NLETSResponseData n2:key="DR">
<n2:ResponseText>
GARCIA-MARTINEZ@JUAN
LICENSING OFFICE/, , MEXICO.
MAILING ADDR/USUMACINTAS, AZTECA, JUAREZ,
JUAREZ, CHIHUAHUA 31111, MEXICO.
SEX/M. DOB/01011950. HGT/5 10. WGT/236. EYE/. RFC/XXXX111111.
RSTR/EYE GLASSES.
OLN/AAAA111111.
CATEGORY/A. EXPIRES/01012020. STATUS/VALID.
OLT/B - TRUCK & TRACTOR WITH MORE THAN 3 AXLES, DOUBLES/TRIPLES,
TANKS; NO HAZARDOUS MATERIAL.
NOTE: MX ELICENCIA IS UP: RESPONSE COMES FROM MX ELICENCIA
</n2:ResponseText>
</n2:NLETSResponseData>
</n2:NLETS>
Example 3: Commercial License Plate query to Mexico.
<n2:NLETS xmlns:i="http://niem.gov/niem/appinfo/2.0" xmlns:nc="http://niem.gov/niem/niem-core/2.0"
xmlns:nh2="http://www.nlets.org/niem/nlets-hdr/1.0" xmlns:niem-xsd="http://niem.gov/niem/proxy/xsd/2.0"
xmlns:s="http://niem.gov/niem/structures/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
n2:version="4.00" xmlns:n2="http://www.nlets.org/niem/1.0">
<n2:NLETSMessageHeader>
<nh2:MessageKeyCodeText>RQ</nh2:MessageKeyCodeText>
<nh2:OriginatingORIID>AZNLETS20</nh2:OriginatingORIID>
<nh2:DestinationORIID>MX</nh2:DestinationORIID>
</n2:NLETSMessageHeader>
<n2:NLETSInquiryData n2:key="RQ">
<nc:Vehicle>
<nc:ConveyanceRegistrationPlateIdentification>
<nc:IdentificationID>111XX1</nc:IdentificationID>
<nc:IdentificationCategoryText>PC</nc:IdentificationCategoryText>
<nc:IdentificationExpirationDate>2013</nc:IdentificationExpirationDate>
</nc:ConveyanceRegistrationPlateIdentification>
<nc:VehicleIdentification />
</nc:Vehicle>
</n2:NLETSInquiryData>
</n2:NLETS>
Example 4: Commercial License Plate query response from Mexico.
<n2:NLETS xmlns:i="http://niem.gov/niem/appinfo/2.0" xmlns:nc="http://niem.gov/niem/niem-core/2.0"
xmlns:nh2="http://www.nlets.org/niem/nlets-hdr/1.0" xmlns:niem-xsd="http://niem.gov/niem/proxy/xsd/2.0"
xmlns:s="http://niem.gov/niem/structures/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
n2:version="4.00" xmlns:n2="http://www.nlets.org/niem/1.0">
<n2:NLETSMessageHeader>
<nh2:MessageKeyCodeText>RR</nh2:MessageKeyCodeText>
<nh2:OriginatingORIID>MXLIC0000</nh2:OriginatingORIID>
<nh2:DestinationORIID>AZNLETS20</nh2:DestinationORIID>
<nh2:MessageReceiveDate>01/01/2012</nh2:MessageReceiveDate>
<nh2:MessageReceiveTime>11:00</nh2:MessageReceiveTime>
<nh2:MessageSendDate>01/01/2012</nh2:MessageSendDate>
<nh2:MessageSendTime>11:00</nh2:MessageSendTime>
<nh2:ReceiveMessageNumeric>01239</nh2:ReceiveMessageNumeric>
<nh2:SendMessageNumeric>81239</nh2:SendMessageNumeric>
</n2:NLETSMessageHeader>
<n2:NLETSResponseData n2:key="RR">
<n2:ResponseText>
LIC/111XX1
TRANSPORTES JUAN GARCIA, S.A. DE C.V.
AV. HECTOR MARTINEZ, FRACC. ALAMEDA, CD. JUAREZ, CHIH 32000.
VIN/1XXXXXXX1XXX11111.VYR/2000.ENGINE_NO/11111111
LIT/TRACTOR - 3 AXLES.VMA/MEXICO
LIC_STATUS/ASSIGNED.LIC_ISSUED/01012005
REGISTRANT_RFC/AAA1111111A1.REGISTRANT_STATUS/REGISTERED
LIC_CLASS/FREIGHT MOTOR.VST/TRACTOR
LIC_SERVICE/GENERAL
NOTE: THIS IS A RESPONSE FROM MX AUTHORIZATIONS INFORMATION SYSTEM
</n2:ResponseText>
</n2:NLETSResponseData>
</n2:NLETS>
Example 5: Drivers History query to Mexico.
<n2:NLETS xmlns:i="http://niem.gov/niem/appinfo/2.0" xmlns:nc="http://niem.gov/niem/niem-core/2.0"
xmlns:nh2="http://www.nlets.org/niem/nlets-hdr/1.0" xmlns:niem-xsd="http://niem.gov/niem/proxy/xsd/2.0"
xmlns:s="http://niem.gov/niem/structures/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
n2:version="4.00" xmlns:n2="http://www.nlets.org/niem/1.0">
<n2:NLETSMessageHeader>
<nh2:MessageKeyCodeText>KQ</nh2:MessageKeyCodeText>
<nh2:OriginatingORIID>AZNLETS20</nh2:OriginatingORIID>
<nh2:DestinationORIID>MX</nh2:DestinationORIID>
</n2:NLETSMessageHeader>
<n2:NLETSInquiryData n2:key="KQ">
<n2:Person>
<nc:DriverLicense>
<nc:DriverLicenseIdentification>
<nc:IdentificationID>111111111</nc:IdentificationID>
</nc:DriverLicenseIdentification>
</nc:DriverLicense>
</n2:Person>
</n2:NLETSInquiryData>
</n2:NLETS>
Example 2: Drivers History response from Mexico.
<n2:NLETS xmlns:i="http://niem.gov/niem/appinfo/2.0" xmlns:nc="http://niem.gov/niem/niem-core/2.0"
xmlns:nh2="http://www.nlets.org/niem/nlets-hdr/1.0" xmlns:niem-xsd="http://niem.gov/niem/proxy/xsd/2.0"
xmlns:s="http://niem.gov/niem/structures/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
n2:version="4.00" xmlns:n2="http://www.nlets.org/niem/1.0">
<n2:NLETSMessageHeader>
<nh2:MessageKeyCodeText>KR</nh2:MessageKeyCodeText>
<nh2:OriginatingORIID>MXLIC0000</nh2:OriginatingORIID>
<nh2:DestinationORIID>AZNLETS20</nh2:DestinationORIID>
<nh2:MessageReceiveDate>01/01/2012</nh2:MessageReceiveDate>
<nh2:MessageReceiveTime>09:00</nh2:MessageReceiveTime>
<nh2:MessageSendDate>01/01/2012</nh2:MessageSendDate>
<nh2:MessageSendTime>09:00</nh2:MessageSendTime>
<nh2:ReceiveMessageNumeric>11234</nh2:ReceiveMessageNumeric>
<nh2:SendMessageNumeric>61230</nh2:SendMessageNumeric>
</n2:NLETSMessageHeader>
<n2:NLETSResponseData n2:key="KR">
<n2:ResponseText>
GARCIA-MARTINEZ@JUAN
LICENSING OFFICE/, , MEXICO.
MAILING ADDR/USUMACINTAS, AZTECA, JUAREZ,
JUAREZ, CHIHUAHUA 31111, MEXICO.
SEX/M. DOB/01011950. HGT/5 10. WGT/236. EYE/. RFC/XXXX111111.
RSTR/EYE GLASSES.
OLN/AAAA111111.
CATEGORY/A. EXPIRES/01012020. STATUS/VALID.
OLT/B - TRUCK & TRACTOR WITH MORE THAN 3 AXLES, DOUBLES/TRIPLES,
TANKS; NO HAZARDOUS MATERIAL.
NOTE: MX ELICENCIA IS UP: RESPONSE COMES FROM MX ELICENCIA
</n2:ResponseText>
</n2:NLETSResponseData>
</n2:NLETS>