scalaxb is an XML data-binding tool for Scala that supports W3C XML Schema (xsd) and Web Services Description Language (wsdl) as the input file.
status
The latest is
Many things still may not work. I'd really appreciate if you could run it against your favorite xsd file and let me know the result.
usage
$ scalaxb [options] <schema_file>...
-d <directory> | --outdir <directory>
generated files will go into <directory>
-p <package> | --default-package <package>
specifies the target package
--package:<namespaceURI>=<package>
specifies the target package for <namespaceURI>
--class-prefix <prefix>
prefixes generated class names
--param-prefix <prefix>
prefixes generated parameter names
--prepend-family
prepends family name to class names
--wrap-contents <complexType>
wraps inner contents into a seperate case class
--contents-limit <size>
defines long contents to be segmented (default: 20)
--chunk-size <size>
segments long sequences into chunks (default: 10)
--package-dir
generates package directories
--protocol-file <name.scala>
protocol file name (xmlprotocol.scala)
--protocol-package <package>
package for protocols
--no-runtime
skips runtime files
--lax-any
relaxes namespace constraints of xs:any
--blocking
generates blocking SOAP client
--dispatch-version <version>
version of Dispatch (default: 0.11.1)
-v | --verbose
be extra verbose
--help
display this message
--version
display version info
<schema_file>...
input schema to be converted
sponsors
Thanks to YourKit for supporting scalaxb! YourKit Java Profiler works great for profiling Scala applications.