Use the mqsicreatemsgdefsfromwsdl command to import a single WSDL definition into a message set.
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.
>>-mqsicreatemsgdefsfromwsdl-- -p --MessageSetProjectName-------> >-- -d --Pathname of source files folder-- -f--WSDL file name---> >-- -data --WorkspacePath---------------------------------------> >--+-------------------------------------------------------+----> '- -base --baseMessageSetProjectName\baseMessageSetName-' >--+------------------------+--+----------------------------+---> '- -binding--BindingName-' '- -log --ReportFilePathName-' >--+--------+--+--------+---------------------------------------> '- -rmp -' '- -rmd -' >--+----------------------------------+--+------+-------------->< '- -vfa--Validation failure action-' '- -v -'
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. If relative paths are used to resolve relative imports, then the actual imported files must be under the source files folder or a subfolder under the source files folder.
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.
If you do not run the command from a privileged environment, you are asked to confirm that you want to continue. When you click OK, a new privileged command console is created and the command completed, but all responses are written to the privileged environment and are lost when that console closes when the command completes.
On other platforms, no specific authority is required to run this command.
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