The mqsicreatemsgdefsfromwsdl command can be used to import a single WSDL definition. If the WSDL is split into multiple files then the file specified must contain the WSDL service definition or binding definition. The WS-I validator can be run automatically on the imported WSDL under the control of the -vfa flag.
The importer attempts to resolve all relative import locations relative to the specified directory; the importer also attempts to resolve any absolute import locations that it encounters. However, avoid using absolute import locations, because any further imports in the hierarchy must use absolute locations after the first time you specify an absolute location.
The workspace location is also the default location for projects. Relative paths are interpreted as being relative to the directory from which the command was started.
Where a path is required to fully identify the filename, the path should be specified using the -d parameter.
In the following example, the WSDL document service.wsdl which exists in the directory wsdlfiles, is to be imported into the project myProject and overwrite the project if it exists.
mqsicreatemsgdefsfromwsdl -p myProject -d .\wsdlfiles -f service.wsdl -rmd -data .\wsdlfilewspc
In the following example, the WSDL document service.wsdl which exists in the directory wsdlfiles, is to be imported to create a new message set project (newProj) based on an existing project (existingProj).
mqsicreatemsgdefsfromwsdl -p newProj -base existingProj -d .\wsdlfiles -f service.wsdl -data .\wsdlfilewspc