Consolidate V1 SOAP type data into the SOAP package.

This commit is contained in:
John Beisley
2021-08-18 17:03:52 +01:00
committed by Huin
parent a37fadc3ba
commit f320faf4bc
4 changed files with 64 additions and 48 deletions

View File

@ -121,7 +121,7 @@ func (client *{{$srvIdent}}) {{.Name}}Ctx(
request := {{if $winargs}}&{{template "argstruct" $winargs}}{{"{}"}}{{else}}{{"interface{}(nil)"}}{{end}}
// BEGIN Marshal arguments into request.
{{range $winargs}}
if request.{{.Name}}, err = {{.Marshal}}; err != nil {
if request.{{.Name}}, err = {{.MarshalV1}}; err != nil {
return
}{{end}}
// END Marshal arguments into request.
@ -136,7 +136,7 @@ func (client *{{$srvIdent}}) {{.Name}}Ctx(
// BEGIN Unmarshal arguments from response.
{{range $woutargs}}
if {{.Name}}, err = {{.Unmarshal "response"}}; err != nil {
if {{.Name}}, err = {{.UnmarshalV1 "response"}}; err != nil {
return
}{{end}}
// END Unmarshal arguments from response.