WSDL2Go code generation as well as its SOAP proxy
Clone or download
c4milo Merge pull request #121 from nkobber/feature/fix-envelope-header
Headers are no longer wrapped in a <Items> tag
Latest commit 6e743df Jan 24, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/gowsdl Replace poop emoji with thumbs up Sep 21, 2017
example Refactor soap client (#107) Oct 9, 2018
fixtures Implemented mapping rules for References to Top-level attribute decla… Oct 2, 2017
soap Headers are no longer wrapped in a <Items> tag Jan 22, 2019
.editorconfig Help Github with code formatting Jul 4, 2017
.gitignore Git ignores distributable directory. Sep 12, 2015
.travis.yml Adds CI for Go 1.5 Aug 31, 2015
CONTRIBUTING.md Removes Go formatting rules from editorconfig file Sep 14, 2015
LICENSE Changes license Sep 9, 2014
Makefile Bumps version Dec 22, 2015
README.md Update README.md Apr 17, 2017
common.mk Fix `make build` Sep 15, 2015
go.mod add go.mod file (#115) Dec 4, 2018
gowsdl.go fix: do not uppercase builtin types (#98) Jan 17, 2019
gowsdl_test.go Encode/Decode errors with mismatched annotations (#109) Nov 8, 2018
header_tmpl.go fix: add code generated header (#120) Jan 15, 2019
location.go Added ability to import xsd files from a file system Sep 29, 2017
location_test.go Added ability to import xsd files from a file system Sep 29, 2017
operations_tmpl.go Refactor soap client (#107) Oct 9, 2018
traverser.go Implemented mapping rules for References to Top-level attribute decla… Oct 2, 2017
types_tmpl.go Encode/Decode errors with mismatched annotations (#109) Nov 8, 2018
wsdl.go Headers are no longer wrapped in a <Items> tag Jan 22, 2019
wsdl_test.go Makes code more idiomatic. Sep 12, 2015
xsd.go Implemented mapping rules for References to Top-level attribute decla… Oct 2, 2017

README.md

WSDL to Go

Gitter GoDoc Build Status

Generates Go code from a WSDL file.

Install

  • Download binary release
  • Download and build locally: go get github.com/hooklift/gowsdl/...
  • Install from Homebrew: brew install gowsdl

Goals

  • 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

Caveats

  • 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

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