-
Notifications
You must be signed in to change notification settings - Fork 1
/
response.go
40 lines (34 loc) · 1.03 KB
/
response.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package main
import (
"encoding/xml"
)
// RESPONSE
// generic
type SoapGenericResponse struct {
XMLName xml.Name `xml:"Envelope"`
XSINamespace string `xml:"xmlns:xsi,attr"`
XSDNamespace string `xml:"xmlns:xsd,attr"`
SoapNamespace string `xml:"xmlns:soap,attr"`
}
// GetGeoIpResponse
type SoapGetGeoIpResponse struct {
SoapGenericResponse
Body SoapGetGeoIpBodyResponse
}
type SoapGetGeoIpBodyResponse struct {
XMLName xml.Name `xml:"Body"`
GetGeoIPResponse SoapGetGeoIpResponseBody
}
type SoapGetGeoIpResponseBody struct {
XMLName xml.Name `xml:"GetGeoIPResponse"`
Namespace string `xml:"xmlns,attr"`
GetGeoIPResponseResult SoapGetGeoIpResponseResult
}
type SoapGetGeoIpResponseResult struct {
XMLName xml.Name `xml:"GetGeoIPResult"`
ReturnCode string `xml:"ReturnCode"`
IP string `xml:"IP"`
ReturnCodeDetails string `xml:"ReturnCodeDetails"`
CountryName string `xml:"CountryName"`
CountryCode string `xml:"CountryCode"`
}