This application requires Java version 1.8.
This sample demonstrates how to write the IC smart contracts with Swift ISO20022 documents payloads. Motoko types representing Swift documents are generated from ISO20022 XML definition. The Java client then uses JAXB serializer and deserializer to convert Prowide JAXB XML Objects to Candid types and back.
To install Dapp canister,use Motoko Playground or local Dfinity SDK.
Deploy canister using WASM swift_backend.wasm and DID IDL swift_backend.did files to Motoko Playground.
Modify application.properties file to set canister id.
ic.location=https://icp-api.io/
ic.canister=su63m-yyaaa-aaaaa-aaala-cai
Canister source code is in motoko directory. To install the sample canister run dfx deploy command in this directory.
dfx deploy
Modify application.properties file to set canister location and id.
ic.location=ttp://127.0.0.1:4943/
ic.canister=su63m-yyaaa-aaaaa-aaala-cai
Run Gradle build. Modify Java version in the build file if higher than 1.8.
gradle build
Run Java with fat jar
java -jar build/libs/ic4j-sample-swift-0.6.19.jar