Contact support

Integrations & Payroll Export

SyFace Swipes Sender

A package with a console utility and a file that contains xml payloads of requests to be executed.

The package contains the following:

  • Requests.txt - a file with xml payloads for requests. Please do not modify this file
  • SyFaceWsSwipesSender - contains a console utility and a configuration file.

How to use it

  • Identify the full URL of the customer's SyFace Web service.
  • Modify the config file /SyFaceWsSwipesSender/SyFaceWsSwipesSender.exe.config
  • Change the following highlighted values in a config file to your values: <setting name="WebServiceUrl" serializeAs="String"> <value>http://mydomain.com/Service1.asmx</value> </setting> <setting name="RequestsFilePath" serializeAs="String"> <value>C:\Full\Path\To\Requests.txt</value> </setting>
  • Execute the SyFaceWsSwipesSender.exe

Once the process finishes, a log file will be generated next to Requests.txt file named Requests.log, which will contain the responses from the web service, and errors if any.

Out of curiosity in which files are the swipes in XML format? I tried to find them but could not

What does it look like?

The xml payloads are logged in files that are contained in Logs/Horio Web SyFace New Web Service/General/General folder.

Example log message:

2022-11-04 05:43:22.6888 Info - CRValidEmployee: <?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:Header><ClockCredentials xmlns="Synel/Services"><ClockId>0</ClockId><Account>0</Account><ClienteID>0</ClienteID><Password>0</Password><ClientName></ClientName><ThirdPartyAPI></ThirdPartyAPI><IsNonEmployees>false</IsNonEmployees><MAC>00:0C:5B:0C:5B:13</MAC></ClockCredentials></soap:Header><soap:Body><CRValidEmployee xmlns="Synel/Services"><id>99</id><utcTime>2022-11-04T05:43:22</utcTime><FunctionCode>0</FunctionCode><UserInput></UserInput><InputCode>1</InputCode><GetImage>false</GetImage><SegundaValidacion>false</SegundaValidacion><Temperature></Temperature></CRValidEmployee></soap:Body></soap:Envelope>

This is called a raw request. It is logged only if the following setting is set to True in SyFaceWebService's web.config file: <!-- True or False --> <add key="LogRequestRawData" value="True"/>