File tree 1 file changed +18
-16
lines changed
1 file changed +18
-16
lines changed Original file line number Diff line number Diff line change @@ -21,23 +21,25 @@ var opsTmpl = `
21
21
{{$soapAction := findSoapAction .Name $portType}}
22
22
{{$output := findType .Output.Message}}
23
23
24
- {{if gt $faults 0}}
25
- /**
26
- * Error can be either of the following types:
27
- * {{range .Faults}}
28
- * - {{.Name}} {{.Doc}}{{end}}
29
- */
30
- {{end}}
31
- {{if ne .Doc ""}}// {{.Doc}}{{end}}
32
- func (service *{{$portType}}) {{makePublic .Name}} (request *{{$requestType}}) (*{{$output}}, error) {
33
- response := &{{$output}}{}
34
- err := service.client.Call("{{$soapAction}}", request, response)
35
- if err != nil {
36
- return nil, err
37
- }
24
+ {{if ne $soapAction ""}}
25
+ {{if ne .Doc ""}}// {{.Doc}}{{end}}
26
+ {{if gt $faults 0}}
27
+ //
28
+ // Error can be either of the following types:
29
+ // {{range .Faults}}
30
+ // - {{.Name}} {{.Doc}}{{end}}
31
+ //
32
+ {{end}}
33
+ func (service *{{$portType}}) {{makePublic .Name}} (request *{{$requestType}}) (*{{$output}}, error) {
34
+ response := &{{$output}}{}
35
+ err := service.client.Call("{{$soapAction}}", request, response)
36
+ if err != nil {
37
+ return nil, err
38
+ }
38
39
39
- return response, nil
40
- }
40
+ return response, nil
41
+ }
42
+ {{end}}
41
43
{{end}}
42
44
{{end}}
43
45
`
You can’t perform that action at this time.
0 commit comments