Web Service Debugging: Difference between revisions

From services.krediidiinfo.ee
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 5: Line 5:
= Server Test =
= Server Test =


Krediidiinfo SOAP server has some built-in debugging features.
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 https://services.krediidiinfo.ee/soap.php?ping].
Certificate or SOAP server can be tested at url [https://services.krediidiinfo.ee/soap.php?ping https://services.krediidiinfo.ee/soap.php?ping].
Line 42: Line 42:
</pre>
</pre>


NB! Krediidiinfo 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.
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 =
= Fault message =


If the SOAP request fails, the server returns a standard SOAP error message. The Krediidiinfo SOAP error message has detailed information in ''Fault'' tag. The detailed information is:
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\errorcode - Error code

Latest revision as of 14:05, 6 December 2016

Flag of Estonia.svg 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.