Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hooklift/gowsdl
WSDL2Go code generation as well as its SOAP proxy
https://github.com/hooklift/gowsdl
cli golang soap-client wsdl wsdl-to-go wsdl-to-golang
Last synced: 6 days ago
JSON representation
WSDL2Go code generation as well as its SOAP proxy
- Host: GitHub
- URL: https://github.com/hooklift/gowsdl
- Owner: hooklift
- License: mpl-2.0
- Created: 2013-12-21T03:39:31.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2024-08-01T01:52:59.000Z (5 months ago)
- Last Synced: 2024-12-10T07:25:39.733Z (13 days ago)
- Topics: cli, golang, soap-client, wsdl, wsdl-to-go, wsdl-to-golang
- Language: Go
- Homepage:
- Size: 5.03 MB
- Stars: 1,165
- Watchers: 39
- Forks: 390
- Open Issues: 93
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# WSDL to Go
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/hooklift/gowsdl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![GoDoc](https://godoc.org/github.com/hooklift/gowsdl?status.svg)](https://godoc.org/github.com/hooklift/gowsdl)
[![Build Status](https://travis-ci.org/hooklift/gowsdl.svg?branch=master)](https://travis-ci.org/hooklift/gowsdl)Generates Go code from a WSDL file.
### Install
* [Download release](https://github.com/hooklift/gowsdl/releases)
* Download and build locally
* 1.15: `go get github.com/hooklift/gowsdl/...`
* 1.20: `go install github.com/hooklift/gowsdl/cmd/gowsdl@latest`
* 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](http://ws-i.org/) 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
```