Introduction
Runtime Modules: | xxclient.jar (The Java Client Library is available for Windows, Linux and UNIX platforms. ) |
JRE version required: | 8.0 or higher recommended |
Setup: | Put xxclient.jar in your application CLASSPATH |
Main Class: | xxclient.XXClient XXClient is a proxy instance of XX1. This is the main class the user application is working with. |
You can download the client software and examples in our Download-Section, if you are logged in.
XXClient Object Properties
Property Type | Property Name | Default Value | Description |
---|---|---|---|
String | host | localhost | Server IP address or URL value. |
int | port | non-SSL: 8800 SSL: 443 | Server SOAP port value. |
String | tc | - | Transaction Control data (TC). |
String | rsptc | - | Returns received transaction control data value (TC). (read-only) |
boolean | _native | false | Set and get status of request sending mode.
|
boolean | compress | true | Set and get Status of data compression. (Recommended for performance reasons) |
boolean | ssl | false | Set and get Status of SSL/TLS data encryption. |
String | certificate | "exportedCert.p12" | If SSL is used, specify where certification databases reside - by default they must reside in the same directory where xxclient library modules are installed (there is a working certificate named "exportedCert.p12" within the xxclient.jar, but you can apply your own certificate. In this case an absolute path is needed) |
boolean | keepalive | true | indication flag to keep a connection alive (default timeout is set on the server). Indicates whether the client application is in the sessioned mode.
and to true otherwise. |
String | strContext | - | Contains a context string (or session id) of a locked provider session. This is required to check whether a getSession() was successful or not. |
String | strContextRelease | - | Contains a context string (or session id) of a last unlocked provider session. This is required to check whether a releaseSession() was successful or not. |
boolean | admin | false | Indicates whether or not to use the admin mode, which is required for some monitoring functionality only. |
XXClient Object Methods
Return Type | Method Name | Method parameters | Description |
---|---|---|---|
boolean | getSession | () | Locks a session on the host and carries a context. Returns:
Remarks:
Exceptions:
|
void | releaseSession | () | Unlocks a session previously locked with GetSession. If release of the session succeeded, a strContextRelease property in XXClient instance is set. Otherwise an exception will be thrown. Exceptions:
|
String | transaction | (String strReq) | Performs the current transaction. Sends the request data to server and receives the response. |
void | disconnect | () | Terminates the current socket connection.
Exceptions:
Exceptions:
|