Configure Census Connection
The objective of this service is to be able to configure the connection with a census through the administration panel without having to modify the application code.
It should be noted that to properly configure this connection, a technical profile that knows the WebService with which we want to connect will be required.
Enabling the feature
To enable the feature you have to access from the administration panel to the Settings > Global settings > Features section and enable the Configure connection to the remote census (SOAP) module.
Configuration
Once the feature is activated, we can access the section Settings > Global settings and click on the tab Remote Census Configuration to be able to configure the connection with the census.
The information to be filled in is divided into three sections:
General Information
Endpoint: Host name where the census service is available (wsdl).
Request data
In this section we will fill in all the necessary fields to be able to make a request to verify a user through a census.
To help you understand how to fill in each of the fields, we will rely on a supposed WebService that receives a method called :get_habita_datos
with the following structure:
Required fields for the request:
Request method name: Request method name accepted by the census WebService.
Request Structure: Structure of the request received by the WebService of the census. The static values of this request should be reported. The dynamic values related to Document Type, Document Number, Date of Birth and Postal Code should be filled with null value.
Path for document type: Path in the request structure that sends the Document Type.
NOTE: DO NOT FILL IN if the WebService does not require the Document Type to verify a user.
Path for document number: Path in the request structure that sends the Document Number.
NOTE: DO NOT FILL IN if the WebService does not require the Document Number to verify a user.
Path for date of birth: Path in the request structure that sends the Date of Birth.
NOTE: DO NOT FILL IN if the WebService does not require the Date of Birth to verify a user.
In this example, we will leave it blank, since it is not necessary to send the date of birth to verify a user.
Path for Postal Code: Path in the request structure that sends the Postal Code.
NOTE: DO NOT FILL IN if the WebService does not require the Postal Code to verify a user.
In this example, we will leave it blank, since it is not necessary to send the postal code to verify a user.
Response data
In this section we will configure all the necessary fields to be able to receive the answer of the WebService and to verify a user in the application.
As in the previous section, we will define an example answer to help you understand how to fill in each of the fields in this section.
Required fields to parse the response:
Path for Date of Birth: Path in the response structure containing the user's Date of Birth.
Path for Postal Code: Path in the response structure containing the user's Postal Code.
Path for District: Path in the response structure containing the user's District.
Path for Gender: Path in the response structure containing the user's Gender.
Path for Name: Path in the response structure containing the user's Name.
Path for the Last Name: Path in the response structure containing the user's Last Name.
Path for detecting a valid response: Path in the response structure that must be filled in in valid responses.
Once the general data, the necessary fields of the request and all fields to validate the response have been correctly filled in, the application will be able to verify any user through the defined WebService.
Last updated