Skip to content

Commit

Permalink
force empty soap action to exist in the generated request
Browse files Browse the repository at this point in the history
  • Loading branch information
ori-moisis committed May 30, 2019
1 parent 9dc92ee commit 8e7a0fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion operations_tmpl.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ var opsTmpl = `
{{$responseType := findType .Output.Message | replaceReservedWords | makePublic}}
func (service *{{$privateType}}) {{makePublic .Name | replaceReservedWords}}Context (ctx context.Context, {{if ne $requestType ""}}request *{{$requestType}}{{end}}) ({{if ne $responseType ""}}*{{$responseType}}, {{end}}error) {
{{if ne $responseType ""}}response := new({{$responseType}}){{end}}
err := service.client.CallContext(ctx, "{{$soapAction}}", {{if ne $requestType ""}}request{{else}}nil{{end}}, {{if ne $responseType ""}}response{{else}}struct{}{}{{end}})
err := service.client.CallContext(ctx, "{{if ne $soapAction ""}}{{$soapAction}}{{else}}''{{end}}", {{if ne $requestType ""}}request{{else}}nil{{end}}, {{if ne $responseType ""}}response{{else}}struct{}{}{{end}})
if err != nil {
return {{if ne $responseType ""}}nil, {{end}}err
}
Expand Down

0 comments on commit 8e7a0fa

Please sign in to comment.