This module implements the Java WebService CLI Client and Java Client Library (SOAP & REST) for the GRID Access Layer.
This module builds an All-In-One package containing command line clients for common operations like "sending files", "retrieving files" and "generating test data" and it also is a shared library simplifying accessing the GRID when using the Java programming language.
Note: As the GRID uses common SOAP and REST based interfaces, any other language may be used to build a client. Also when using Java there's no need to use the provided client library, however doing so simplifies the communication with the GRID as a clean library can be offered containing hand coded data types and constructors.
java -jar gacl-client-1.2.4-RC.jar
<dependencies>
<dependency>
<groupId>com.trendmicro.grid.acl</groupId>
<artifactId>gacl-client-library</artifactId>
<version>1.2.4-RC</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>mygacl.trendmicro.com</id>
<url>https://mygacl.trendmicro.com/doc/ws-server/ws-server-client</url>
</repository>
</repositories>
Notes:
public class Main {
public static void main(String[] args) {
boolean useSSL = true;
ServiceClient client = new ServiceClient("mygacl.trendmicro.com", 0, useSSL);
PublicAuthenticationService authService = client.getPort(PublicAuthenticationService.class);
if (!authService.isAuthenticated())
authService.authenticate("guest", new char[] {'p', 'w'});
PublicFileService fileService = client.getPort(PublicFileService.class);
FileIdentifier fid = new FileIdentifier(args[0]);
FileInformation info = fileService.getFileInformation(fid);
System.out.println(info);
}
}