Skip to content
This repository was archived by the owner on Sep 22, 2023. It is now read-only.

Commit 20e2672

Browse files
Add files via upload
Adding reviewed content to github.
0 parents  commit 20e2672

File tree

8 files changed

+1650
-0
lines changed

8 files changed

+1650
-0
lines changed

LICENSE

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
Copyright (c) 2019 Oracle,Inc
2+
3+
The Universal Permissive License (UPL), Version 1.0
4+
5+
Subject to the condition set forth below, permission is hereby granted to any
6+
person obtaining a copy of this software, associated documentation and/or data
7+
(collectively the "Software"), free of charge and under any and all copyright
8+
rights in the Software, and any and all patent rights owned or freely
9+
licensable by each licensor hereunder covering either (i) the unmodified
10+
Software as contributed to or provided by such licensor, or (ii) the Larger
11+
Works (as defined below), to deal in both
12+
13+
(a) the Software, and
14+
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if
15+
one is included with the Software (each a "Larger Work" to which the Software
16+
is contributed by such licensors),
17+
18+
without restriction, including without limitation the rights to copy, create
19+
derivative works of, display, perform, and distribute the Software and make,
20+
use, sell, offer for sale, import, export, have made, and have sold the
21+
Software and the Larger Work(s), and to sublicense the foregoing rights on
22+
either these or other terms.
23+
24+
This license is subject to the following condition:
25+
The above copyright notice and either this complete permission notice or at
26+
a minimum a reference to the UPL must be included in all copies or
27+
substantial portions of the Software.
28+
29+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
30+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
31+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
32+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
33+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
34+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
35+
SOFTWARE.

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
**Asset Scope**
2+
3+
- Java code sample
4+
- Monitors a known directory on the compute Server, e.g. a SFTP location
5+
- When a new file is detected the file is read and uploaded to ERP cloud
6+
- Log files are updated
7+
- Processed files are preserved, e.g. in a /processed directory
8+
------
9+
10+
# **Link to more information about this solution.**
11+
https://docs.oracle.com/en/solutions/load-data-erp-java/index.html
12+
13+
# **Command line tool to bulk load data into Oracle ERP cloud.**
14+
15+
ERP cloud allows bulk import of data through web services. The web service call could be invoked from any platform that supports SOAP clients, including a standalone Java program. A sample stand alone Java utility is provided by A-Team for customers to use as a baseline and tailor to suit their needs.
16+
17+
**Note: **The command line utility prompts for a password for user specified in configuration file.
18+
19+
**Sample Command line format.**
20+
21+
java -jar "ERPDataLoad.jar"
22+
23+
Dependencies:
24+
25+
26+
JDK - Oracle Java SE 1.8 was used to build and test the utility. Verify compatibility with any other versions of Java.
27+
28+
Configuration file - A sample configuration file is provided with the utility. This file must be modified with environment-specific settings such as URLs and credentials and information such as data file’s location and a specific ERP job to be invoked.
29+
30+
## **Configuration file.**
31+
32+
```
33+
#A sample configuration is provided below. Configuration contains two groups of settings, one for client-specific settings and another for server-specific settings.
34+
35+
#Job paramaters.
36+
37+
#Directory where the processed files are to be stored.
38+
Archivepath={insert directory path where processed files should be archived}
39+
40+
#ERP cloud URL
41+
ERPURL={https://hostname:port/publicFinancialCommonErpIntegration/ErpIntegrationService}
42+
43+
#ERP Cloud username. The job will prompt for a password.
44+
Username={insert username}
45+
46+
#A lock file to ensure that the job is singleton
47+
Lockfile={Specify a file name in path writable to JDK}
48+
49+
#Input file for SOAP request to ERP intergation service. These are specific to each job.
50+
51+
Datafile={full path to the .zip file}
52+
53+
#Zip is the only supported format
54+
DatafileContentType=zip
55+
56+
#ERP cloud job name. Set this value depending on the type of job triggered.
57+
JobName=oracle/apps/ess/financials/generalLedger/programs/common,JournalImportLauncher
58+
59+
#A URL that ERP cloud can call upon completion of the job.
60+
CallbackURL={http://hostname:port/uri}
61+
```

src/META-INF/ErpIntegrationService.xml

Lines changed: 1123 additions & 0 deletions
Large diffs are not rendered by default.

src/META-INF/ServiceException.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<definitions
3+
4+
targetNamespace="http://xmlns.oracle.com/adf/svc/errors/"
5+
xmlns="http://schemas.xmlsoap.org/wsdl/"
6+
xmlns:tns="http://xmlns.oracle.com/adf/svc/errors/"
7+
>
8+
<types>
9+
<schema xmlns="http://www.w3.org/2001/XMLSchema">
10+
<import namespace="http://xmlns.oracle.com/adf/svc/errors/" schemaLocation="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/META-INF/wsdl/ServiceException.xsd"/>
11+
</schema>
12+
</types>
13+
<message name="ServiceException">
14+
<part name="ServiceErrorMessage" element="tns:ServiceErrorMessage"/>
15+
</message>
16+
</definitions>

src/META-INF/jax-ws-catalog.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="system">
3+
<system systemId="https://erpcloudhost/publicFinancialCommonErpIntegration/ErpIntegrationService?WSDL" uri="wsdl/erpcloudhost/publicFinancialCommonErpIntegration/ErpIntegrationService.wsdl"/>
4+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/META-INF/oracle-webservices-async-fault-11_0.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/META-INF/oracle-webservices-async-fault-11_0.xsd"/>
5+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/ErpIntegrationService.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/ErpIntegrationService.xsd"/>
6+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?WSDL=/META-INF/wsdl/ServiceException.wsdl" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.WSDL_/META-INF/wsdl/ServiceException.wsdl"/>
7+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/EssJob.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/EssJob.xsd"/>
8+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/META-INF/wsdl/BC4JService.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/META-INF/wsdl/BC4JService.xsd"/>
9+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/DocumentDetails.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/DocumentDetails.xsd"/>
10+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/DocumentDetail.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/oracle/apps/financials/commonModules/shared/model/erpIntegrationService/DocumentDetail.xsd"/>
11+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/META-INF/wsdl/ServiceException.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/META-INF/wsdl/ServiceException.xsd"/>
12+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/xml/sdoJava.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/xml/sdoJava.xsd"/>
13+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/xml/sdoModel.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/xml/sdoModel.xsd"/>
14+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/xml/sdoXML.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/xml/sdoXML.xsd"/>
15+
<system systemId="https://erpcloudhost:443/publicFinancialCommonErpIntegration/ErpIntegrationService?XSD=/xml/datagraph.xsd" uri="wsdl/erpcloudhost_443/publicFinancialCommonErpIntegration/ErpIntegrationService.XSD_/xml/datagraph.xsd"/>
16+
</catalog>

src/META-INF/wsit-client.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<definitions
3+
xmlns="http://schemas.xmlsoap.org/wsdl/"
4+
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
5+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
6+
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" name="mainclientconfig"
7+
>
8+
<import location="ErpIntegrationService.xml" namespace="http://xmlns.oracle.com/apps/financials/commonModules/shared/model/erpIntegrationService/"/>
9+
</definitions>

0 commit comments

Comments
 (0)