WSDL import is available in Bruno v2.14.0 and later.
External schema references
Bruno resolvesxsd:import and xsd:include references that point to local files through schemaLocation. Bruno follows nested import and include chains. It resolves each schemaLocation relative to the file that declares it. The generated request bodies include types defined across all referenced files.
- Referenced files must be local
.xsdor.wsdlfiles, up to 10 MB each. - Bruno does not fetch remote (
http://orhttps://) schema locations. - Keep the referenced files at the relative paths the WSDL expects before you import it.
Convert the WSDL
Install both packages:writeCollection from @usebruno/io to write an OpenCollection YAML folder Bruno can open.
The script needs Node.js 18 or later.
1. Read the arguments
Import the converter,writeCollection from @usebruno/io, and Node’s file helpers. Take the paths from the command line and print a usage line if any are missing.
2. Convert and write
wsdlToBruno resolves to the Bruno collection. Pass it to writeCollection to save an OpenCollection YAML folder. See the API Reference for the full signature.
3. Run the script
<service.wsdl>: The WSDL file<output-folder>: The folder to create the Bruno collection in. It is created if it does not exist
Full script
Open the collection in the app or run it with the CLI
Open the folder in the app, or run it with the CLI:- Bruno app
- Bruno CLI
- Click the + button in the top-left corner and select Import Collection.
- Choose Bruno Collection, then browse to the output folder.
- Click Import.