Authorization
(Różnice między wersjami)
Linia 20: | Linia 20: | ||
<pre class="brush:xml"> | <pre class="brush:xml"> | ||
//BEGIN// | //BEGIN// | ||
− | <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Authorization</Type><Authorization><SessionID>398c498441efbfd871a2f9cd44044256</SessionID></Authorization></Request></Net47> | + | <?xml version="1.0" encoding="UTF-8"?> |
+ | <Net47> | ||
+ | <Request> | ||
+ | <Type>Authorization</Type> | ||
+ | <Authorization> | ||
+ | <SessionID>398c498441efbfd871a2f9cd44044256</SessionID> | ||
+ | </Authorization> | ||
+ | </Request> | ||
+ | </Net47> | ||
//BEGINEND// | //BEGINEND// | ||
</pre> | </pre> | ||
Linia 27: | Linia 35: | ||
<pre class="brush:xml"> | <pre class="brush:xml"> | ||
//BEGIN// | //BEGIN// | ||
− | <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Error</Type><Error>Wrong Login or Passwd</Error></Request></Net47> | + | <?xml version="1.0" encoding="UTF-8"?> |
+ | <Net47> | ||
+ | <Request> | ||
+ | <Type>Error</Type> | ||
+ | <Error>Wrong Login or Passwd</Error> | ||
+ | </Request> | ||
+ | </Net47> | ||
//BEGINEND// | //BEGINEND// | ||
</pre> | </pre> | ||
<pre class="brush:xml"> | <pre class="brush:xml"> | ||
//BEGIN// | //BEGIN// | ||
− | <?xml version="1.0" encoding="UTF-8"?><Net47><Request><Type>Error</Type><Error>Cannot create SessionID</Error></Request></Net47> | + | <?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 13:43, 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//