2.1 getAccessToken
Vrací autentizační token potřebný pro ověření ostatních volaní SOAP žádostí.
VSTUP:
- string userName - jméno uživatele
- string password – heslo uživatele
VÝSTUP:
- token accessToken – autentizační token
- int result - kód chyby
- string resultText - textový popis chyby
CHYBY:
- 0 – OK
- 401 – chybné přihlašovací údaje
PŘÍKLAD XML ŽÁDOSTI
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:urn="urn:api-ipex:providermanagement">
<soapenv:Header/>
<soapenv:Body>
<urn:getAccessToken>
<userName>login</userName>
<password>heslo</password>
</urn:getAccessToken>
</soapenv:Body>
PŘÍKLAD XML ODPOVĚDI
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="urn:api-ipex:providermanagement">
<SOAP-ENV:Body>
<ns1:getAccessTokenResponse>
<accessToken>7149714069fb9daebe0b6ce59a5b600d</accessToken>
<result>0</result>
<resultText/>
</ns1:getAccessTokenResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>