Register a site

This function registers a new Site with Image Server.

 

Usage in Visual C++/Visual Basic Application

Usage in Java Application

 

 

Usage in Visual C++/Visual Basic Application

Prototype

int WINAPI NGISRegisterSite (  LPTSTR cabinetName, LPTSTR siteAddress,

        short portId, LPTSTR siteName, PSHORT siteId

     )

 

Input Parameters description

Name

Description

Valid Values

Type Of Parameter

cabinetName

Name of the Image Cabinet to which the User wants to connect.

NOT NULL

Input Parameter

siteAddress

Name or IP of the server Server on which SMS is running.

NOT NULL and length less than 20.

Input Parameter

portId

Port  ofPort of the server Server on which SMS is running.

short no.number  greater than 0.

Input Parameter

siteName

Logical name Name for the siteSite.

Not Null and length less than 35

Input Parameter

siteId

Site Iindex with which the sSite can be referenced. with.

N/A

Output Parameter

 

Output Parameters

Return from this call is the sStatus of the call. The Status of the call is 1 for success and error code for failure.

 

 

Usage in Java Application

 

Prototype

public int JPISRegisterSite ( String cabinetName, String siteAddress, short portId, String siteName,

   JPDBShort siteId

 )

 

Input Parameters description

Name

Description

Valid Values

Type Of Parameter

cabinetName

Name of the Image Cabinet to which the User wants to connect.

NOT NULL

Input Parameter

siteAddress

Name or IP of the sServer on which SMS is running.

NOT NULL and length less than 20.

Input Parameter

portId

Port  ofPort of the server on which SMS is running.

short no.number  greater than 0.

Input Parameter

siteName

Logical nName for the sSite.

Not Null and length less than 35.

Input Parameter

siteId

Site iIndex with which the Ssite can be referenced with.referenced.

N/A

Output Parameter

 

Output Parameters

Return from this call is the Sstatus of the call.  The Status of the call is 1 for success and errorcode for failure.