---+!! =paraworld.auth.VerifySession= <div style="float: right; margin: 5px; width: 250px; color: #4e5155; background-color: #f0eded; border: #ccc 1px solid; padding: 5px"> *Contents* %TOC% </div> ---++ Description 在中央服务器验证指定的用户是否是在线状态 ---++ Parameters |*Required*|*Name*|*Type*|*Description*| |<font color="#4682b4">required</font>|sessionKey|%BLUE%string%ENDCOLOR%|被验证的用户凭证| |<font color="#4682b4">optional</font>|format|%BLUE%int%ENDCOLOR%|要求返回数据的格式(0:XML 1:JSON),默认值为0| ---++ Example Return XML <verbatim> <msg xmlns=""> <result type="boolean">True</result> <sessionKey type="string">a4309e31-b911-407c-8acb-107d071f9b1c</sessionKey> <userID type="string">fae5feb1-9d4f-4a78-843a-1710992d4e70</userID> <expireDate type="string">2008-3-13 13:48:58</expireDate> </msg> </verbatim> ---++ Example Return JSON <verbatim> {"result":"true","sessionKey":"3e3404f4-7a52-44c3-8821-fff92de734e9","userID":"1a2e3f76-7087-46f7-b563-980bf394facd","expireDate":"2008-12-6 19:56:47"} </verbatim> ---++ Error Codes 当发生异常时,返回数据中会有一个“info”节点,该节点记录了异常信息。 ---++ Test Cases ---+++ case 1 _case_: paraworld.auth.VerifySession Input: <verbatim> { ["sessionKey"] = "a4309e31-b911-407c-8acb-107d071f9b1c", } </verbatim> _Result_: <verbatim> paraworld.auth.VerifyUser: (http://192.168.0.221/Auth/VerifySession.asmx) called </verbatim> { ["expireDate"] = "", ["sessionKey"] = "", ["userID"] = "", ["result"] = false, ["info"] = "非法的访问", } ---+++ case 1 _case_: paraworld.auth.VerifySession Input: <verbatim> { ["appKey"] = "fae5feb1-9d4f-4a78-843a-1710992d4e00", ["sessionKey"] = "a4309e31-b911-407c-8acb-107d071f9b1c", } </verbatim> _Result_: <verbatim> Plug-in loaded: NPLWebServiceClient.dll </verbatim> { ["expireDate"] = "2008-3-13 14:33:15", ["sessionKey"] = "a4309e31-b911-407c-8acb-107d071f9b1c", ["userID"] = "fae5feb1-9d4f-4a78-843a-1710992d4e70", ["result"] = true, }
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r3 - 2008-12-06
-
CaoYF
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
E
dit
A
ttach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback