Authorization
(Różnice między wersjami)
| Linia 14: | Linia 14: | ||
</Request> | </Request> | ||
</Net47> | </Net47> | ||
| + | //BEGINEND// | ||
| + | </pre> | ||
| + | |||
| + | Odpowiedź: | ||
| + | <pre class="brush:xml"> | ||
| + | //BEGIN// | ||
| + | <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Authorization</Type><Authorization><SessionID>398c498441efbfd871a2f9cd44044256</SessionID></Authorization></Request></Net47> | ||
| + | //BEGINEND// | ||
| + | </pre> | ||
| + | |||
| + | Błędy: | ||
| + | <pre class="brush:xml"> | ||
| + | //BEGIN// | ||
| + | <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Error</Type><Error>Wrong Login or Passwd</Error></Request></Net47> | ||
| + | //BEGINEND// | ||
| + | </pre> | ||
| + | <pre class="brush:xml"> | ||
| + | //BEGIN// | ||
| + | <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Error</Type><Error>Cannot create SessionID</Error></Request></Net47> | ||
//BEGINEND// | //BEGINEND// | ||
</pre> | </pre> | ||
[[Kategoria:Funkcje]] | [[Kategoria:Funkcje]] | ||
Wersja z 14:41, 15 gru 2011
Zapytanie:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <SessionID></SessionID> <Request> <Type>Authorization</Type> <Authorization> <UserName>testowy</UserName> <Password>testowy</Password> <IP>10.0.0.4</IP> <!-- opcjonalne --> </Authorization> </Request> </Net47> //BEGINEND//
Odpowiedź:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Authorization</Type><Authorization><SessionID>398c498441efbfd871a2f9cd44044256</SessionID></Authorization></Request></Net47> //BEGINEND//
Błędy:
//BEGIN// <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Error</Type><Error>Wrong Login or Passwd</Error></Request></Net47> //BEGINEND//
//BEGIN// <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Error</Type><Error>Cannot create SessionID</Error></Request></Net47> //BEGINEND//