Authorization
(Różnice między wersjami)
Linia 6: | Linia 6: | ||
<SessionID></SessionID> | <SessionID></SessionID> | ||
<Request> | <Request> | ||
− | <Type> | + | <Type>Authorization</Type> |
− | < | + | <Authorization> |
+ | <UserName>testowy</UserName> | ||
+ | <Password>testowy</Password> | ||
<IP>10.0.0.4</IP> <!-- opcjonalne --> | <IP>10.0.0.4</IP> <!-- opcjonalne --> | ||
− | </ | + | </Authorization> |
</Request> | </Request> | ||
</Net47> | </Net47> | ||
Linia 21: | Linia 23: | ||
<Net47> | <Net47> | ||
<Request> | <Request> | ||
− | <Type> | + | <Type>Authorization</Type> |
− | < | + | <Authorization> |
<SessionID>398c498441efbfd871a2f9cd44044256</SessionID> | <SessionID>398c498441efbfd871a2f9cd44044256</SessionID> | ||
− | </ | + | </Authorization> |
</Request> | </Request> | ||
</Net47> | </Net47> | ||
Linia 37: | Linia 39: | ||
<Request> | <Request> | ||
<Type>Error</Type> | <Type>Error</Type> | ||
− | <Error> | + | <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> | </Request> | ||
</Net47> | </Net47> |
Wersja z 13:37, 1 mar 2013
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ź (otrzymujemy od razu odpowiedź, nie jest ona zawarta w kolejce):
//BEGIN// <?xml version="1.0" encoding="UTF-8"?> <Net47> <Request> <Type>Authorization</Type> <Authorization> <SessionID>398c498441efbfd871a2f9cd44044256</SessionID> </Authorization> </Request> </Net47> //BEGINEND//
Błędy (otrzymujemy od razu odpowiedź, nie jest ona zawarta w kolejce):
//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//