search cancel

Using ImportExportservice WSDL with java utility wsimport

book

Article ID: 88977

calendar_today

Updated On:

Products

CA Automic Workload Automation - Automation Engine

Issue/Introduction

Affects Release version(s): 3

Using ImportExportservice WSDL with java utility wsimport

Environment

Release:
Component: ARLSMG

Resolution

Symptoms

Using wsimport in combination with ImportExportService.asmx?wsdl yields an error regarding a reserved keyword:

wsimport-importexport
[exec] parsing WSDL...
[exec] [ERROR] Invalid operation "Import", it'sjava reserved word, can't generate java method. Use customization to change theoperation name.


Cause

Java reserves the keyword Import


Resolution

Rename Import to DoImport (or similar) during class generation via XSLT, see the attached files for this workaround

The wsimport call:
wsimport.exe -p com.automic.rm.api.generated.ie -b .\ImportExportService.xml .\wsdl\ImportExportService.wsdl  -extension

The sample files attached include both the xml (which includes the transformation to "DoImport") and the WSDL definitions for ARA V4 as well as ARA V3.5