imtkmake -defmap service=service-name
src=program-name
type=service-type
[directives=Compiler-directives]
[settings=properties-filename]
[transactionAttribute=attribute]
imtkmake -generate service=service-name
type=service-type
[appdir=directory-name]
[appserver=J2EE-application-server-name]
[archivename=arch-name]
[basePath=base-path]
[bean=bean-name]
[classpath=pathname]
[ejbInterfaceType={remote|local}]
[ejbname=ejb-name]
[ejbversion=3]
[esruntime=esruntime-filename]
[exithandler=program-name]
[filename]...
[@filelistname]
[j2eeVersion={1.4|1.5|5|1.6|6}]
[jarname=jar-filename]
[javacpath=java-dir]
[namespace=service-namespace]
[package=package-name]
[sepsession={stateless|stateful}]
[serverHost=host-name]
[serverPort=port-number]
[session={stateless|stateful}]
[settings=properties-filename]
[style={doclit|rpcenc}]
[transaction={application|container}]
[transactional={yes|no}]
[url=ip-address]
[version=version]
imtkmake -query
imtkmake -queryAppServerList
imtkmake -queryEJBDefaults
imtkmake -deploy type=service-type
[carname=car-filename]
[ejbversion=3]
[password=secure-password]
[server=server-name,deployer-name]
[settings=properties-filename]
[username=secure-username]
imtkmake -showlog deploydir=deployment-directory
imtkmake -genclient service=service-name
type=service-type
[appserver=J2EE-application-server-name]
[clientdir=directory-name]
[j2eeVersion={1.4|1.5|5|1.6|6}]
[namespace=service-namespace]
[style={doclit|rpcenc}]
[url=ip-address]
[basePath=base-path]
[version=version]
imtkmake -genclientwsdl clientwsdl=wsdl-filename
[clientdir=directory-name]
[defaultstringsize=string-size]
[defaultarraysize=array-size]
imtkmake -genclientjson clientjson=json-filename
[clientdir=directory-name]
[defaultstringsize=string-size]
[defaultarraysize=array-size]
imtkmake -validate
imtkmake -help
This is mandatory when generating EJBs and EJB clients. In other words, mandatory when using the -generate or -genclient functions with type set to EJB. The values must be within quotes since they contain spaces. For example:
Note that this parameter must come after the other parameters.
See -queryAppServerList for how to list the available servers.
The following command creates a service interface with default mapping for the program book.cbl:
imtkmake -defmap src=book.cbl service=wmapserv
type=webservice
The following command generates a Web service for the wmapserv service interface:
imtkmake -generate service=wmapserv
type=webservice
exithandler=myhandler
namespace=http://corpuri.org/wmapserv
The following command generates an EJB for the JMapServ service interface:
imtkmake -generate service=JMapServ
type=ejb
bean=JMap
classpath=/usr/java131/lib/j2ee.jar
ejbname=JMapEJB
esruntime=jmapconf.rtc
jarname=JMap.jar
package=com.corp.jmap
session=stateful
appserver="WebLogic 10.3.5"
The following command generates a Web service for the wmapserv service interface and deploys it to the enterprise server ESDEMO. The additional data file data-files-path\bookfile.dat (Windows) or data-files-path/bookfile.dat (UNIX) is deployed:
On Windows platforms:
imtkmake -generate service=wmapserv type=webservice
-deploy server=ESDEMO,Deployer data-files-path\bookfile.dat
On UNIX platforms:
imtkmake -generate service=wmapserv type=webservice
-deploy server=ESDEMO,Deployer data-files-path/bookfile.dat
The following command deploys a Web service that has already been generated in wmapserv.car to the enterprise server ESDEMO:
imtkmake -deploy carname=wmapserv.car
server=ESDEMO,Deployer
This submit is a successful deployment, as indicated by the 202 return code, and the presence of the URL in the response message.
The following command displays the deploylog.txt file from the URL http://10.120.72.229:47704/uploads/cw_diYLq:
imtkmake -showlog deploydir=http://10.120.72.229:47704/uploads/cw_diYLq
The following command creates a COBOL client program for the service wmapserv:
imtkmake -genclient type=webservice
service=wmapserv
The following command creates a COBOL client program for the REST service service1 using the base path /servicesApp/ and version 1.0:
imtkmake -genclient service=service1 type=rest
url=http://localhost:9003
basePath=/servicesApp/
version=1.0
The following command creates a COBOL client program for the service wmapserv using the service's WSDL file:
On Windows platforms:
imtkmake -genclientwsdl clientwsdl=wmapserv.wsdl
On UNIX platforms:
imtkmake -genclientwsdl clientwsdl=$PWD/wmapserv.wsdl
clientdir=$PWD
The following command creates an EJB service interface with default mapping using the requiresNew transaction attribute:
imtkmake -defmap type=ejb
src=calculator.cbl
service=service13.xml
transactionAttribute=requiresNew
The following command generates the required files for the REST service service1 using the base path /servicesApp/ and version 1.0:
imtkmake -generate type=rest
url=http://localhost:9003
basePath=/servicesApp/
version=1.0
service=service1
The following command creates a COBOL client program for the wmapserv service using its JSON Schema file:
imtkmake -genclientjson clientjson=wmapserv.json
Comments: