2022
Introduction
This document explains the concept of ApiCode and how it can be used to build DBSync Adapters
The following step by step story board explains the following:
1: What is ApiCode ?
2: How to write an ApiCode project and create an ApiCode Service ?
3. How to write a test case for an ApiCode Service?
4: How to build and deploy an ApiCode project on dbsync2 ?
5: How to use it in dbsync profiles and execute a process flow?
...
Code Block |
---|
<!-- set global properties for this build --> <!-- Setup Deployment specific properties --> <property name="appcode.name" value="MyTestMsNavSvc" /> – The name of the appcode project — <property name="appcode" location="/AvankiaWS2/MyAppCodeSvc"/> — The location of the appcode project in your machine — <property name="environment" value="sandbox" /> — The environment under which the jars will be deployed in dbsync2 ( folder under the profile folder) — <property name="profile" value="profile_test" /> ---- Name of the profile ---- <property name="dbsync.server.url" value="http://localhost:8080/dbsync2"/> — DBSync2 server URL ----- <property name="dbsync.server.username" value="localhost@avankia.com"/> — DBSync2 UID ---- <property name="dbsync.server.password" value="avankia"/> ---- DBsync2 Password — |
Note: The DBSync2 Properties are actually required to deploy the zip file in DBSync2 server location which the DBSync2 server is running
9. Assuming we are trying to do a a SOAP call in our AppCode Service implementation, we need to run a wsimport task to download the binding classes into our project and for future use for reading, writing and getmetadata operations
...