SAIDValidator
Click here for a complete list of operations.
ValidateIdString
Validates a 13-character string representing an SA ID number.
Parameters| authToken |
Authentication token string. Currently can be set to any value including null.
|
| said | A valid 13-digit ID number string formatted as detailed here. |
Returns
Returns a said-type XML element.
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /services/saidvalidator/saidvalidator.asmx HTTP/1.1
Host: xml-fx.com
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://xml-fx.com/services/SAIDValidator/ValidateIdString"
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ValidateIdString xmlns="http://xml-fx.com/services/SAIDValidator/">
<authToken>string</authToken>
<said>string</said>
</ValidateIdString>
</soap:Body>
</soap:Envelope>
HTTP/1.1 200 OK
Content-Type: text/xml; charset=utf-8
Content-Length: length
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ValidateIdStringResponse xmlns="http://xml-fx.com/services/SAIDValidator/">
<said Valid="boolean" Error="unsignedInt" xmlns="http://xml-fx.com/services/SAIDValidator/said.xsd">
<Input>string</Input>
<output>
<CCD>int</CCD>
<CD>int</CD>
<Citizen>bytes</Citizen>
<DOB>date</DOB>
<ErrorFlags>string</ErrorFlags>
<Gender>bytes</Gender>
<Parsed>string</Parsed>
<Sequence>unsignedInt</Sequence>
</output>
</said>
</ValidateIdStringResponse>
</soap:Body>
</soap:Envelope>
Other Resources
SAIDValidator Homepage
SAIDValidator Schemas
Blog: How to validate SA Identity Numbers
SAIDValidator Test Page