book
Article ID: KB0082908
calendar_today
Updated On:
Description
How to export AESchema into XML Schema in Business Studio
Issue/Introduction
Run RepoConvert and ae2xsd.exe which are the utilities provided by /bin directory
Environment
TIBCO ActiveMatrix BusinessWorks ™ 6.x
TIBCO ActiveMatrix® Adapter Framework 1.3.x
TIBCO ActiveMatrix® Adapter for DataBase (TIBCO Business Studio™) 1.3.0
TIBCO ActiveMatrix® Adapter for Database 7.x
Resolution
In TIBCO BusinessWorks Studio 6.X, there is no feature to export the AEschema as an XML schema file directly. A workaround using the TRA utilities as follows.
Go to the <TRA_HOME>/bin directory and you can find RepoConvert.exe and ae2xsd.exe which are the utilities provided by the .tra file.
1). Use RepoConvert.exe to convert the dat file of the adapter to a BW5 project. For example, RepoConvert -in test.dat -r C:\Project .
RepoConvert
Command
RepoConvert
-in repoURL1
[-out repoURL2]
[-r project root]
[-n]
[-y]
[-v log file]
[-o]
[-t trace property file]
[-d directive file]
[pattern]
[pattern] ...
Purpose: Converts projects from single-file (.dat) to multi-file format or back. By default (no -n or -o option):
If the target project does not exist, create a new one.
If the target project already exists, the content of the target project is completely deleted first, then new data is written in the target project.
Note: For TIBCO BusinessWorks 2.x projects, use bw20migrate rather than RepoConvert or TIBCO Designer. The bw20migrate command is in the TIBCO BusinessWorks bin folder. For more details of RepoConvert.exe, please refer to the document as follows:
https://docs.tibco.com/pub/administrator/5.10.0/doc/html/wwhelp/wwhimpl/js/html/wwhelp.htm#href=tib_TIBCOAdmin_server/admin_server.5.053.htm#2098174
2). Use ae2xsd.exe to generate the XML schema through the AESchema located in the specified project file. For example, ae2xsd.exe -project C:\Project\ADBTEST .
ae2xsd Utility
The ae2xsd utility generates XSD schemas from a project metadata (TIBCO ActiveEnterprise classes and operations). The utility can be used for canonical models, the XML renderer in TIBCO IntegrationManager, as a source or target for XSLT mapping, and to share with downstream consumers of ActiveEnterprise generated XML.
The input is a multi-file project saved in ActiveEnterprise XML format. You cannot use this tool directly on a .dat file.
The syntax follows:
> ae2xsd -project path-to-multi-file-project-root-folder
[ -output path-to-output-folder ]
Both paths can be absolute file paths, or relative to the current working directory.
The -output argument and path are optional. If omitted, a folder named AE2XSD-generated is created in the current working directory.
The tool assumes that your PATH variable points to your Java SDK location and your CLASSPATH points to the TIBCO Adapter SDK or TIBCO Runtime Agent .jar files.
The schemas are generated in a nested folder hierarchy that reflects their namespaces, which in turn reflects the locations of the .aeschema files within the project. When a type name collisions occurs, the schema namespaces (and therefore output locations) will differ from the original project structure.
The utility has the same functionality as the TIBCO Designer Tools Export AS XML Schemas menu command.
Location: The utility is found in TIBCO_HOME/tra/version/bin.
The adapter dat file is created under <ADF_HOME>\domains\<Domain_Name>\adapterspaces\<Appspace_Name>\apps\<Application_Name>\1.0\config by default through adapteradmin when deploying the application.