Web Service Debugging
eesti keeles |
Server Test
Creditinfo SOAP server has some built-in debugging features.
Certificate or SOAP server can be tested at url https://services.krediidiinfo.ee/soap.php?ping.
The response should be: KI SOAP server is working!
There is a possibility to make an empty query at https://services.krediidiinfo.ee/soap.php?dummy_response in order to test connection. The SOAP server response should be:
<?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"> <SOAP-ENV:Body> <SOAP-ENV:Fault> <faultcode>SOAP-ENV:Server</faultcode> <faultstring>Bad Request. Can't find HTTP_RAW_POST_DATA [DUMMY RESPONCE]</faultstring> </SOAP-ENV:Fault> </SOAP-ENV:Body> </SOAP-ENV:Envelope>
Web Service Debugging
Some web services can run in debug mode. In debug mode the SOAP server is connected to test environment.
To make request in debug mode you have to add a GET parameter &debug at the end of url.
For example, KiDocExchange interface URL is:
https://services.krediidiinfo.ee/soap.php?name=KiDocExchange
In debug mode the URL is:
https://services.krediidiinfo.ee/soap.php?name=KiDocExchange&debug
NB! Creditinfo must give proper permissions for user to make request in debug mode. If the permissions are not granted then the server will return error message with the code -20004.
Fault message
If the SOAP request fails, the server returns a standard SOAP error message. The Creditinfo SOAP error message has detailed information in Fault tag. The detailed information is:
- Fault\details\errorcode - Error code
- Fault\details\exception_name - Exception name
- Fault\details\line_no - Line number where the error occured
Error code meanings can be found in specific SOAP Web Server interface or in general error code page. You can also contact with support.