The following document contains the results of Rat (Release Audit Tool).
*****************************************************
Summary
-------
Generated at: 2017-03-12T00:16:33-05:00
Notes: 0
Binaries: 0
Archives: 0
Standards: 2
Apache Licensed: 0
Generated Documents: 0
JavaDocs are generated, thus a license header is optional.
Generated files do not require license headers.
2 Unknown Licenses
*****************************************************
Files with unapproved licenses:
C:/projects/fgsms/fgsms-samples/fgsms.ExportDataFromViaWebService/pom.xml
C:/projects/fgsms/fgsms-samples/fgsms.ExportDataFromViaWebService/src/main/java/org/miloss/fgsms/examples/export/ExportViaWS.java
*****************************************************
*****************************************************
Files with Apache License headers will be marked AL
Binary files (which do not require any license headers) will be marked B
Compressed archives will be marked A
Notices, licenses etc. will be marked N
!????? C:/projects/fgsms/fgsms-samples/fgsms.ExportDataFromViaWebService/pom.xml
!????? C:/projects/fgsms/fgsms-samples/fgsms.ExportDataFromViaWebService/src/main/java/org/miloss/fgsms/examples/export/ExportViaWS.java
*****************************************************
Printing headers for text files without a valid license header...
=====================================================
== File: C:/projects/fgsms/fgsms-samples/fgsms.ExportDataFromViaWebService/pom.xml
=====================================================
<?xml version="1.0" encoding="UTF-8"?>
<!--
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
U.S. Government, Department of the Army
Army Materiel Command
Research Development Engineering Command
Communications Electronics Research Development and Engineering Center
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.mil-oss</groupId>
<artifactId>fgsms-samples</artifactId>
<version>7.0.0</version>
</parent>
<artifactId>fgsms.ExportDataFromViaWebService</artifactId>
<packaging>jar</packaging>
<name>fgsms Sample - Export data via web service</name>
<description>Example access to fgsms's services</description>
<dependencies>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fgsms-common</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>fgsms-common-interfaces</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
=====================================================
== File: C:/projects/fgsms/fgsms-samples/fgsms.ExportDataFromViaWebService/src/main/java/org/miloss/fgsms/examples/export/ExportViaWS.java
=====================================================
/**
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* If it is not possible or desirable to put the notice in a particular
* file, then You may include the notice in a location (such as a LICENSE
* file in a relevant directory) where a recipient would be likely to look
* for such a notice.
*
*
*/
/* ---------------------------------------------------------------------------
* U.S. Government, Department of the Army
* Army Materiel Command
* Research Development Engineering Command
* Communications Electronics Research Development and Engineering Center
* ---------------------------------------------------------------------------
*/
package org.miloss.fgsms.examples.export;
import java.nio.file.AccessDeniedException;
import javax.naming.ServiceUnavailableException;
import javax.xml.bind.JAXB;
import javax.xml.ws.BindingProvider;
import org.miloss.fgsms.services.interfaces.common.SecurityWrapper;
import org.miloss.fgsms.services.interfaces.dataaccessservice.DataAccessService;
import org.miloss.fgsms.services.interfaces.dataaccessservice.DataAccessService_Service;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetMessageLogsResponseMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetMonitoredServiceListRequestMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetMonitoredServiceListResponseMsg;
import org.miloss.fgsms.services.interfaces.dataaccessservice.GetRecentMessageLogsRequestMsg;
import us.gov.ic.ism.v2.ClassificationType;
public class ExportViaWS {
public static void main(String args[]) throws AccessDeniedException, ServiceUnavailableException, Exception {
if (args.length != 3) {
System.out.println("Usage java -jar ExportDataFromViaWebService.jar <URL to DAS Service> <Admin username> <password>");
return;
}
DataAccessService_Service svc = new DataAccessService_Service();
DataAccessService dasPort = svc.getDASPort();
BindingProvider bp = (BindingProvider) dasPort;
bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, args[0]);
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY, args[1]);
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY, args[2]);
//get the list of services that are monitored that "username" has at least read access to