/gowsdl

WSDL2Go code generation as well as its SOAP proxy

Primary LanguageGoMozilla Public License 2.0MPL-2.0

WSDL to Go

Gitter GoDoc Build Status

Generates Go code from a WSDL file.

WARNING

This is fork to make some of my projects compile. You probably want to look at https://github.com/hooklift/gowsdl for the original code. I will try to merge my changes back in the original project one day.

The module change has been done, because I could not figure out how to clone a repo without changing the project url in go 1.12

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