Mercurial > gemma
diff pkg/soap/erdms2/service.go @ 5618:57c655b93ba8 erdms2
Suppress namespace for erdms.GetRisDataXML SOAP call args.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 28 Nov 2022 17:11:43 +0100 |
parents | f6179b31e0a9 |
children |
line wrap: on
line diff
--- a/pkg/soap/erdms2/service.go Tue Nov 15 14:54:38 2022 +0100 +++ b/pkg/soap/erdms2/service.go Mon Nov 28 17:11:43 2022 +0100 @@ -827,14 +827,20 @@ RefdataReturn []*RefdataReturnType `xml:"refdataReturn,omitempty" json:"refdataReturn,omitempty"` } +// NoNS is a helper type to allow string tags without a namespace. +type NoNS struct { + NS string `xml:"xmlns,attr"` + Text string `xml:",chardata"` +} + type GetRisDataXMLType struct { - Funcode string `xml:"funcode,omitempty" json:"funcode,omitempty"` - - CountryCode *CountryCodeType `xml:"countryCode,omitempty" json:"countryCode,omitempty"` + Funcode *NoNS `xml:"funcode,omitempty" json:"funcode,omitempty"` + + CountryCode *NoNS `xml:"countryCode,omitempty" json:"countryCode,omitempty"` Page *PageRequestType `xml:"page,omitempty" json:"page,omitempty"` - Subcode *RisCodeType `xml:"subcode,omitempty" json:"subcode,omitempty"` + Subcode *NoNS `xml:"subcode,omitempty" json:"subcode,omitempty"` Version *RefrecVersionType `xml:"version,omitempty" json:"version,omitempty"` }