MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Sandbox",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "75": {
                "pageid": 75,
                "ns": 0,
                "title": "SOAP service testing",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{| align=\"right\"\n| [[Image:Flag of Estonia.svg|border|30px]] [[SOAP_teenuse_testimine|eesti keeles]]\n|}\n\nCreditinfo Eesti AS SOAP service is tested using <tt>curl</tt> software and the [[KiCompany_en | KiCompany]] service. Other Creditinfo Eesti AS SOAP services can also be tested in the same way.\n\nAuthentication is possible using the certificate/key pair as well as the HTTP Basic Authentication user name and password. In addition to the password or certificate, the user needs to have been issued a permission to use the [[KiCompany_en | KiCompany]] service by Creditinfo Eesti AS customer service.\n\nIf the following tests in the client's environment are successful, it can be stated that the certificate or password issued to the client is valid, and the permissions to use [[KiCompany_en | KiCompany]] are correctly set.\n\n\n== Network test ==\n\nThe request's source environment must be able to connect to the <tt>services.krediidiinfo.ee</tt> server using the tcp port number <tt>443</tt>. Creditinfo Eesti AS has not set any IP-based limitations to that server.\n\nThe <tt>netcat</tt> utility can be used in order to test whether there is a firewall blocking the connection:\n nc -z -vv services.krediidiinfo.ee 443\nIn some operating systems the binary has a different name:\n netcat -z -vv services.krediidiinfo.ee 443\n\nThe positive result would be:\n Connection to services.krediidiinfo.ee 443 port [tcp/https] succeeded!\n\nExamples of negative results:\n nc: connect to services.krediidiinfo.ee port 443 (tcp) failed: Connection refused\n\n nc: connect to services.krediidiinfo.ee port 443 (tcp) failed: Connection timed out\n\nAlso it should be possible to connect to the tcp port <tt>80</tt>, of the same server, which hosts the [http://www.w3.org/TR/wsdl wsdl] files and this wiki. If the test fails, please contact your network administrator\n\n== SOAP request example ==\n\nFirst of all we must know the name of the service to be requested. In this example we use the [[KiCompany_en | KiCompany]] service, so the request URI would be <tt>https://services.krediidiinfo.ee/soap.php?name=KiCompany</tt>.\n\nNext we need the SOAP request itself, which is kept in a text file named <tt>data.txt</tt>, The contents of the file are as follows:\n<pre>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" \nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n  <SOAP-ENV:Body>\n    <m:findCompanies xmlns:m=\"urn:KiCompany\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n      <name xsi:type=\"xsd:string\">kredi</name>\n      <count xsi:type=\"xsd:int\">2</count>\n    </m:findCompanies>\n  </SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\nThis request searches for companies with names that starts with <tt>kredi</tt> and displays only the first two results. (The request involves the payment of a fee!)\n\n== Using curl==\n\nThe command-line tool <tt>curl</tt> is a convenient testing utility. To use the Creditinfo Eesti AS SOAP service, <tt>curl</tt> must be compiled with SSL support and must support https protocol. You can check whether this is the case by using the command <tt>curl --version</tt>; the result:\n\n curl 7.19.6 (x86_64-redhat-linux-gnu) libcurl/7.19.6 NSS/3.12.4.1 Beta zlib/1.2.3 libidn/0.6.14 libssh2/0.18\n Protocols: tftp ftp telnet dict ldap ldaps http file '''https''' ftps scp sftp\n Features: GSS-Negotiate IDN IPv6 Largefile '''SSL''' libz\n\n=== curl SOAP request, using HTTP Basic Authentication ===\n\nCreditinfo Eesti AS has issued you a user name and password. In this example, the user name is \"1234\" and password is \"abc123\".\n\n curl -d @data.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n\n -d specifies the request. @ before the file name specifies that it is a request file, not a request.\n \n -u specifies user name and password, delimited with a colon.\n\n\n=== curl SOAP request, using a certificate and a key as the authentication method ===\n\nTo make a request you need a certificate file issued by Creditinfo Eesti AS in the PEM format. In this example the file is named <tt>cert.pem</tt>. It looks like this:\n<pre>\n-----BEGIN CERTIFICATE-----\nMIIEPpuguyIHJPOHuiGIOGilUYGOIGIYFGuyFUassafDFSDFpuASDaaGA1UEBhMC\nRUUxETAPiugUIOuphLBLUpuGIUIGigIPUbhpuiGIPYBuYBUKBLJYHFGuohGDVQQK\nEw9LcmVkaWlkaWluZm8gQVMxCzAJBgNVBAsTAklUMSEwHwYDVQQDExhzZXJ2aWNl\ncy5rcmhlkjghGHGuZm8uZWUxITAfBgkqhkiG9w0BCQEWEml0QGtyZWRpaWRpaW5m\nby5lZTAeFw0wOTglgkGIOUGpguPIUgvIpiughphPhOPOUhpBHIUGMQswCQYDVQQG\nEwJFRTEQMA4GA1UECBMHRXN0b25pYTEQMA4GA1UEBxMHVGFsbGlubjEYMBYGA1UE\nVMtxvrdTVDhtRBDJrdYRBDRVBDTJrbDJBYYJRdYrdjbyRBUYRdBYJRdRRbUJrRYJ\nMTCMjfgukfgKGYGOYOUYGOygouYalsuUUGS4OCtgtrmzLw==\n-----END CERTIFICATE-----\n</pre>\n\n\nAlso you need a certificate key file in the PEM format, which, in this example, is named <tt>key.pem</tt>. This is a secret file and must not be transmitted via e-mail or by other unencrypted methods.\n\nHowever, the contents of this file may be added directly to the <tt>cert.pem</tt> file <tt>(cat key.pem >> cert.pem)</tt>, thus making it unnecessary to specify the key file for <tt>curl</tt>. Various programs specifically request such concatenated files. It looks similar to the following example; only the DSA option has some more differences:\n<pre>\n-----BEGIN RSA PRIVATE KEY-----\nProc-Type: 4,ENCRYPTED\nDEK-Info: DES-EDE3-CBC,C1AA09832249D61D\n\nP85/RJFo2AX638mWtcOTglgkGIOUGpguPIUgvIpiughphPhOPOUhi0I+l5s+JSn5c\njx69XBvi5L+Ytci9RW3zUiWrUDv89IY6DEmwluLX39/gX0TW7U+wos5b7ng/sNLQ\ntMyzCtIDACoGb5xHl48c3vY3JUzhrzQWNt2vuFjpGJI1lSOH8h0MdbQEA8iFKIOZ\nng0po3SPW8c5wJtnLuKy8uZWUxITAfBgkqhkiG9w0BCQEWEml08uZWUxITAfBgkq\noHeRz6KkZyXo7vbCbDXSFTuSHiwVwslF7hHbmmiPc4RYxB2EWfTjSUe8Fti9SWPa\niJY0OisiQbePnEigZhfRboVZmQZFPWopgy8uZWUxITAfBgkqhkiG9w0BCQEWEml0\n8W1aXSBnNqtla1fmKKId9OkhiAZvavtKug8C9i27R2KR63h6uwq3ktwYtV1YWTHK\nOrx8Mf3HIGXpRSJJqjvZUu+xNrM06VcVajY9SJmt7OYXvSo5nKYguwbfGNh/FA7F\nEo1KoKhQeGvWfCQzhEobc/QyegnklbaCUZhePoiL0Jk6Otgsav+2AA==\n-----END RSA PRIVATE KEY-----\n</pre>\n\nAlso, in the case of an encrypted key, you must know the certificate key password. The password in this example is <tt>abcd1234</tt>.\n\n\nMaking a request:\n\n curl -d @data.txt -cert $PWD/cert.pem:abcd1234 --key $PWD/key.pem <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n\n\n -d specifies the request, @ before the file name specifies that it is a request file, not a request.\n\n --cert key specifies the location of certificate file. Absolute path must be used. curl is not looking for the file in given directory, hence the $PWD in the example.\nIf the key is encrypted, the password can be provided after the certificate file name, separating it from the file name by a colon.\n\n --key determines the location of the key file. It is not necessary, if the certificate and key files are merged into a single file.\nThis is why the key password is specified with the --cert option, not here.\n\n\n== SOAP request results ==\n\n=== Successful request ===\n\nSuccessful request (line spacing added for easier reading):\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns1=\"urn:KiCompany\" \nxmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n<SOAP-ENV:Body>\n<ns1:findCompaniesResponse>\n<companies SOAP-ENC:arrayType=\"ns1:CompanyIDData[2]\" xsi:type=\"ns1:CompanyIDDataArray\">\n<item xsi:type=\"ns1:CompanyIDData\">\n<regCode xsi:type=\"ns1:regCode\">11517686</regCode>\n<name xsi:type=\"xsd:string\">KREDICO O\u00dc</name>\n</item>\n<item xsi:type=\"ns1:CompanyIDData\">\n<regCode xsi:type=\"ns1:regCode\">90006012</regCode>\n<name xsi:type=\"xsd:string\">KREDIIDI JA EKSPORDI GARANTEERIMISE SITHASUTUS KREDEX</name>\n</item>\n</companies>\n</ns1:findCompaniesResponse>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\n=== Invalid requests ===\n\nError in GET parameter (KiCompan instead of KiCompany):\n curl -d @data.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompan</nowiki>\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:Server</faultcode>\n<faultstring>Incorrect HTTP GET parameter 'name' value!</faultstring>\n<faultactor></faultactor>\n<detail>\n<errorcode>-20002</errorcode>\n<line_no>157</line_no>\n</detail>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\n\nInvalid user name, password or certificate:\n curl -d @data.txt -u 1234:abZZ23 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\nAuthentication of Creditinfo web service user failed! For assistance, please contact Creditinfo by calling (+372) 6659600.\n</pre>\n\n\nUser has no permission to use [[KiCompany_en | KiCompany]] please contact our customer service:\n curl -d @data.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:Server</faultcode>\n<faultstring>Access denied for KiCompany!</faultstring>\n<faultactor></faultactor>\n<detail>\n<errorcode>-20003</errorcode>\n<line_no>106</line_no></detail>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\n\nMissing SOAP request:\n curl -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\n\n</pre>\n(no results)\n\n\nError in the SOAP request itself:\n curl -d @vigane.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:Client</faultcode>\n<faultstring>Bad Request</faultstring>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\nor\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:VersionMismatch</faultcode>\n<faultstring>Wrong Version</faultstring>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>"
                    }
                ]
            },
            "53": {
                "pageid": 53,
                "ns": 0,
                "title": "SOAP teenuse testimine",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "{| align=\"right\"\n| [[Image:Flag of the United Kingdom.svg|border|30px]] [[SOAP_service_testing|In English]]\n|}\n\nCreditinfo AS SOAP teenuse testimine kasutades <tt>curl</tt> programmi ning [[KiCompany]] teenust. Analoogselt saab testida ka teisi Creditinfo AS SOAP teenuseid.\n\nAutentimiseks saab kasutada sertifikaadi ja selle v\u00f5tme paari kui ka http basic authentication kasutajat ning parooli. Peale paroolide v\u00f5i sertifikaadi olemasolu, peab Creditinfo Eesti AS kliendihaldus olema andnud \u00f5iguse kasutada [[KiCompany]] teenust.\n\nKui j\u00e4rgnevad testid kliendi keskkonnas \u00f5nnestuvad, saab v\u00e4ita, et kliendile v\u00e4ljastatud sertifikaat v\u00f5i parool on \u00f5ige ning \u00f5igused [[KiCompany]] kasutamiseks paigas.\n\n\n== V\u00f5rgu test ==\n\nKeskkond, millest p\u00e4ring tehakse, peab saama \u00fchenduda <tt>services.krediidiinfo.ee</tt> serverisse tcp porti <tt>443</tt>. Creditinfo AS poolt ei ole IP p\u00f5hiseid piiranguid sellele serverile.\n\n\nTestimaks, ega m\u00f5ni tulem\u00fc\u00fcr vahele ei sega v\u00f5ib kasutada programmi <tt>netcat</tt>:\n nc -z -vv services.krediidiinfo.ee 443\nM\u00f5nes operatsioonis\u00fcsteemis on binaari nimi teine:\n netcat -z -vv services.krediidiinfo.ee 443\n\nPositiivne tulemus on:\n Connection to services.krediidiinfo.ee 443 port [tcp/https] succeeded!\n\nN\u00e4ited negatiivsetest tulemustest on:\n nc: connect to services.krediidiinfo.ee port 443 (tcp) failed: Connection refused\n\n nc: connect to services.krediidiinfo.ee port 443 (tcp) failed: Connection timed out\n\nSamuti peaks olema v\u00f5imalik \u00fchenduda sama serveri tcp porti <tt>80</tt>, kust leiab [http://www.w3.org/TR/wsdl wsdl] failid ning sellesama wiki. Kui test ei \u00f5nnestu, tuleks p\u00f6\u00f6rduda oma v\u00f5rguadministraatori poole.\n\n== SOAP p\u00e4ringu n\u00e4ide ==\n\nEsiteks peab teadma, mis teenuse pihta p\u00e4ring teha. Antud n\u00e4ites kasutame [[KiCompany]] teenust, seega p\u00e4ringu URI on <tt>https://services.krediidiinfo.ee/soap.php?name=KiCompany</tt>.\n\nTeiseks on vaja SOAP p\u00e4ringut ennast, hoiame seda teksifailis nimega <tt>data.txt</tt>, faili sisu j\u00e4rgnev:\n<pre>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" \nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\">\n  <SOAP-ENV:Body>\n    <m:findCompanies xmlns:m=\"urn:KiCompany\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n      <name xsi:type=\"xsd:string\">kredi</name>\n      <count xsi:type=\"xsd:int\">2</count>\n    </m:findCompanies>\n  </SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\nAntud p\u00e4ring otsib firmasid, mis algavad stringiga <tt>kredi</tt> ning ei kuva rohkem kui kaks esimest vastust. (P\u00e4ring on tasuline!)\n\n== curl kasutamine ==\n\nTestimiseks on mugav kasutada k\u00e4surea programmi <tt>curl</tt>. Creditinfo SOAP teenuse kasutamiseks peab <tt>curl</tt> olema kompileeritud SSL toega ning oskama https protokolli. Veenduge selles k\u00e4suga <tt>curl --version</tt>, tulemus:\n\n curl 7.19.6 (x86_64-redhat-linux-gnu) libcurl/7.19.6 NSS/3.12.4.1 Beta zlib/1.2.3 libidn/0.6.14 libssh2/0.18\n Protocols: tftp ftp telnet dict ldap ldaps http file '''https''' ftps scp sftp\n Features: GSS-Negotiate IDN IPv6 Largefile '''SSL''' libz\n\n=== curl SOAP p\u00e4ring kasutades autentimiseks HTTP Basic Authentication'it ===\n\nCreditinfo poolt on teile v\u00e4ljastatud kasutajanimi ja parool, siin n\u00e4ites olgu kasutajanimi \"1234\" ning parool \"abc123\".\n\n curl -d @data.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n\n -d m\u00e4\u00e4rab p\u00e4ringu. @ m\u00e4rk failinime ees \u00fctleb curl'ile, et tegemist on p\u00e4ringufaili, mitte p\u00e4ringu endaga.\n \n -u m\u00e4\u00e4rab kasutaja ja parooli, mis on eraldatud kooloniga.\n\n\n=== curl SOAP p\u00e4ring kasutades autentimiseks sertifikaati ja v\u00f5tit ===\n\nP\u00e4ringu tegemiseks on esiteks vaja Creditinfo poolt v\u00e4ljasatud sertifikaadi faili PEM formaadis, antud n\u00e4ites on failinimeks <tt>cert.pem</tt>. V\u00e4lja n\u00e4eb umbes selline:\n<pre>\n-----BEGIN CERTIFICATE-----\nMIIEPpuguyIHJPOHuiGIOGilUYGOIGIYFGuyFUassafDFSDFpuASDaaGA1UEBhMC\nRUUxETAPiugUIOuphLBLUpuGIUIGigIPUbhpuiGIPYBuYBUKBLJYHFGuohGDVQQK\nEw9LcmVkaWlkaWluZm8gQVMxCzAJBgNVBAsTAklUMSEwHwYDVQQDExhzZXJ2aWNl\ncy5rcmhlkjghGHGuZm8uZWUxITAfBgkqhkiG9w0BCQEWEml0QGtyZWRpaWRpaW5m\nby5lZTAeFw0wOTglgkGIOUGpguPIUgvIpiughphPhOPOUhpBHIUGMQswCQYDVQQG\nEwJFRTEQMA4GA1UECBMHRXN0b25pYTEQMA4GA1UEBxMHVGFsbGlubjEYMBYGA1UE\nVMtxvrdTVDhtRBDJrdYRBDRVBDTJrbDJBYYJRdYrdjbyRBUYRdBYJRdRRbUJrRYJ\nMTCMjfgukfgKGYGOYOUYGOygouYalsuUUGS4OCtgtrmzLw==\n-----END CERTIFICATE-----\n</pre>\n\n\nTeiseks sertifikaadi v\u00f5tme faili PEM formaadis, siin failinimeks <tt>key.pem</tt>. See fail on salajane ning kindlasti emaili teel v\u00f5i muul kr\u00fcptimata viisil mitte vahendada!\n\nSamas v\u00f5ib selle faili sisu otsa liita <tt>cert.pem</tt> failile <tt>(cat key.pem >> cert.pem)</tt>, siis ei pea v\u00f5tmefaili <tt>curl</tt>'le eraldi ette n\u00e4itama. Paljud programmid n\u00f5uavad just kokku liidetud varianti. N\u00e4eb umbes selline v\u00e4lja, DSA variandi puhul on natuke rohkem erinevusi:\n<pre>\n-----BEGIN RSA PRIVATE KEY-----\nProc-Type: 4,ENCRYPTED\nDEK-Info: DES-EDE3-CBC,C1AA09832249D61D\n\nP85/RJFo2AX638mWtcOTglgkGIOUGpguPIUgvIpiughphPhOPOUhi0I+l5s+JSn5c\njx69XBvi5L+Ytci9RW3zUiWrUDv89IY6DEmwluLX39/gX0TW7U+wos5b7ng/sNLQ\ntMyzCtIDACoGb5xHl48c3vY3JUzhrzQWNt2vuFjpGJI1lSOH8h0MdbQEA8iFKIOZ\nng0po3SPW8c5wJtnLuKy8uZWUxITAfBgkqhkiG9w0BCQEWEml08uZWUxITAfBgkq\noHeRz6KkZyXo7vbCbDXSFTuSHiwVwslF7hHbmmiPc4RYxB2EWfTjSUe8Fti9SWPa\niJY0OisiQbePnEigZhfRboVZmQZFPWopgy8uZWUxITAfBgkqhkiG9w0BCQEWEml0\n8W1aXSBnNqtla1fmKKId9OkhiAZvavtKug8C9i27R2KR63h6uwq3ktwYtV1YWTHK\nOrx8Mf3HIGXpRSJJqjvZUu+xNrM06VcVajY9SJmt7OYXvSo5nKYguwbfGNh/FA7F\nEo1KoKhQeGvWfCQzhEobc/QyegnklbaCUZhePoiL0Jk6Otgsav+2AA==\n-----END RSA PRIVATE KEY-----\n</pre>\n\nPeab teadma ka sertifikaadi v\u00f5tme parooli, kui v\u00f5ti on kr\u00fcpteeritud. Antud n\u00e4ites olgu parool <tt>abcd1234</tt>.\n\n\nP\u00e4ringu teostamine:\n\n curl -d @data.txt -cert $PWD/cert.pem:abcd1234 --key $PWD/key.pem <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n\n\n -d v\u00f5ti m\u00e4\u00e4rab p\u00e4ringu, @ failinime ees \u00fctleb curl'ile, et tegemist on p\u00e4ringufaili, mitte p\u00e4ringu endaga.\n\n --cert v\u00f5ti m\u00e4\u00e4rab sertifikaadi faili asukoha. Tuleb kasutada \"absolute path\"-i. curl ei otsi faili antud kataloogist, seet\u00f5ttu ka <tt>$PWD</tt> antud n\u00e4ites.\n Kui v\u00f5ti on kr\u00fcpteeritud, saab parooli m\u00e4\u00e4rata serdifikaadi failinime taga, eraldades selle failinimest kooloniga.\n\n --key m\u00e4\u00e4rab v\u00f5tmefaili asukoha. Kui sertifikaat ja v\u00f5tmefail on \u00fcheks liidetud, siis seda ei ole vaja m\u00e4\u00e4rata.\n Seet\u00f5ttu m\u00e4\u00e4rataksegi v\u00f5tme parool --cert juures, mitte siin.\n\n\n== SOAP p\u00e4ringu tulemused ==\n\n=== \u00d5nnestunud p\u00e4ring ===\n\n\u00d5nnestunud tulemus (lisatud reavahetused loetavuse parandamiseks):\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns1=\"urn:KiCompany\" \nxmlns:SOAP-ENC=\"http://schemas.xmlsoap.org/soap/encoding/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" \nxmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" SOAP-ENV:encodingStyle=\"http://schemas.xmlsoap.org/soap/encoding/\">\n<SOAP-ENV:Body>\n<ns1:findCompaniesResponse>\n<companies SOAP-ENC:arrayType=\"ns1:CompanyIDData[2]\" xsi:type=\"ns1:CompanyIDDataArray\">\n<item xsi:type=\"ns1:CompanyIDData\">\n<regCode xsi:type=\"ns1:regCode\">11517686</regCode>\n<name xsi:type=\"xsd:string\">KREDICO O\u00dc</name>\n</item>\n<item xsi:type=\"ns1:CompanyIDData\">\n<regCode xsi:type=\"ns1:regCode\">90006012</regCode>\n<name xsi:type=\"xsd:string\">KREDIIDI JA EKSPORDI GARANTEERIMISE SITHASUTUS KREDEX</name>\n</item>\n</companies>\n</ns1:findCompaniesResponse>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\n=== Vigased p\u00e4ringud ===\n\nViga GET parameetris (KiCompany asemel KiCompan):\n curl -d @data.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompan</nowiki>\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:Server</faultcode>\n<faultstring>Incorrect HTTP GET parameter 'name' value!</faultstring>\n<faultactor></faultactor>\n<detail>\n<errorcode>-20002</errorcode>\n<line_no>157</line_no>\n</detail>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\n\nVigane kasutaja v\u00f5i parool v\u00f5i sertifikaat:\n curl -d @data.txt -u 1234:abZZ23 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\nCreditinfo veebiteenuse kasutaja autentimine eba\u00f5nnestus! Abi saamiseks v\u00f5tke \u00fchendust Creditinfoga telefonil (+372) 6659600.\n</pre>\n\n\nKasutajal ei ole \u00f5igust [[KiCompany]] kasutamiseks, p\u00f6\u00f6rduge kliendihalduse poole:\n curl -d @data.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:Server</faultcode>\n<faultstring>Access denied for KiCompany!</faultstring>\n<faultactor></faultactor>\n<detail>\n<errorcode>-20003</errorcode>\n<line_no>106</line_no></detail>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\n\n\nSOAP p\u00e4ring puudub:\n curl -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\n\n</pre>\n(tulemust pole)\n\n\nSOAP p\u00e4ringus endas on viga:\n curl -d @vigane.txt -u 1234:abc123 <nowiki>https://services.krediidiinfo.ee/soap.php?name=KiCompany</nowiki>\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:Client</faultcode>\n<faultstring>Bad Request</faultstring>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>\nv\u00f5i\n<pre>\n<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n<SOAP-ENV:Envelope xmlns:SOAP-ENV=\"http://schemas.xmlsoap.org/soap/envelope/\">\n<SOAP-ENV:Body>\n<SOAP-ENV:Fault>\n<faultcode>SOAP-ENV:VersionMismatch</faultcode>\n<faultstring>Wrong Version</faultstring>\n</SOAP-ENV:Fault>\n</SOAP-ENV:Body>\n</SOAP-ENV:Envelope>\n</pre>"
                    }
                ]
            }
        }
    }
}