27.1.1.1  Logon

 

Before using Webservice, user needs to logon Project node. Get project list after logon success.

If logon failed, Webservice function can’t be used.

 

HTTP Method: GET

XML URL: http://localhost/WaWebService/Logon

JSON URL: http://localhost/WaWebService/Json/Logon

XML Response:

<ProjectList>   <Result>     <Ret>0</Ret>     <Total>2</Total>   </Result>    <Projects>     <Project>       <ID>1</ID>       <Name>Express</Name>       <Description>Project Description</Description>     </Project>     <Project>       <ID>2</ID>       <Name>WaScada</Name>       <Description>Project Description</Description>     </Project>   </Projects> </ProjectList>

 

JSON Response:

{         "Result":{                  "Ret":0,                  "Total":2         },         "Projects":[{                  "ID":1,                  "Name":" Express",                  "Description":"Project Description"         },         {                  "ID":2,                  "Name":"WaScada",                  "Description":"Project Description"         }] }

Response Field:

Field Name

Description

ID

Project ID

Name

Project Name

Description

Project Description