This fork has 2 amendments:
- the wsdl parser loads wsdl imports and merges them into parsed wsdl
- When generating go code, it now always injects an XMLName into all structs. This to avoid invalid soap requests, where subtypes are not declared with their correct XML tags.
Generates Go code from a WSDL file.
- Download release
- Download and build locally
- 1.15:
go get github.com/hooklift/gowsdl/...
- 1.20:
go install github.com/hooklift/gowsdl/cmd/gowsdl@latest
- 1.15:
- Install from Homebrew:
brew install gowsdl
- Generate idiomatic Go code as much as possible
- Support only Document/Literal wrapped services, which are WS-I compliant
- Support:
- WSDL 1.1
- XML Schema 1.0
- SOAP 1.1
- Resolve external XML Schemas
- Support external and local WSDL
- Please keep in mind that the generated code is just a reflection of what the WSDL is like. If your WSDL has duplicated type definitions, your Go code is going to have the same and may not compile.
Usage: gowsdl [options] myservice.wsdl
-o string
File where the generated code will be saved (default "myservice.go")
-p string
Package under which code will be generated (default "myservice")
-i Skips TLS Verification
-v Shows gowsdl version