forked from hooklift/gowsdl
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
68 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# WSDL to Go | ||
Generates Go code from a WSDL file. This project is originally intended to generate Go clients for WS-* services. | ||
|
||
### Features | ||
* Supports only Document/Literal wrapped services, which are [WS-I](http://ws-i.org/) compliant | ||
* Attempts to generate idiomatic Go code as much as possible | ||
* Generates Go code in parallel: types, operations and soap proxy | ||
* Supports: | ||
* WSDL 1.1 | ||
* XML Schema 1.0 | ||
* SOAP 1.1 | ||
* Resolves external XML Schemas recursively, up to 5 recursions. | ||
* Supports providing WSDL HTTP URL as well as a local WSDL file | ||
|
||
|
||
### TODO | ||
* If WSDL file is local, resolve external XML schemas locally too instead of failing due to not having a URL to download them from. | ||
* Resolve XSD element references | ||
* Support for generating namespaces | ||
* Make code generation agnostic so generating code to other programming languages is feasible through plugins | ||
|
||
|
||
## License | ||
Copyright 2014 Cloudescape. All rights reserved. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,16 @@ | ||
package main | ||
|
||
var opsTmpl = ` | ||
{{range .Operations}} | ||
{{range .}} | ||
{{$portType := .Name}} | ||
type {{$portType}} struct { | ||
client *SoapClient | ||
} | ||
{{range .Operations}} | ||
func (service *{{$portType}}) {{.Name}} (request *{{findType .Input.Message}}) (*{{findType .Output.Message}}, error) { | ||
return nil, nil | ||
} | ||
{{end}} | ||
{{end}} | ||
` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters