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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | //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ź:
1 2 3 | //BEGIN// <? xml version = "1.0" encoding = "UTF-8" ?>< Net47 >< Request >< Type >Authorization</ Type >< Authorization >< SessionID >398c498441efbfd871a2f9cd44044256</ SessionID ></ Authorization ></ Request ></ Net47 > //BEGINEND// |
Błędy:
1 2 3 | //BEGIN// <? xml version = "1.0" encoding = "UTF-8" ?>< Net47 >< Request >< Type >Error</ Type >< Error >Wrong Login or Passwd</ Error ></ Request ></ Net47 > //BEGINEND// |
1 2 3 | //BEGIN// <? xml version = "1.0" encoding = "UTF-8" ?>< Net47 >< Request >< Type >Error</ Type >< Error >Cannot create SessionID</ Error ></ Request ></ Net47 > //BEGINEND// |