Added Analytics datatypes. Changing namespaces prefix at struct tags

This commit is contained in:
yakovlevdmv
2018-04-05 06:15:00 +03:00
parent d93d40283a
commit d5ca888bc4
8 changed files with 638 additions and 492 deletions

101
Analytics/types.go Normal file
View File

@@ -0,0 +1,101 @@
package Analytics
import (
"github.com/yakovlevdmv/goonvif/xsd/onvif"
"github.com/yakovlevdmv/goonvif/xsd"
)
type GetSupportedRules struct {
XMLName string `xml:"tan:GetSupportedRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type CreateRules struct {
XMLName string `xml:"tan:CreateRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
Rule onvif.Config `xml:"tan:Rule"`
}
type DeleteRules struct {
XMLName string `xml:"tan:DeleteRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
RuleName xsd.String `xml:"tan:RuleName"`
}
type GetRules struct {
XMLName string `xml:"tan:GetRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type GetRuleOptions struct {
XMLName string `xml:"tan:GetRuleOptions"`
RuleType xsd.QName `xml:"tan:RuleType"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type ModifyRules struct {
XMLName string `xml:"tan:ModifyRules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
Rule onvif.Config `xml:"tan:Rule"`
}
type GetServiceCapabilities struct {
XMLName string `xml:"tan:GetServiceCapabilities"`
}
type GetSupportedAnalyticsModules struct {
XMLName string `xml:"tan:GetSupportedAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type GetAnalyticsModuleOptions struct {
XMLName string `xml:"tan:GetAnalyticsModuleOptions"`
Type xsd.QName `xml:"tan:Type"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type CreateAnalyticsModules struct {
XMLName string `xml:"tev:CreateAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
AnalyticsModule onvif.Config `xml:"tan:AnalyticsModule"`
}
type DeleteAnalyticsModules struct {
XMLName string `xml:"tan:DeleteAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
AnalyticsModuleName xsd.String `xml:"tan:AnalyticsModuleName"`
}
type GetAnalyticsModules struct {
XMLName string `xml:"tan:GetAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
}
type ModifyAnalyticsModules struct {
XMLName string `xml:"tan:ModifyAnalyticsModules"`
ConfigurationToken onvif.ReferenceToken `xml:"tan:ConfigurationToken"`
AnalyticsModule onvif.Config `xml:"tan:AnalyticsModule"`
}

100
Device.go
View File

@@ -1,14 +1,17 @@
package goonvif package goonvif
import ( import (
"net"
"encoding/xml" "encoding/xml"
"log" "log"
"fmt" "fmt"
"github.com/beevik/etree" "github.com/beevik/etree"
"github.com/yakovlevdmv/goonvif/networking"
"github.com/yakovlevdmv/gosoap" "github.com/yakovlevdmv/gosoap"
"strconv" "strconv"
"github.com/yakovlevdmv/WS-Discovery"
"github.com/yakovlevdmv/goonvif/Networking"
"reflect"
"strings"
"github.com/yakovlevdmv/goonvif/Device"
) )
var xlmns = map[string]string { var xlmns = map[string]string {
@@ -16,8 +19,9 @@ var xlmns = map[string]string {
"tds":"http://www.onvif.org/ver10/device/wsdl", "tds":"http://www.onvif.org/ver10/device/wsdl",
"trt":"http://www.onvif.org/ver10/media/wsdl", "trt":"http://www.onvif.org/ver10/media/wsdl",
"tev":"http://www.onvif.org/ver10/events/wsdl", "tev":"http://www.onvif.org/ver10/events/wsdl",
"tpz":"http://www.onvif.org/ver20/ptz/wsdl", "tptz":"http://www.onvif.org/ver20/ptz/wsdl",
"timg":"http://www.onvif.org/ver20/imaging/wsdl", "timg":"http://www.onvif.org/ver20/imaging/wsdl",
"tan":"http://www.onvif.org/ver20/analytics/wsdl",
"xmime":"http://www.w3.org/2005/05/xmlmime", "xmime":"http://www.w3.org/2005/05/xmlmime",
"wsnt":"http://docs.oasis-open.org/wsn/b-2", "wsnt":"http://docs.oasis-open.org/wsn/b-2",
"xop":"http://www.w3.org/2004/08/xop/include", "xop":"http://www.w3.org/2004/08/xop/include",
@@ -67,23 +71,60 @@ type deviceInfo struct {
//It contains methods, which helps to communicate with ONVIF device //It contains methods, which helps to communicate with ONVIF device
type device struct { type device struct {
xaddr net.IP xaddr string
login string login string
password string password string
token [64]uint8
endpoints map[string]string endpoints map[string]string
info deviceInfo info deviceInfo
} }
func getAvailableDevicesAtEthernet(interfaceName string) { func GetAvailableDevicesAtSpecificEthernetInterface(interfaceName string) {
/*
Call an WS-Discovery Probe Message to Discover NVT type Devices
*/
devices := WS_Discovery.SendProbe(interfaceName, nil, []string{"dn:"+NVT.String()}, map[string]string{"dn":"http://www.onvif.org/ver10/network/wsdl"})
for _, j := range devices {
fmt.Println(j)
}
}
func (dev *device) getSupportedServices() {
resp, err := dev.CallMethod(Device.GetCapabilities{})
if err != nil {
log.Println(err.Error())
return
} else {
doc := etree.NewDocument()
if err := doc.ReadFromString(resp); err != nil {
log.Println(err.Error())
return
}
services := doc.FindElements("./Envelope/Body/GetCapabilitiesResponse/Capabilities/*/XAddr")
for _, j := range services{
fmt.Println(j.Text())
fmt.Println(j.Parent().Tag)
dev.addEndpoint(j.Parent().Tag, j.Text())
}
}
} }
//NewDevice function construct a ONVIF Device entity //NewDevice function construct a ONVIF Device entity
func NewDevice() *device { func NewDevice(xaddr string) *device {
dev := new(device)
dev.xaddr = xaddr
dev.endpoints = make(map[string]string)
dev.addEndpoint("Device", "http://"+xaddr+"/onvif/device_service")
dev.getSupportedServices()
return dev
}
func (dev *device)addEndpoint(Key, Value string) {
dev.endpoints[Key]=Value
}
func newDeviceEntity() *device {
return &device{} return &device{}
} }
@@ -99,7 +140,7 @@ func (dev *device) Authenticate(username, password string) {
func buildMethodSOAP(msg string) (gosoap.SoapMessage, error) { func buildMethodSOAP(msg string) (gosoap.SoapMessage, error) {
doc := etree.NewDocument() doc := etree.NewDocument()
if err := doc.ReadFromString(msg); err != nil { if err := doc.ReadFromString(msg); err != nil {
log.Println("Got error") //log.Println("Got error")
return "", err return "", err
} }
element := doc.Root() element := doc.Root()
@@ -116,7 +157,19 @@ func buildMethodSOAP(msg string) (gosoap.SoapMessage, error) {
//CallMethod functions call an method, defined <method> struct. //CallMethod functions call an method, defined <method> struct.
//You should use Authenticate method to call authorized requests. //You should use Authenticate method to call authorized requests.
func (dev device) CallMethod(endpoint string, method interface{}) (string, error) { func (dev device) CallMethod(method interface{}) (string, error) {
pkgPath := strings.Split(reflect.TypeOf(method).PkgPath(),"/")
pkg := pkgPath[len(pkgPath)-1]
var endpoint string
switch pkg {
case "Device": endpoint = dev.endpoints["Device"]
case "Event": endpoint = dev.endpoints["Event"]
case "Imaging": endpoint = dev.endpoints["Imaging"]
case "Media": endpoint = dev.endpoints["Media"]
case "PTZ": endpoint = dev.endpoints["PTZ"]
}
//TODO: Get endpoint automatically //TODO: Get endpoint automatically
if dev.login != "" && dev.password != "" { if dev.login != "" && dev.password != "" {
return dev.CallAuthorizedMethod(endpoint, method) return dev.CallAuthorizedMethod(endpoint, method)
@@ -133,31 +186,25 @@ func (dev device) CallNonAuthorizedMethod(endpoint string, method interface{}) (
*/ */
output, err := xml.MarshalIndent(method, " ", " ") output, err := xml.MarshalIndent(method, " ", " ")
if err != nil { if err != nil {
log.Printf("error: %v\n", err.Error()) //log.Printf("error: %v\n", err.Error())
return "", err return "", err
} }
if err != nil {
fmt.Println(err)
}
/* /*
Build an SOAP request with <method> Build an SOAP request with <method>
*/ */
soap, err := buildMethodSOAP(string(output)) soap, err := buildMethodSOAP(string(output))
if err != nil { if err != nil {
log.Printf("error: %v\n", err) //log.Printf("error: %v\n", err)
return "", err return "", err
} }
soap.AddRootNamespaces(xlmns) soap.AddRootNamespaces(xlmns)
fmt.Println(soap.String())
/* /*
Sending request and returns the response Sending request and returns the response
*/ */
return networking.SendSoap(endpoint, soap.String()), nil return networking.SendSoap(endpoint, soap.String())
} }
//CallMethod functions call an method, defined <method> struct with authentication data //CallMethod functions call an method, defined <method> struct with authentication data
@@ -167,21 +214,17 @@ func (dev device) CallAuthorizedMethod(endpoint string, method interface{}) (str
*/ */
output, err := xml.MarshalIndent(method, " ", " ") output, err := xml.MarshalIndent(method, " ", " ")
if err != nil { if err != nil {
log.Printf("error: %v\n", err.Error()) //log.Printf("error: %v\n", err.Error())
return "", err return "", err
} }
if err != nil {
fmt.Println(err)
}
/* /*
Build an SOAP request with <method> Build an SOAP request with <method>
*/ */
soap, err := buildMethodSOAP(string(output)) soap, err := buildMethodSOAP(string(output))
if err != nil { if err != nil {
log.Fatal(err) //log.Printf("error: %v\n", err.Error())
return "", err
} }
/* /*
@@ -199,7 +242,7 @@ func (dev device) CallAuthorizedMethod(endpoint string, method interface{}) (str
soapReq, err := xml.MarshalIndent(auth, "", " ") soapReq, err := xml.MarshalIndent(auth, "", " ")
if err != nil { if err != nil {
log.Printf("error: %v\n", err.Error()) //log.Printf("error: %v\n", err.Error())
return "", err return "", err
} }
@@ -208,9 +251,8 @@ func (dev device) CallAuthorizedMethod(endpoint string, method interface{}) (str
*/ */
soap.AddStringHeaderContent(string(soapReq)) soap.AddStringHeaderContent(string(soapReq))
fmt.Println(soap.String())
/* /*
Sending request and returns the response Sending request and returns the response
*/ */
return networking.SendSoap(endpoint, soap.String()), nil return networking.SendSoap(endpoint, soap.String())
} }

View File

@@ -83,28 +83,28 @@ type MiscCapabilities struct {
type StorageConfiguration struct { type StorageConfiguration struct {
onvif.DeviceEntity onvif.DeviceEntity
Data StorageConfigurationData `xml:"wsdl:Data"` Data StorageConfigurationData `xml:"tds:Data"`
} }
type StorageConfigurationData struct { type StorageConfigurationData struct {
Type xsd.String `xml:"type,attr"` Type xsd.String `xml:"type,attr"`
LocalPath xsd.AnyURI `xml:"wsdl:LocalPath"` LocalPath xsd.AnyURI `xml:"tds:LocalPath"`
StorageUri xsd.AnyURI `xml:"wsdl:StorageUri"` StorageUri xsd.AnyURI `xml:"tds:StorageUri"`
User UserCredential `xml:"wsdl:User"` User UserCredential `xml:"tds:User"`
Extension xsd.AnyURI `xml:"wsdl:Extension"` Extension xsd.AnyURI `xml:"tds:Extension"`
} }
type UserCredential struct { type UserCredential struct {
UserName xsd.String `xml:"wsdl:UserName"` UserName xsd.String `xml:"tds:UserName"`
Password xsd.String `xml:"wsdl:Password"` Password xsd.String `xml:"tds:Password"`
Extension xsd.AnyType `xml:"wsdl:Extension"` Extension xsd.AnyType `xml:"tds:Extension"`
} }
//Device main types //Device main types
type GetServices struct { type GetServices struct {
XMLName string `xml:"wsdl:GetServices"` XMLName string `xml:"tds:GetServices"`
IncludeCapability xsd.Boolean `xml:"wsdl:IncludeCapability"` IncludeCapability xsd.Boolean `xml:"tds:IncludeCapability"`
} }
@@ -116,7 +116,7 @@ type GetServicesResponse struct {
type GetServiceCapabilities struct { type GetServiceCapabilities struct {
XMLName string `xml:"wsdl:GetServiceCapabilities"` XMLName string `xml:"tds:GetServiceCapabilities"`
} }
@@ -127,7 +127,7 @@ type GetServiceCapabilitiesResponse struct {
} }
type GetDeviceInformation struct { type GetDeviceInformation struct {
XMLName string `xml:"wsdl:GetDeviceInformation"` XMLName string `xml:"tds:GetDeviceInformation"`
} }
@@ -142,11 +142,11 @@ type GetDeviceInformationResponse struct {
type SetSystemDateAndTime struct { type SetSystemDateAndTime struct {
XMLName string `xml:"wsdl:SetSystemDateAndTime"` XMLName string `xml:"tds:SetSystemDateAndTime"`
DateTimeType onvif.SetDateTimeType `xml:"wsdl:DateTimeType"` DateTimeType onvif.SetDateTimeType `xml:"tds:DateTimeType"`
DaylightSavings xsd.Boolean `xml:"wsdl:DaylightSavings"` DaylightSavings xsd.Boolean `xml:"tds:DaylightSavings"`
TimeZone onvif.TimeZone `xml:"wsdl:TimeZone"` TimeZone onvif.TimeZone `xml:"tds:TimeZone"`
UTCDateTime onvif.DateTime `xml:"wsdl:UTCDateTime"` UTCDateTime onvif.DateTime `xml:"tds:UTCDateTime"`
} }
@@ -156,7 +156,7 @@ type SetSystemDateAndTimeResponse struct {
type GetSystemDateAndTime struct { type GetSystemDateAndTime struct {
XMLName string `xml:"wsdl:GetSystemDateAndTime"` XMLName string `xml:"tds:GetSystemDateAndTime"`
} }
@@ -168,8 +168,8 @@ type GetSystemDateAndTimeResponse struct {
type SetSystemFactoryDefault struct { type SetSystemFactoryDefault struct {
XMLName string `xml:"wsdl:SetSystemFactoryDefault"` XMLName string `xml:"tds:SetSystemFactoryDefault"`
FactoryDefault onvif.FactoryDefaultType `xml:"wsdl:FactoryDefault"` FactoryDefault onvif.FactoryDefaultType `xml:"tds:FactoryDefault"`
} }
@@ -180,8 +180,8 @@ type SetSystemFactoryDefaultResponse struct {
type UpgradeSystemFirmware struct { type UpgradeSystemFirmware struct {
XMLName string `xml:"wsdl:UpgradeSystemFirmware"` XMLName string `xml:"tds:UpgradeSystemFirmware"`
Firmware onvif.AttachmentData `xml:"wsdl:Firmware"` Firmware onvif.AttachmentData `xml:"tds:Firmware"`
} }
@@ -193,7 +193,7 @@ type UpgradeSystemFirmwareResponse struct {
type SystemReboot struct { type SystemReboot struct {
XMLName string `xml:"wsdl:SystemReboot"` XMLName string `xml:"tds:SystemReboot"`
} }
@@ -205,8 +205,8 @@ type SystemRebootResponse struct {
//TODO: one or more repetitions //TODO: one or more repetitions
type RestoreSystem struct { type RestoreSystem struct {
XMLName string `xml:"wsdl:RestoreSystem"` XMLName string `xml:"tds:RestoreSystem"`
BackupFiles onvif.BackupFile `xml:"wsdl:BackupFiles"` BackupFiles onvif.BackupFile `xml:"tds:BackupFiles"`
} }
@@ -217,7 +217,7 @@ type RestoreSystemResponse struct {
type GetSystemBackup struct { type GetSystemBackup struct {
XMLName string `xml:"wsdl:GetSystemBackup"` XMLName string `xml:"tds:GetSystemBackup"`
} }
@@ -229,8 +229,8 @@ type GetSystemBackupResponse struct {
type GetSystemLog struct { type GetSystemLog struct {
XMLName string `xml:"wsdl:GetSystemLog"` XMLName string `xml:"tds:GetSystemLog"`
LogType onvif.SystemLogType `xml:"wsdl:LogType"` LogType onvif.SystemLogType `xml:"tds:LogType"`
} }
@@ -242,7 +242,7 @@ type GetSystemLogResponse struct {
type GetSystemSupportInformation struct { type GetSystemSupportInformation struct {
XMLName string `xml:"wsdl:GetSystemSupportInformation"` XMLName string `xml:"tds:GetSystemSupportInformation"`
} }
@@ -254,7 +254,7 @@ type GetSystemSupportInformationResponse struct {
type GetScopes struct { type GetScopes struct {
XMLName string `xml:"wsdl:GetScopes"` XMLName string `xml:"tds:GetScopes"`
} }
@@ -266,8 +266,8 @@ type GetScopesResponse struct {
//TODO: one or more scopes //TODO: one or more scopes
type SetScopes struct { type SetScopes struct {
XMLName string `xml:"wsdl:SetScopes"` XMLName string `xml:"tds:SetScopes"`
Scopes xsd.AnyURI `xml:"wsdl:Scopes"` Scopes xsd.AnyURI `xml:"tds:Scopes"`
} }
@@ -278,8 +278,8 @@ type SetScopesResponse struct {
//TODO: list of scopes //TODO: list of scopes
type AddScopes struct { type AddScopes struct {
XMLName string `xml:"wsdl:AddScopes"` XMLName string `xml:"tds:AddScopes"`
ScopeItem xsd.AnyURI`xml:"wsdl:ScopeItem"` ScopeItem xsd.AnyURI`xml:"tds:ScopeItem"`
} }
@@ -290,7 +290,7 @@ type AddScopesResponse struct {
//TODO: One or more repetitions //TODO: One or more repetitions
type RemoveScopes struct { type RemoveScopes struct {
XMLName string `xml:"wsdl:RemoveScopes"` XMLName string `xml:"tds:RemoveScopes"`
ScopeItem xsd.AnyURI `xml:"onvif:ScopeItem"` ScopeItem xsd.AnyURI `xml:"onvif:ScopeItem"`
} }
@@ -303,7 +303,7 @@ type RemoveScopesResponse struct {
type GetDiscoveryMode struct { type GetDiscoveryMode struct {
XMLName string `xml:"wsdl:GetDiscoveryMode"` XMLName string `xml:"tds:GetDiscoveryMode"`
} }
@@ -315,8 +315,8 @@ type GetDiscoveryModeResponse struct {
type SetDiscoveryMode struct { type SetDiscoveryMode struct {
XMLName string `xml:"wsdl:SetDiscoveryMode"` XMLName string `xml:"tds:SetDiscoveryMode"`
DiscoveryMode onvif.DiscoveryMode `xml:"wsdl:DiscoveryMode"` DiscoveryMode onvif.DiscoveryMode `xml:"tds:DiscoveryMode"`
} }
@@ -327,7 +327,7 @@ type SetDiscoveryModeResponse struct {
type GetRemoteDiscoveryMode struct { type GetRemoteDiscoveryMode struct {
XMLName string `xml:"wsdl:GetRemoteDiscoveryMode"` XMLName string `xml:"tds:GetRemoteDiscoveryMode"`
} }
@@ -339,8 +339,8 @@ type GetRemoteDiscoveryModeResponse struct {
type SetRemoteDiscoveryMode struct { type SetRemoteDiscoveryMode struct {
XMLName string `xml:"wsdl:SetRemoteDiscoveryMode"` XMLName string `xml:"tds:SetRemoteDiscoveryMode"`
RemoteDiscoveryMode onvif.DiscoveryMode `xml:"wsdl:RemoteDiscoveryMode"` RemoteDiscoveryMode onvif.DiscoveryMode `xml:"tds:RemoteDiscoveryMode"`
} }
@@ -351,7 +351,7 @@ type SetRemoteDiscoveryModeResponse struct {
type GetDPAddresses struct { type GetDPAddresses struct {
XMLName string `xml:"wsdl:GetDPAddresses"` XMLName string `xml:"tds:GetDPAddresses"`
} }
@@ -363,8 +363,8 @@ type GetDPAddressesResponse struct {
type SetDPAddresses struct { type SetDPAddresses struct {
XMLName string `xml:"wsdl:SetDPAddresses"` XMLName string `xml:"tds:SetDPAddresses"`
DPAddress onvif.NetworkHost `xml:"wsdl:DPAddress"` DPAddress onvif.NetworkHost `xml:"tds:DPAddress"`
} }
@@ -375,7 +375,7 @@ type SetDPAddressesResponse struct {
type GetEndpointReference struct { type GetEndpointReference struct {
XMLName string `xml:"wsdl:GetEndpointReference"` XMLName string `xml:"tds:GetEndpointReference"`
} }
@@ -387,7 +387,7 @@ type GetEndpointReferenceResponse struct {
type GetRemoteUser struct { type GetRemoteUser struct {
XMLName string `xml:"wsdl:GetRemoteUser"` XMLName string `xml:"tds:GetRemoteUser"`
} }
@@ -399,8 +399,8 @@ type GetRemoteUserResponse struct {
type SetRemoteUser struct { type SetRemoteUser struct {
XMLName string `xml:"wsdl:SetRemoteUser"` XMLName string `xml:"tds:SetRemoteUser"`
RemoteUser onvif.RemoteUser `xml:"wsdl:RemoteUser"` RemoteUser onvif.RemoteUser `xml:"tds:RemoteUser"`
} }
@@ -411,7 +411,7 @@ type SetRemoteUserResponse struct {
type GetUsers struct { type GetUsers struct {
XMLName string `xml:"wsdl:GetUsers"` XMLName string `xml:"tds:GetUsers"`
} }
@@ -423,8 +423,8 @@ type GetUsersResponse struct {
//TODO: List of users //TODO: List of users
type CreateUsers struct { type CreateUsers struct {
XMLName string `xml:"wsdl:CreateUsers"` XMLName string `xml:"tds:CreateUsers"`
User onvif.User `xml:"wsdl:User,omitempty"` User onvif.User `xml:"tds:User,omitempty"`
} }
@@ -435,8 +435,8 @@ type CreateUsersResponse struct {
//TODO: one or more Username //TODO: one or more Username
type DeleteUsers struct { type DeleteUsers struct {
XMLName xsd.String `xml:"wsdl:DeleteUsers"` XMLName xsd.String `xml:"tds:DeleteUsers"`
Username xsd.String `xml:"wsdl:Username"` Username xsd.String `xml:"tds:Username"`
} }
@@ -447,8 +447,8 @@ type DeleteUsersResponse struct {
type SetUser struct { type SetUser struct {
XMLName string `xml:"wsdl:SetUser"` XMLName string `xml:"tds:SetUser"`
User onvif.User `xml:"wsdl:User"` User onvif.User `xml:"tds:User"`
} }
@@ -459,7 +459,7 @@ type SetUserResponse struct {
type GetWsdlUrl struct { type GetWsdlUrl struct {
XMLName string `xml:"wsdl:GetWsdlUrl"` XMLName string `xml:"tds:GetWsdlUrl"`
} }
@@ -471,8 +471,8 @@ type GetWsdlUrlResponse struct {
type GetCapabilities struct { type GetCapabilities struct {
XMLName string `xml:"wsdl:GetCapabilities"` XMLName string `xml:"tds:GetCapabilities"`
Category onvif.CapabilityCategory `xml:"wsdl:Category"` Category onvif.CapabilityCategory `xml:"tds:Category"`
} }
@@ -484,7 +484,7 @@ type GetCapabilitiesResponse struct {
type GetHostname struct { type GetHostname struct {
XMLName string `xml:"wsdl:GetHostname"` XMLName string `xml:"tds:GetHostname"`
} }
@@ -495,8 +495,8 @@ type GetHostnameResponse struct {
type SetHostname struct { type SetHostname struct {
XMLName string `xml:"wsdl:SetHostname"` XMLName string `xml:"tds:SetHostname"`
Name xsd.Token `xml:"wsdl:Name"` Name xsd.Token `xml:"tds:Name"`
} }
@@ -507,8 +507,8 @@ type SetHostnameResponse struct {
type SetHostnameFromDHCP struct { type SetHostnameFromDHCP struct {
XMLName string `xml:"wsdl:SetHostnameFromDHCP"` XMLName string `xml:"tds:SetHostnameFromDHCP"`
FromDHCP xsd.Boolean `xml:"wsdl:FromDHCP"` FromDHCP xsd.Boolean `xml:"tds:FromDHCP"`
} }
@@ -520,7 +520,7 @@ type SetHostnameFromDHCPResponse struct {
type GetDNS struct { type GetDNS struct {
XMLName string `xml:"wsdl:GetDNS"` XMLName string `xml:"tds:GetDNS"`
} }
@@ -532,10 +532,10 @@ type GetDNSResponse struct {
type SetDNS struct { type SetDNS struct {
XMLName string `xml:"wsdl:SetDNS"` XMLName string `xml:"tds:SetDNS"`
FromDHCP xsd.Boolean `xml:"wsdl:FromDHCP"` FromDHCP xsd.Boolean `xml:"tds:FromDHCP"`
SearchDomain xsd.Token `xml:"wsdl:SearchDomain"` SearchDomain xsd.Token `xml:"tds:SearchDomain"`
DNSManual onvif.IPAddress `xml:"wsdl:DNSManual"` DNSManual onvif.IPAddress `xml:"tds:DNSManual"`
} }
@@ -546,7 +546,7 @@ type SetDNSResponse struct {
type GetNTP struct { type GetNTP struct {
XMLName string `xml:"wsdl:GetNTP"` XMLName string `xml:"tds:GetNTP"`
} }
@@ -558,9 +558,9 @@ type GetNTPResponse struct {
type SetNTP struct { type SetNTP struct {
XMLName string `xml:"wsdl:SetNTP"` XMLName string `xml:"tds:SetNTP"`
FromDHCP xsd.Boolean `xml:"wsdl:FromDHCP"` FromDHCP xsd.Boolean `xml:"tds:FromDHCP"`
NTPManual onvif.NetworkHost `xml:"wsdl:NTPManual"` NTPManual onvif.NetworkHost `xml:"tds:NTPManual"`
} }
@@ -571,7 +571,7 @@ type SetNTPResponse struct {
type GetDynamicDNS struct { type GetDynamicDNS struct {
XMLName string `xml:"wsdl:GetDynamicDNS"` XMLName string `xml:"tds:GetDynamicDNS"`
} }
@@ -583,10 +583,10 @@ type GetDynamicDNSResponse struct {
type SetDynamicDNS struct { type SetDynamicDNS struct {
XMLName string `xml:"wsdl:SetDynamicDNS"` XMLName string `xml:"tds:SetDynamicDNS"`
Type onvif.DynamicDNSType `xml:"wsdl:Type"` Type onvif.DynamicDNSType `xml:"tds:Type"`
Name onvif.DNSName `xml:"wsdl:Name"` Name onvif.DNSName `xml:"tds:Name"`
TTL xsd.Duration `xml:"wsdl:TTL"` TTL xsd.Duration `xml:"tds:TTL"`
} }
@@ -597,7 +597,7 @@ type SetDynamicDNSResponse struct {
type GetNetworkInterfaces struct { type GetNetworkInterfaces struct {
XMLName string `xml:"wsdl:GetNetworkInterfaces"` XMLName string `xml:"tds:GetNetworkInterfaces"`
} }
@@ -609,9 +609,9 @@ type GetNetworkInterfacesResponse struct {
type SetNetworkInterfaces struct { type SetNetworkInterfaces struct {
XMLName string `xml:"wsdl:SetNetworkInterfaces"` XMLName string `xml:"tds:SetNetworkInterfaces"`
InterfaceToken onvif.ReferenceToken `xml:"wsdl:InterfaceToken"` InterfaceToken onvif.ReferenceToken `xml:"tds:InterfaceToken"`
NetworkInterface onvif.NetworkInterfaceSetConfiguration `xml:"wsdl:NetworkInterface"` NetworkInterface onvif.NetworkInterfaceSetConfiguration `xml:"tds:NetworkInterface"`
} }
@@ -623,7 +623,7 @@ type SetNetworkInterfacesResponse struct {
type GetNetworkProtocols struct { type GetNetworkProtocols struct {
XMLName string `xml:"wsdl:GetNetworkProtocols"` XMLName string `xml:"tds:GetNetworkProtocols"`
} }
@@ -635,8 +635,8 @@ type GetNetworkProtocolsResponse struct {
type SetNetworkProtocols struct { type SetNetworkProtocols struct {
XMLName string `xml:"wsdl:SetNetworkProtocols"` XMLName string `xml:"tds:SetNetworkProtocols"`
NetworkProtocols onvif.NetworkProtocol `xml:"wsdl:NetworkProtocols"` NetworkProtocols onvif.NetworkProtocol `xml:"tds:NetworkProtocols"`
} }
@@ -647,7 +647,7 @@ type SetNetworkProtocolsResponse struct {
type GetNetworkDefaultGateway struct { type GetNetworkDefaultGateway struct {
XMLName string `xml:"wsdl:GetNetworkDefaultGateway"` XMLName string `xml:"tds:GetNetworkDefaultGateway"`
} }
@@ -659,9 +659,9 @@ type GetNetworkDefaultGatewayResponse struct {
type SetNetworkDefaultGateway struct { type SetNetworkDefaultGateway struct {
XMLName string `xml:"wsdl:SetNetworkDefaultGateway"` XMLName string `xml:"tds:SetNetworkDefaultGateway"`
IPv4Address onvif.IPv4Address `xml:"wsdl:IPv4Address"` IPv4Address onvif.IPv4Address `xml:"tds:IPv4Address"`
IPv6Address onvif.IPv6Address `xml:"wsdl:IPv6Address"` IPv6Address onvif.IPv6Address `xml:"tds:IPv6Address"`
} }
@@ -672,7 +672,7 @@ type SetNetworkDefaultGatewayResponse struct {
type GetZeroConfiguration struct { type GetZeroConfiguration struct {
XMLName string `xml:"wsdl:GetZeroConfiguration"` XMLName string `xml:"tds:GetZeroConfiguration"`
} }
@@ -684,9 +684,9 @@ type GetZeroConfigurationResponse struct {
type SetZeroConfiguration struct { type SetZeroConfiguration struct {
XMLName string `xml:"wsdl:SetZeroConfiguration"` XMLName string `xml:"tds:SetZeroConfiguration"`
InterfaceToken onvif.ReferenceToken `xml:"wsdl:InterfaceToken"` InterfaceToken onvif.ReferenceToken `xml:"tds:InterfaceToken"`
Enabled xsd.Boolean `xml:"wsdl:Enabled"` Enabled xsd.Boolean `xml:"tds:Enabled"`
} }
@@ -697,7 +697,7 @@ type SetZeroConfigurationResponse struct {
type GetIPAddressFilter struct { type GetIPAddressFilter struct {
XMLName string `xml:"wsdl:GetIPAddressFilter"` XMLName string `xml:"tds:GetIPAddressFilter"`
} }
@@ -709,8 +709,8 @@ type GetIPAddressFilterResponse struct {
type SetIPAddressFilter struct { type SetIPAddressFilter struct {
XMLName string `xml:"wsdl:SetIPAddressFilter"` XMLName string `xml:"tds:SetIPAddressFilter"`
IPAddressFilter onvif.IPAddressFilter `xml:"wsdl:IPAddressFilter"` IPAddressFilter onvif.IPAddressFilter `xml:"tds:IPAddressFilter"`
} }
@@ -725,8 +725,8 @@ type SetIPAddressFilterResponse struct {
//the device shall support adding of IP filtering addresses through //the device shall support adding of IP filtering addresses through
//the AddIPAddressFilter command. //the AddIPAddressFilter command.
type AddIPAddressFilter struct { type AddIPAddressFilter struct {
XMLName string `xml:"wsdl:AddIPAddressFilter"` XMLName string `xml:"tds:AddIPAddressFilter"`
IPAddressFilter onvif.IPAddressFilter `xml:"wsdl:IPAddressFilter"` IPAddressFilter onvif.IPAddressFilter `xml:"tds:IPAddressFilter"`
} }
@@ -737,7 +737,7 @@ type AddIPAddressFilterResponse struct {
type RemoveIPAddressFilter struct { type RemoveIPAddressFilter struct {
XMLName string `xml:"wsdl:RemoveIPAddressFilter"` XMLName string `xml:"tds:RemoveIPAddressFilter"`
IPAddressFilter onvif.IPAddressFilter `xml:"onvif:IPAddressFilter"` IPAddressFilter onvif.IPAddressFilter `xml:"onvif:IPAddressFilter"`
} }
@@ -749,7 +749,7 @@ type RemoveIPAddressFilterResponse struct {
type GetAccessPolicy struct { type GetAccessPolicy struct {
XMLName string `xml:"wsdl:GetAccessPolicy"` XMLName string `xml:"tds:GetAccessPolicy"`
} }
@@ -760,8 +760,8 @@ type GetAccessPolicyResponse struct {
type SetAccessPolicy struct { type SetAccessPolicy struct {
XMLName string `xml:"wsdl:SetAccessPolicy"` XMLName string `xml:"tds:SetAccessPolicy"`
PolicyFile onvif.BinaryData `xml:"wsdl:PolicyFile"` PolicyFile onvif.BinaryData `xml:"tds:PolicyFile"`
} }
@@ -772,11 +772,11 @@ type SetAccessPolicyResponse struct {
type CreateCertificate struct { type CreateCertificate struct {
XMLName string `xml:"wsdl:CreateCertificate"` XMLName string `xml:"tds:CreateCertificate"`
CertificateID xsd.Token `xml:"wsdl:CertificateID,omitempty"` CertificateID xsd.Token `xml:"tds:CertificateID,omitempty"`
Subject string `xml:"wsdl:Subject,omitempty"` Subject string `xml:"tds:Subject,omitempty"`
ValidNotBefore xsd.DateTime `xml:"wsdl:ValidNotBefore,omitempty"` ValidNotBefore xsd.DateTime `xml:"tds:ValidNotBefore,omitempty"`
ValidNotAfter xsd.DateTime `xml:"wsdl:ValidNotAfter,omitempty"` ValidNotAfter xsd.DateTime `xml:"tds:ValidNotAfter,omitempty"`
} }
@@ -788,7 +788,7 @@ type CreateCertificateResponse struct {
type GetCertificates struct { type GetCertificates struct {
XMLName string `xml:"wsdl:GetCertificates"` XMLName string `xml:"tds:GetCertificates"`
} }
@@ -799,7 +799,7 @@ type GetCertificatesResponse struct {
type GetCertificatesStatus struct { type GetCertificatesStatus struct {
XMLName string `xml:"wsdl:GetCertificatesStatus"` XMLName string `xml:"tds:GetCertificatesStatus"`
} }
@@ -811,8 +811,8 @@ type GetCertificatesStatusResponse struct {
type SetCertificatesStatus struct { type SetCertificatesStatus struct {
XMLName string `xml:"wsdl:SetCertificatesStatus"` XMLName string `xml:"tds:SetCertificatesStatus"`
CertificateStatus onvif.CertificateStatus `xml:"wsdl:CertificateStatus"` CertificateStatus onvif.CertificateStatus `xml:"tds:CertificateStatus"`
} }
@@ -823,8 +823,8 @@ type SetCertificatesStatusResponse struct {
//TODO: List of CertificateID //TODO: List of CertificateID
type DeleteCertificates struct { type DeleteCertificates struct {
XMLName string `xml:"wsdl:DeleteCertificates"` XMLName string `xml:"tds:DeleteCertificates"`
CertificateID xsd.Token `xml:"wsdl:CertificateID"` CertificateID xsd.Token `xml:"tds:CertificateID"`
} }
@@ -835,10 +835,10 @@ type DeleteCertificatesResponse struct {
//TODO: Откуда onvif:data = cid:21312413412 //TODO: Откуда onvif:data = cid:21312413412
type GetPkcs10Request struct { type GetPkcs10Request struct {
XMLName string `xml:"wsdl:GetPkcs10Request"` XMLName string `xml:"tds:GetPkcs10Request"`
CertificateID xsd.Token `xml:"wsdl:CertificateID"` CertificateID xsd.Token `xml:"tds:CertificateID"`
Subject xsd.String `xml:"wsdl:Subject"` Subject xsd.String `xml:"tds:Subject"`
Attributes onvif.BinaryData `xml:"wsdl:Attributes"` Attributes onvif.BinaryData `xml:"tds:Attributes"`
} }
@@ -850,8 +850,8 @@ type GetPkcs10RequestResponse struct {
//TODO: one or more NTVCertificate //TODO: one or more NTVCertificate
type LoadCertificates struct { type LoadCertificates struct {
XMLName string `xml:"wsdl:LoadCertificates"` XMLName string `xml:"tds:LoadCertificates"`
NVTCertificate onvif.Certificate `xml:"wsdl:NVTCertificate"` NVTCertificate onvif.Certificate `xml:"tds:NVTCertificate"`
} }
@@ -862,7 +862,7 @@ type LoadCertificatesResponse struct {
type GetClientCertificateMode struct { type GetClientCertificateMode struct {
XMLName string `xml:"wsdl:GetClientCertificateMode"` XMLName string `xml:"tds:GetClientCertificateMode"`
} }
@@ -874,8 +874,8 @@ type GetClientCertificateModeResponse struct {
type SetClientCertificateMode struct { type SetClientCertificateMode struct {
XMLName string `xml:"wsdl:SetClientCertificateMode"` XMLName string `xml:"tds:SetClientCertificateMode"`
Enabled xsd.Boolean `xml:"wsdl:Enabled"` Enabled xsd.Boolean `xml:"tds:Enabled"`
} }
@@ -886,7 +886,7 @@ type SetClientCertificateModeResponse struct {
type GetRelayOutputs struct { type GetRelayOutputs struct {
XMLName string `xml:"wsdl:GetRelayOutputs"` XMLName string `xml:"tds:GetRelayOutputs"`
} }
@@ -898,9 +898,9 @@ type GetRelayOutputsResponse struct {
type SetRelayOutputSettings struct { type SetRelayOutputSettings struct {
XMLName string `xml:"wsdl:SetRelayOutputSettings"` XMLName string `xml:"tds:SetRelayOutputSettings"`
RelayOutputToken onvif.ReferenceToken `xml:"wsdl:RelayOutputToken"` RelayOutputToken onvif.ReferenceToken `xml:"tds:RelayOutputToken"`
Properties onvif.RelayOutputSettings `xml:"wsdl:Properties"` Properties onvif.RelayOutputSettings `xml:"tds:Properties"`
} }
@@ -911,9 +911,9 @@ type SetRelayOutputSettingsResponse struct {
type SetRelayOutputState struct { type SetRelayOutputState struct {
XMLName string `xml:"wsdl:SetRelayOutputState"` XMLName string `xml:"tds:SetRelayOutputState"`
RelayOutputToken onvif.ReferenceToken `xml:"wsdl:RelayOutputToken"` RelayOutputToken onvif.ReferenceToken `xml:"tds:RelayOutputToken"`
LogicalState onvif.RelayLogicalState `xml:"wsdl:LogicalState"` LogicalState onvif.RelayLogicalState `xml:"tds:LogicalState"`
} }
@@ -924,8 +924,8 @@ type SetRelayOutputStateResponse struct {
type SendAuxiliaryCommand struct { type SendAuxiliaryCommand struct {
XMLName string `xml:"wsdl:SendAuxiliaryCommand"` XMLName string `xml:"tds:SendAuxiliaryCommand"`
AuxiliaryCommand onvif.AuxiliaryData `xml:"wsdl:AuxiliaryCommand"` AuxiliaryCommand onvif.AuxiliaryData `xml:"tds:AuxiliaryCommand"`
} }
@@ -937,7 +937,7 @@ type SendAuxiliaryCommandResponse struct {
type GetCACertificates struct { type GetCACertificates struct {
XMLName string `xml:"wsdl:GetCACertificates"` XMLName string `xml:"tds:GetCACertificates"`
} }
@@ -948,8 +948,8 @@ type GetCACertificatesResponse struct {
//TODO: one or more CertificateWithPrivateKey //TODO: one or more CertificateWithPrivateKey
type LoadCertificateWithPrivateKey struct { type LoadCertificateWithPrivateKey struct {
XMLName string `xml:"wsdl:LoadCertificateWithPrivateKey"` XMLName string `xml:"tds:LoadCertificateWithPrivateKey"`
CertificateWithPrivateKey onvif.CertificateWithPrivateKey `xml:"wsdl:CertificateWithPrivateKey"` CertificateWithPrivateKey onvif.CertificateWithPrivateKey `xml:"tds:CertificateWithPrivateKey"`
} }
@@ -960,8 +960,8 @@ type LoadCertificateWithPrivateKeyResponse struct {
type GetCertificateInformation struct { type GetCertificateInformation struct {
XMLName string `xml:"wsdl:GetCertificateInformation"` XMLName string `xml:"tds:GetCertificateInformation"`
CertificateID xsd.Token `xml:"wsdl:CertificateID"` CertificateID xsd.Token `xml:"tds:CertificateID"`
} }
@@ -973,8 +973,8 @@ type GetCertificateInformationResponse struct {
type LoadCACertificates struct { type LoadCACertificates struct {
XMLName string `xml:"wsdl:LoadCACertificates"` XMLName string `xml:"tds:LoadCACertificates"`
CACertificate onvif.Certificate `xml:"wsdl:CACertificate"` CACertificate onvif.Certificate `xml:"tds:CACertificate"`
} }
@@ -985,8 +985,8 @@ type LoadCACertificatesResponse struct {
type CreateDot1XConfiguration struct { type CreateDot1XConfiguration struct {
XMLName string `xml:"wsdl:CreateDot1XConfiguration"` XMLName string `xml:"tds:CreateDot1XConfiguration"`
Dot1XConfiguration onvif.Dot1XConfiguration `xml:"wsdl:Dot1XConfiguration"` Dot1XConfiguration onvif.Dot1XConfiguration `xml:"tds:Dot1XConfiguration"`
} }
@@ -997,8 +997,8 @@ type CreateDot1XConfigurationResponse struct {
type SetDot1XConfiguration struct { type SetDot1XConfiguration struct {
XMLName string `xml:"wsdl:SetDot1XConfiguration"` XMLName string `xml:"tds:SetDot1XConfiguration"`
Dot1XConfiguration onvif.Dot1XConfiguration `xml:"wsdl:Dot1XConfiguration"` Dot1XConfiguration onvif.Dot1XConfiguration `xml:"tds:Dot1XConfiguration"`
} }
@@ -1009,8 +1009,8 @@ type SetDot1XConfigurationResponse struct {
type GetDot1XConfiguration struct { type GetDot1XConfiguration struct {
XMLName string `xml:"wsdl:GetDot1XConfiguration"` XMLName string `xml:"tds:GetDot1XConfiguration"`
Dot1XConfigurationToken onvif.ReferenceToken `xml:"wsdl:Dot1XConfigurationToken"` Dot1XConfigurationToken onvif.ReferenceToken `xml:"tds:Dot1XConfigurationToken"`
} }
@@ -1022,7 +1022,7 @@ type GetDot1XConfigurationResponse struct {
type GetDot1XConfigurations struct { type GetDot1XConfigurations struct {
XMLName string `xml:"wsdl:GetDot1XConfigurations"` XMLName string `xml:"tds:GetDot1XConfigurations"`
} }
@@ -1034,8 +1034,8 @@ type GetDot1XConfigurationsResponse struct {
//TODO: Zero or more Dot1XConfigurationToken //TODO: Zero or more Dot1XConfigurationToken
type DeleteDot1XConfiguration struct { type DeleteDot1XConfiguration struct {
XMLName string `xml:"wsdl:DeleteDot1XConfiguration"` XMLName string `xml:"tds:DeleteDot1XConfiguration"`
Dot1XConfigurationToken onvif.ReferenceToken `xml:"wsdl:Dot1XConfigurationToken"` Dot1XConfigurationToken onvif.ReferenceToken `xml:"tds:Dot1XConfigurationToken"`
} }
@@ -1046,7 +1046,7 @@ type DeleteDot1XConfigurationResponse struct {
type GetDot11Capabilities struct { type GetDot11Capabilities struct {
XMLName string `xml:"wsdl:GetDot11Capabilities"` XMLName string `xml:"tds:GetDot11Capabilities"`
} }
@@ -1058,8 +1058,8 @@ type GetDot11CapabilitiesResponse struct {
type GetDot11Status struct { type GetDot11Status struct {
XMLName string `xml:"wsdl:GetDot11Status"` XMLName string `xml:"tds:GetDot11Status"`
InterfaceToken onvif.ReferenceToken `xml:"wsdl:InterfaceToken"` InterfaceToken onvif.ReferenceToken `xml:"tds:InterfaceToken"`
} }
@@ -1071,8 +1071,8 @@ type GetDot11StatusResponse struct {
type ScanAvailableDot11Networks struct { type ScanAvailableDot11Networks struct {
XMLName string `xml:"wsdl:ScanAvailableDot11Networks"` XMLName string `xml:"tds:ScanAvailableDot11Networks"`
InterfaceToken onvif.ReferenceToken `xml:"wsdl:InterfaceToken"` InterfaceToken onvif.ReferenceToken `xml:"tds:InterfaceToken"`
} }
@@ -1084,7 +1084,7 @@ type ScanAvailableDot11NetworksResponse struct {
type GetSystemUris struct { type GetSystemUris struct {
XMLName string `xml:"wsdl:GetSystemUris"` XMLName string `xml:"tds:GetSystemUris"`
} }
@@ -1098,7 +1098,7 @@ type GetSystemUrisResponse struct {
type StartFirmwareUpgrade struct { type StartFirmwareUpgrade struct {
XMLName string `xml:"wsdl:StartFirmwareUpgrade"` XMLName string `xml:"tds:StartFirmwareUpgrade"`
} }
@@ -1112,7 +1112,7 @@ type StartFirmwareUpgradeResponse struct {
type StartSystemRestore struct { type StartSystemRestore struct {
XMLName string `xml:"wsdl:StartSystemRestore"` XMLName string `xml:"tds:StartSystemRestore"`
} }
@@ -1125,7 +1125,7 @@ type StartSystemRestoreResponse struct {
type GetStorageConfigurations struct { type GetStorageConfigurations struct {
XMLName string `xml:"wsdl:GetStorageConfigurations"` XMLName string `xml:"tds:GetStorageConfigurations"`
} }
@@ -1137,7 +1137,7 @@ type GetStorageConfigurationsResponse struct {
type CreateStorageConfiguration struct { type CreateStorageConfiguration struct {
XMLName string `xml:"wsdl:CreateStorageConfiguration"` XMLName string `xml:"tds:CreateStorageConfiguration"`
StorageConfiguration StorageConfigurationData StorageConfiguration StorageConfigurationData
} }
@@ -1150,8 +1150,8 @@ type CreateStorageConfigurationResponse struct {
type GetStorageConfiguration struct { type GetStorageConfiguration struct {
XMLName string `xml:"wsdl:GetStorageConfiguration"` XMLName string `xml:"tds:GetStorageConfiguration"`
Token onvif.ReferenceToken `xml:"wsdl:Token"` Token onvif.ReferenceToken `xml:"tds:Token"`
} }
@@ -1163,8 +1163,8 @@ type GetStorageConfigurationResponse struct {
type SetStorageConfiguration struct { type SetStorageConfiguration struct {
XMLName string `xml:"wsdl:SetStorageConfiguration"` XMLName string `xml:"tds:SetStorageConfiguration"`
StorageConfiguration StorageConfiguration `xml:"wsdl:StorageConfiguration"` StorageConfiguration StorageConfiguration `xml:"tds:StorageConfiguration"`
} }
@@ -1175,8 +1175,8 @@ type SetStorageConfigurationResponse struct {
type DeleteStorageConfiguration struct { type DeleteStorageConfiguration struct {
XMLName string `xml:"wsdl:DeleteStorageConfiguration"` XMLName string `xml:"tds:DeleteStorageConfiguration"`
Token onvif.ReferenceToken `xml:"wsdl:Token"` Token onvif.ReferenceToken `xml:"tds:Token"`
} }
@@ -1187,7 +1187,7 @@ type DeleteStorageConfigurationResponse struct {
type GetGeoLocation struct { type GetGeoLocation struct {
XMLName string `xml:"wsdl:GetGeoLocation"` XMLName string `xml:"tds:GetGeoLocation"`
} }
@@ -1199,8 +1199,8 @@ type GetGeoLocationResponse struct {
//TODO: one or more Location //TODO: one or more Location
type SetGeoLocation struct { type SetGeoLocation struct {
XMLName string `xml:"wsdl:SetGeoLocation"` XMLName string `xml:"tds:SetGeoLocation"`
Location onvif.LocationEntity `xml:"wsdl:Location"` Location onvif.LocationEntity `xml:"tds:Location"`
} }
@@ -1211,8 +1211,8 @@ type SetGeoLocationResponse struct {
type DeleteGeoLocation struct { type DeleteGeoLocation struct {
XMLName string `xml:"wsdl:DeleteGeoLocation"` XMLName string `xml:"tds:DeleteGeoLocation"`
Location onvif.LocationEntity `xml:"wsdl:Location"` Location onvif.LocationEntity `xml:"tds:Location"`
} }

View File

@@ -4,9 +4,7 @@ import (
"github.com/yakovlevdmv/goonvif/xsd" "github.com/yakovlevdmv/goonvif/xsd"
) )
type FilterType struct { //wsnt http://docs.oasis-open.org/wsn/b-2.xsd type FilterType xsd.String
Any string
}
//<xsd:union memberTypes="xsd:dateTime xsd:duration"/> //<xsd:union memberTypes="xsd:dateTime xsd:duration"/>
type AbsoluteOrRelativeTimeType struct { //wsnt http://docs.oasis-open.org/wsn/b-2.xsd type AbsoluteOrRelativeTimeType struct { //wsnt http://docs.oasis-open.org/wsn/b-2.xsd
@@ -92,7 +90,7 @@ type TopicExpressionType struct { //wsnt http://docs.oasis-open.org/wsn/b-2.xsd
//Event main types //Event main types
type GetServiceCapabilities struct { type GetServiceCapabilities struct {
XMLName string `xml:"tev:GetServiceCapabilities"`
} }
@@ -101,11 +99,12 @@ type GetServiceCapabilitiesResponse struct {
} }
//BUG(r) Bad AbsoluteOrRelativeTimeType type
type CreatePullPointSubscription struct { type CreatePullPointSubscription struct {
Filter FilterType XMLName string `xml:"tev:CreatePullPointSubscription"`
InitialTerminationTime AbsoluteOrRelativeTimeType Filter FilterType `xml:"tev:Filter"`
SubscriptionPolicy SubscriptionPolicy InitialTerminationTime AbsoluteOrRelativeTimeType `xml:"tev:InitialTerminationTime"`
SubscriptionPolicy SubscriptionPolicy `xml:"tev:SubscriptionPolicy"`
} }
@@ -167,7 +166,7 @@ type SubscribeCreationFailedFault struct {
type GetEventProperties struct { type GetEventProperties struct {
XMLName string `xml:"tev:GetEventProperties"`
} }
@@ -185,8 +184,9 @@ type GetEventPropertiesResponse struct {
//Port type PullPointSubscription //Port type PullPointSubscription
type PullMessages struct { type PullMessages struct {
Timeout xsd.Duration XMLName string `xml:"tev:PullMessages"`
MessageLimit xsd.Int Timeout xsd.Duration `xml:"tev:Timeout"`
MessageLimit xsd.Int `xml:"tev:MessageLimit"`
} }
type PullMessagesResponse struct { type PullMessagesResponse struct {
@@ -201,8 +201,9 @@ type PullMessagesFaultResponse struct {
} }
type Seek struct { type Seek struct {
UtcTime xsd.DateTime XMLName string `xml:"tev:Seek"`
Reverse xsd.Boolean UtcTime xsd.DateTime `xml:"tev:UtcTime"`
Reverse xsd.Boolean `xml:"tev:Reverse"`
} }
type SeekResponse struct { type SeekResponse struct {
@@ -210,7 +211,7 @@ type SeekResponse struct {
} }
type SetSynchronizationPoint struct { type SetSynchronizationPoint struct {
XMLName string `xml:"tev:SetSynchronizationPoint"`
} }
type SetSynchronizationPointResponse struct { type SetSynchronizationPointResponse struct {

View File

@@ -6,79 +6,79 @@ import (
) )
type GetServiceCapabilities struct { type GetServiceCapabilities struct {
XMLName string `xml:"wsdl:GetServiceCapabilities"` XMLName string `xml:"timg:GetServiceCapabilities"`
} }
type GetImagingSettings struct { type GetImagingSettings struct {
XMLName string `xml:"wsdl:GetImagingSettings"` XMLName string `xml:"timg:GetImagingSettings"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
} }
type SetImagingSettings struct { type SetImagingSettings struct {
XMLName string `xml:"wsdl:SetImagingSettings"` XMLName string `xml:"timg:SetImagingSettings"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
ImagingSettings onvif.ImagingSettings20 `xml:"wsdl:ImagingSettings"` ImagingSettings onvif.ImagingSettings20 `xml:"timg:ImagingSettings"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"timg:ForcePersistence"`
} }
type GetOptions struct { type GetOptions struct {
XMLName string `xml:"wsdl:GetOptions"` XMLName string `xml:"timg:GetOptions"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
} }
type Move struct { type Move struct {
XMLName string `xml:"wsdl:Move"` XMLName string `xml:"timg:Move"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
Focus onvif.FocusMove `xml:"wsdl:Focus"` Focus onvif.FocusMove `xml:"timg:Focus"`
} }
type GetMoveOptions struct { type GetMoveOptions struct {
XMLName string `xml:"wsdl:GetMoveOptions"` XMLName string `xml:"timg:GetMoveOptions"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
} }
type Stop struct { type Stop struct {
XMLName string `xml:"wsdl:Stop"` XMLName string `xml:"timg:Stop"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
} }
type GetStatus struct { type GetStatus struct {
XMLName string `xml:"wsdl:GetStatus"` XMLName string `xml:"timg:GetStatus"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
} }
type GetPresets struct { type GetPresets struct {
XMLName string `xml:"wsdl:GetPresets"` XMLName string `xml:"timg:GetPresets"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
} }
type GetCurrentPreset struct { type GetCurrentPreset struct {
XMLName string `xml:"wsdl:GetCurrentPreset"` XMLName string `xml:"timg:GetCurrentPreset"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
} }
type SetCurrentPreset struct { type SetCurrentPreset struct {
XMLName string `xml:"wsdl:SetCurrentPreset"` XMLName string `xml:"timg:SetCurrentPreset"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"timg:VideoSourceToken"`
PresetToken onvif.ReferenceToken `xml:"wsdl:PresetToken"` PresetToken onvif.ReferenceToken `xml:"timg:PresetToken"`
} }

View File

@@ -31,7 +31,7 @@ type StreamingCapabilities struct {
//Media main types //Media main types
type GetServiceCapabilities struct { type GetServiceCapabilities struct {
XMLName string `xml:"wsdl:GetServiceCapabilities"` XMLName string `xml:"trt:GetServiceCapabilities"`
} }
@@ -42,7 +42,7 @@ type GetServiceCapabilitiesResponse struct {
type GetVideoSources struct { type GetVideoSources struct {
XMLName string `xml:"wsdl:GetVideoSources"` XMLName string `xml:"trt:GetVideoSources"`
} }
@@ -53,7 +53,7 @@ type GetVideoSourcesResponse struct {
type GetAudioSources struct { type GetAudioSources struct {
XMLName string `xml:"wsdl:GetAudioSources"` XMLName string `xml:"trt:GetAudioSources"`
} }
@@ -65,7 +65,7 @@ type GetAudioSourcesResponse struct {
type GetAudioOutputs struct { type GetAudioOutputs struct {
XMLName string `xml:"wsdl:GetAudioOutputs"` XMLName string `xml:"trt:GetAudioOutputs"`
} }
@@ -76,9 +76,9 @@ type GetAudioOutputsResponse struct {
type CreateProfile struct { type CreateProfile struct {
XMLName string `xml:"wsdl:CreateProfile"` XMLName string `xml:"trt:CreateProfile"`
Name onvif.Name `xml:"wsdl:Name"` Name onvif.Name `xml:"trt:Name"`
Token onvif.ReferenceToken `xml:"wsdl:Token"` Token onvif.ReferenceToken `xml:"trt:Token"`
} }
@@ -90,8 +90,8 @@ type CreateProfileResponse struct {
type GetProfile struct { type GetProfile struct {
XMLName string `xml:"wsdl:GetProfile"` XMLName string `xml:"trt:GetProfile"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -103,7 +103,7 @@ type GetProfileResponse struct {
type GetProfiles struct { type GetProfiles struct {
XMLName string `xml:"wsdl:GetProfiles"` XMLName string `xml:"trt:GetProfiles"`
} }
@@ -114,9 +114,9 @@ type GetProfilesResponse struct {
type AddVideoEncoderConfiguration struct { type AddVideoEncoderConfiguration struct {
XMLName string `xml:"wsdl:AddVideoEncoderConfiguration"` XMLName string `xml:"trt:AddVideoEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -126,8 +126,8 @@ type AddVideoEncoderConfigurationResponse struct {
type RemoveVideoEncoderConfiguration struct { type RemoveVideoEncoderConfiguration struct {
XMLName string `xml:"wsdl:RemoveVideoEncoderConfiguration"` XMLName string `xml:"trt:RemoveVideoEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -137,9 +137,9 @@ type RemoveVideoEncoderConfigurationResponse struct {
type AddVideoSourceConfiguration struct { type AddVideoSourceConfiguration struct {
XMLName string `xml:"wsdl:AddVideoSourceConfiguration"` XMLName string `xml:"trt:AddVideoSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -150,8 +150,8 @@ type AddVideoSourceConfigurationResponse struct {
type RemoveVideoSourceConfiguration struct { type RemoveVideoSourceConfiguration struct {
XMLName string `xml:"wsdl:RemoveVideoSourceConfiguration"` XMLName string `xml:"trt:RemoveVideoSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -161,9 +161,9 @@ type RemoveVideoSourceConfigurationResponse struct {
type AddAudioEncoderConfiguration struct { type AddAudioEncoderConfiguration struct {
XMLName string `xml:"wsdl:AddAudioEncoderConfiguration"` XMLName string `xml:"trt:AddAudioEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -174,8 +174,8 @@ type AddAudioEncoderConfigurationResponse struct {
type RemoveAudioEncoderConfiguration struct { type RemoveAudioEncoderConfiguration struct {
XMLName string `xml:"wsdl:RemoveAudioEncoderConfiguration"` XMLName string `xml:"trt:RemoveAudioEncoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -185,9 +185,9 @@ type RemoveAudioEncoderConfigurationResponse struct {
type AddAudioSourceConfiguration struct { type AddAudioSourceConfiguration struct {
XMLName string `xml:"wsdl:AddAudioSourceConfiguration"` XMLName string `xml:"trt:AddAudioSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -198,8 +198,8 @@ type AddAudioSourceConfigurationResponse struct {
type RemoveAudioSourceConfiguration struct { type RemoveAudioSourceConfiguration struct {
XMLName string `xml:"wsdl:RemoveAudioSourceConfiguration"` XMLName string `xml:"trt:RemoveAudioSourceConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -209,9 +209,9 @@ type RemoveAudioSourceConfigurationResponse struct {
type AddPTZConfiguration struct { type AddPTZConfiguration struct {
XMLName string `xml:"wsdl:AddPTZConfiguration"` XMLName string `xml:"trt:AddPTZConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -221,8 +221,8 @@ type AddPTZConfigurationResponse struct {
type RemovePTZConfiguration struct { type RemovePTZConfiguration struct {
XMLName string `xml:"wsdl:RemovePTZConfiguration"` XMLName string `xml:"trt:RemovePTZConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -232,9 +232,9 @@ type RemovePTZConfigurationResponse struct {
type AddVideoAnalyticsConfiguration struct { type AddVideoAnalyticsConfiguration struct {
XMLName string `xml:"wsdl:AddVideoAnalyticsConfiguration"` XMLName string `xml:"trt:AddVideoAnalyticsConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -245,8 +245,8 @@ type AddVideoAnalyticsConfigurationResponse struct {
type RemoveVideoAnalyticsConfiguration struct { type RemoveVideoAnalyticsConfiguration struct {
XMLName string `xml:"wsdl:RemoveVideoAnalyticsConfiguration"` XMLName string `xml:"trt:RemoveVideoAnalyticsConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -256,9 +256,9 @@ type RemoveVideoAnalyticsConfigurationResponse struct {
type AddMetadataConfiguration struct { type AddMetadataConfiguration struct {
XMLName string `xml:"wsdl:AddMetadataConfiguration"` XMLName string `xml:"trt:AddMetadataConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -268,8 +268,8 @@ type AddMetadataConfigurationResponse struct {
type RemoveMetadataConfiguration struct { type RemoveMetadataConfiguration struct {
XMLName string `xml:"wsdl:RemoveMetadataConfiguration"` XMLName string `xml:"trt:RemoveMetadataConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -279,9 +279,9 @@ type RemoveMetadataConfigurationResponse struct {
type AddAudioOutputConfiguration struct { type AddAudioOutputConfiguration struct {
XMLName string `xml:"wsdl:AddAudioOutputConfiguration"` XMLName string `xml:"trt:AddAudioOutputConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -292,8 +292,8 @@ type AddAudioOutputConfigurationResponse struct {
type RemoveAudioOutputConfiguration struct { type RemoveAudioOutputConfiguration struct {
XMLName string `xml:"wsdl:RemoveAudioOutputConfiguration"` XMLName string `xml:"trt:RemoveAudioOutputConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -303,9 +303,9 @@ type RemoveAudioOutputConfigurationResponse struct {
type AddAudioDecoderConfiguration struct { type AddAudioDecoderConfiguration struct {
XMLName string `xml:"wsdl:AddAudioDecoderConfiguration"` XMLName string `xml:"trt:AddAudioDecoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -316,8 +316,8 @@ type AddAudioDecoderConfigurationResponse struct {
type RemoveAudioDecoderConfiguration struct { type RemoveAudioDecoderConfiguration struct {
XMLName string `xml:"wsdl:RemoveAudioDecoderConfiguration"` XMLName string `xml:"trt:RemoveAudioDecoderConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -327,8 +327,8 @@ type RemoveAudioDecoderConfigurationResponse struct {
type DeleteProfile struct { type DeleteProfile struct {
XMLName string `xml:"wsdl:DeleteProfile"` XMLName string `xml:"trt:DeleteProfile"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -339,7 +339,7 @@ type DeleteProfileResponse struct {
type GetVideoSourceConfigurations struct { type GetVideoSourceConfigurations struct {
XMLName string `xml:"wsdl:GetVideoSourceConfigurations"` XMLName string `xml:"trt:GetVideoSourceConfigurations"`
} }
@@ -350,7 +350,7 @@ type GetVideoSourceConfigurationsResponse struct {
type GetVideoEncoderConfigurations struct { type GetVideoEncoderConfigurations struct {
XMLName string `xml:"wsdl:GetVideoEncoderConfigurations"` XMLName string `xml:"trt:GetVideoEncoderConfigurations"`
} }
@@ -361,7 +361,7 @@ type GetVideoEncoderConfigurationsResponse struct {
type GetAudioSourceConfigurations struct { type GetAudioSourceConfigurations struct {
XMLName string `xml:"wsdl:GetAudioSourceConfigurations"` XMLName string `xml:"trt:GetAudioSourceConfigurations"`
} }
@@ -372,7 +372,7 @@ type GetAudioSourceConfigurationsResponse struct {
type GetAudioEncoderConfigurations struct { type GetAudioEncoderConfigurations struct {
XMLName string `xml:"wsdl:GetAudioEncoderConfigurations"` XMLName string `xml:"trt:GetAudioEncoderConfigurations"`
} }
@@ -384,7 +384,7 @@ type GetAudioEncoderConfigurationsResponse struct {
type GetVideoAnalyticsConfigurations struct { type GetVideoAnalyticsConfigurations struct {
XMLName string `xml:"wsdl:GetVideoAnalyticsConfigurations"` XMLName string `xml:"trt:GetVideoAnalyticsConfigurations"`
} }
@@ -395,7 +395,7 @@ type GetVideoAnalyticsConfigurationsResponse struct {
type GetMetadataConfigurations struct { type GetMetadataConfigurations struct {
XMLName string `xml:"wsdl:GetMetadataConfigurations"` XMLName string `xml:"trt:GetMetadataConfigurations"`
} }
@@ -406,7 +406,7 @@ type GetMetadataConfigurationsResponse struct {
type GetAudioOutputConfigurations struct { type GetAudioOutputConfigurations struct {
XMLName string `xml:"wsdl:GetAudioOutputConfigurations"` XMLName string `xml:"trt:GetAudioOutputConfigurations"`
} }
@@ -417,7 +417,7 @@ type GetAudioOutputConfigurationsResponse struct {
type GetAudioDecoderConfigurations struct { type GetAudioDecoderConfigurations struct {
XMLName string `xml:"wsdl:GetAudioDecoderConfigurations"` XMLName string `xml:"trt:GetAudioDecoderConfigurations"`
} }
@@ -428,8 +428,8 @@ type GetAudioDecoderConfigurationsResponse struct {
type GetVideoSourceConfiguration struct { type GetVideoSourceConfiguration struct {
XMLName string `xml:"wsdl:GetVideoSourceConfiguration"` XMLName string `xml:"trt:GetVideoSourceConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -440,8 +440,8 @@ type GetVideoSourceConfigurationResponse struct {
type GetVideoEncoderConfiguration struct { type GetVideoEncoderConfiguration struct {
XMLName string `xml:"wsdl:GetVideoEncoderConfiguration"` XMLName string `xml:"trt:GetVideoEncoderConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -453,8 +453,8 @@ type GetVideoEncoderConfigurationResponse struct {
type GetAudioSourceConfiguration struct { type GetAudioSourceConfiguration struct {
XMLName string `xml:"wsdl:GetAudioSourceConfiguration"` XMLName string `xml:"trt:GetAudioSourceConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -466,8 +466,8 @@ type GetAudioSourceConfigurationResponse struct {
type GetAudioEncoderConfiguration struct { type GetAudioEncoderConfiguration struct {
XMLName string `xml:"wsdl:GetAudioEncoderConfiguration"` XMLName string `xml:"trt:GetAudioEncoderConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -479,8 +479,8 @@ type GetAudioEncoderConfigurationResponse struct {
type GetVideoAnalyticsConfiguration struct { type GetVideoAnalyticsConfiguration struct {
XMLName string `xml:"wsdl:GetVideoAnalyticsConfiguration"` XMLName string `xml:"trt:GetVideoAnalyticsConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -492,8 +492,8 @@ type GetVideoAnalyticsConfigurationResponse struct {
type GetMetadataConfiguration struct { type GetMetadataConfiguration struct {
XMLName string `xml:"wsdl:GetMetadataConfiguration"` XMLName string `xml:"trt:GetMetadataConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -505,8 +505,8 @@ type GetMetadataConfigurationResponse struct {
type GetAudioOutputConfiguration struct { type GetAudioOutputConfiguration struct {
XMLName string `xml:"wsdl:GetAudioOutputConfiguration"` XMLName string `xml:"trt:GetAudioOutputConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -518,8 +518,8 @@ type GetAudioOutputConfigurationResponse struct {
type GetAudioDecoderConfiguration struct { type GetAudioDecoderConfiguration struct {
XMLName string `xml:"wsdl:GetAudioDecoderConfiguration"` XMLName string `xml:"trt:GetAudioDecoderConfiguration"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -531,8 +531,8 @@ type GetAudioDecoderConfigurationResponse struct {
type GetCompatibleVideoEncoderConfigurations struct { type GetCompatibleVideoEncoderConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleVideoEncoderConfigurations"` XMLName string `xml:"trt:GetCompatibleVideoEncoderConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -543,8 +543,8 @@ type GetCompatibleVideoEncoderConfigurationsResponse struct {
type GetCompatibleVideoSourceConfigurations struct { type GetCompatibleVideoSourceConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleVideoSourceConfigurations"` XMLName string `xml:"trt:GetCompatibleVideoSourceConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -555,8 +555,8 @@ type GetCompatibleVideoSourceConfigurationsResponse struct {
type GetCompatibleAudioEncoderConfigurations struct { type GetCompatibleAudioEncoderConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleAudioEncoderConfigurations"` XMLName string `xml:"trt:GetCompatibleAudioEncoderConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -568,8 +568,8 @@ type GetCompatibleAudioEncoderConfigurationsResponse struct {
type GetCompatibleAudioSourceConfigurations struct { type GetCompatibleAudioSourceConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleAudioSourceConfigurations"` XMLName string `xml:"trt:GetCompatibleAudioSourceConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -581,8 +581,8 @@ type GetCompatibleAudioSourceConfigurationsResponse struct {
type GetCompatibleVideoAnalyticsConfigurations struct { type GetCompatibleVideoAnalyticsConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleVideoAnalyticsConfigurations"` XMLName string `xml:"trt:GetCompatibleVideoAnalyticsConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -594,8 +594,8 @@ type GetCompatibleVideoAnalyticsConfigurationsResponse struct {
type GetCompatibleMetadataConfigurations struct { type GetCompatibleMetadataConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleMetadataConfigurations"` XMLName string `xml:"trt:GetCompatibleMetadataConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -607,8 +607,8 @@ type GetCompatibleMetadataConfigurationsResponse struct {
type GetCompatibleAudioOutputConfigurations struct { type GetCompatibleAudioOutputConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleAudioOutputConfigurations"` XMLName string `xml:"trt:GetCompatibleAudioOutputConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -620,8 +620,8 @@ type GetCompatibleAudioOutputConfigurationsResponse struct {
type GetCompatibleAudioDecoderConfigurations struct { type GetCompatibleAudioDecoderConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleAudioDecoderConfigurations"` XMLName string `xml:"trt:GetCompatibleAudioDecoderConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -633,9 +633,9 @@ type GetCompatibleAudioDecoderConfigurationsResponse struct {
type SetVideoSourceConfiguration struct { type SetVideoSourceConfiguration struct {
XMLName string `xml:"wsdl:SetVideoSourceConfiguration"` XMLName string `xml:"trt:SetVideoSourceConfiguration"`
Configuration onvif.VideoSourceConfiguration `xml:"wsdl:Configuration"` Configuration onvif.VideoSourceConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
} }
@@ -646,9 +646,9 @@ type SetVideoSourceConfigurationResponse struct {
type SetVideoEncoderConfiguration struct { type SetVideoEncoderConfiguration struct {
XMLName string `xml:"wsdl:SetVideoEncoderConfiguration"` XMLName string `xml:"trt:SetVideoEncoderConfiguration"`
Configuration onvif.VideoEncoderConfiguration `xml:"wsdl:Configuration"` Configuration onvif.VideoEncoderConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
} }
@@ -659,9 +659,9 @@ type SetVideoEncoderConfigurationResponse struct {
type SetAudioSourceConfiguration struct { type SetAudioSourceConfiguration struct {
XMLName string `xml:"wsdl:SetAudioSourceConfiguration"` XMLName string `xml:"trt:SetAudioSourceConfiguration"`
Configuration onvif.AudioSourceConfiguration `xml:"wsdl:Configuration"` Configuration onvif.AudioSourceConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
} }
@@ -672,9 +672,9 @@ type SetAudioSourceConfigurationResponse struct {
type SetAudioEncoderConfiguration struct { type SetAudioEncoderConfiguration struct {
XMLName string `xml:"wsdl:SetAudioEncoderConfiguration"` XMLName string `xml:"trt:SetAudioEncoderConfiguration"`
Configuration onvif.AudioEncoderConfiguration `xml:"wsdl:Configuration"` Configuration onvif.AudioEncoderConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
} }
@@ -685,9 +685,9 @@ type SetAudioEncoderConfigurationResponse struct {
type SetVideoAnalyticsConfiguration struct { type SetVideoAnalyticsConfiguration struct {
XMLName string `xml:"wsdl:SetVideoAnalyticsConfiguration"` XMLName string `xml:"trt:SetVideoAnalyticsConfiguration"`
Configuration onvif.VideoAnalyticsConfiguration `xml:"wsdl:Configuration"` Configuration onvif.VideoAnalyticsConfiguration `xml:"trt:Configuration"`
ForcePersistence bool `xml:"wsdl:ForcePersistence"` ForcePersistence bool `xml:"trt:ForcePersistence"`
} }
@@ -698,9 +698,9 @@ type SetVideoAnalyticsConfigurationResponse struct {
type SetMetadataConfiguration struct { type SetMetadataConfiguration struct {
XMLName string `xml:"wsdl:GetDeviceInformation"` XMLName string `xml:"trt:GetDeviceInformation"`
Configuration onvif.MetadataConfiguration `xml:"wsdl:Configuration"` Configuration onvif.MetadataConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
} }
@@ -711,9 +711,9 @@ type SetMetadataConfigurationResponse struct {
type SetAudioOutputConfiguration struct { type SetAudioOutputConfiguration struct {
XMLName string `xml:"wsdl:SetAudioOutputConfiguration"` XMLName string `xml:"trt:SetAudioOutputConfiguration"`
Configuration onvif.AudioOutputConfiguration `xml:"wsdl:Configuration"` Configuration onvif.AudioOutputConfiguration `xml:"trt:Configuration"`
ForcePersistence bool `xml:"wsdl:ForcePersistence"` ForcePersistence bool `xml:"trt:ForcePersistence"`
} }
@@ -724,9 +724,9 @@ type SetAudioOutputConfigurationResponse struct {
type SetAudioDecoderConfiguration struct { type SetAudioDecoderConfiguration struct {
XMLName string `xml:"wsdl:SetAudioDecoderConfiguration"` XMLName string `xml:"trt:SetAudioDecoderConfiguration"`
Configuration onvif.AudioDecoderConfiguration `xml:"wsdl:Configuration"` Configuration onvif.AudioDecoderConfiguration `xml:"trt:Configuration"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"trt:ForcePersistence"`
} }
@@ -737,9 +737,9 @@ type SetAudioDecoderConfigurationResponse struct {
type GetVideoSourceConfigurationOptions struct { type GetVideoSourceConfigurationOptions struct {
XMLName string `xml:"wsdl:GetVideoSourceConfigurationOptions"` XMLName string `xml:"trt:GetVideoSourceConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -751,9 +751,9 @@ type GetVideoSourceConfigurationOptionsResponse struct {
type GetVideoEncoderConfigurationOptions struct { type GetVideoEncoderConfigurationOptions struct {
XMLName string `xml:"wsdl:GetVideoEncoderConfigurationOptions"` XMLName string `xml:"trt:GetVideoEncoderConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -765,9 +765,9 @@ type GetVideoEncoderConfigurationOptionsResponse struct {
type GetAudioSourceConfigurationOptions struct { type GetAudioSourceConfigurationOptions struct {
XMLName string `xml:"wsdl:GetAudioSourceConfigurationOptions"` XMLName string `xml:"trt:GetAudioSourceConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -779,9 +779,9 @@ type GetAudioSourceConfigurationOptionsResponse struct {
type GetAudioEncoderConfigurationOptions struct { type GetAudioEncoderConfigurationOptions struct {
XMLName string `xml:"wsdl:GetAudioEncoderConfigurationOptions"` XMLName string `xml:"trt:GetAudioEncoderConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -792,9 +792,9 @@ type GetAudioEncoderConfigurationOptionsResponse struct {
type GetMetadataConfigurationOptions struct { type GetMetadataConfigurationOptions struct {
XMLName string `xml:"wsdl:GetMetadataConfigurationOptions"` XMLName string `xml:"trt:GetMetadataConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -806,9 +806,9 @@ type GetMetadataConfigurationOptionsResponse struct {
type GetAudioOutputConfigurationOptions struct { type GetAudioOutputConfigurationOptions struct {
XMLName string `xml:"wsdl:GetAudioOutputConfigurationOptions"` XMLName string `xml:"trt:GetAudioOutputConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -820,9 +820,9 @@ type GetAudioOutputConfigurationOptionsResponse struct {
type GetAudioDecoderConfigurationOptions struct { type GetAudioDecoderConfigurationOptions struct {
XMLName string `xml:"wsdl:GetAudioDecoderConfigurationOptions"` XMLName string `xml:"trt:GetAudioDecoderConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -834,8 +834,8 @@ type GetAudioDecoderConfigurationOptionsResponse struct {
type GetGuaranteedNumberOfVideoEncoderInstances struct { type GetGuaranteedNumberOfVideoEncoderInstances struct {
XMLName string `xml:"wsdl:GetGuaranteedNumberOfVideoEncoderInstances"` XMLName string `xml:"trt:GetGuaranteedNumberOfVideoEncoderInstances"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -850,9 +850,9 @@ type GetGuaranteedNumberOfVideoEncoderInstancesResponse struct {
type GetStreamUri struct { type GetStreamUri struct {
XMLName string `xml:"wsdl:GetStreamUri"` XMLName string `xml:"trt:GetStreamUri"`
StreamSetup onvif.StreamSetup `xml:"wsdl:StreamSetup"` StreamSetup onvif.StreamSetup `xml:"trt:StreamSetup"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -864,8 +864,8 @@ type GetStreamUriResponse struct {
type StartMulticastStreaming struct { type StartMulticastStreaming struct {
XMLName string `xml:"wsdl:StartMulticastStreaming"` XMLName string `xml:"trt:StartMulticastStreaming"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -875,8 +875,8 @@ type StartMulticastStreamingResponse struct {
type StopMulticastStreaming struct { type StopMulticastStreaming struct {
XMLName string `xml:"wsdl:StopMulticastStreaming"` XMLName string `xml:"trt:StopMulticastStreaming"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -886,8 +886,8 @@ type StopMulticastStreamingResponse struct {
type SetSynchronizationPoint struct { type SetSynchronizationPoint struct {
XMLName string `xml:"wsdl:SetSynchronizationPoint"` XMLName string `xml:"trt:SetSynchronizationPoint"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -897,8 +897,8 @@ type SetSynchronizationPointResponse struct {
type GetSnapshotUri struct { type GetSnapshotUri struct {
XMLName string `xml:"wsdl:GetSnapshotUri"` XMLName string `xml:"trt:GetSnapshotUri"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"trt:ProfileToken"`
} }
@@ -910,8 +910,8 @@ type GetSnapshotUriResponse struct {
type GetVideoSourceModes struct { type GetVideoSourceModes struct {
XMLName string `xml:"wsdl:GetVideoSourceModes"` XMLName string `xml:"trt:GetVideoSourceModes"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"trt:VideoSourceToken"`
} }
@@ -923,9 +923,9 @@ type GetVideoSourceModesResponse struct {
type SetVideoSourceMode struct { type SetVideoSourceMode struct {
XMLName string `xml:"wsdl:SetVideoSourceMode"` XMLName string `xml:"trt:SetVideoSourceMode"`
VideoSourceToken onvif.ReferenceToken `xml:"wsdl:VideoSourceToken"` VideoSourceToken onvif.ReferenceToken `xml:"trt:VideoSourceToken"`
VideoSourceModeToken onvif.ReferenceToken `xml:"wsdl:VideoSourceModeToken"` VideoSourceModeToken onvif.ReferenceToken `xml:"trt:VideoSourceModeToken"`
} }
@@ -937,8 +937,8 @@ type SetVideoSourceModeResponse struct {
type GetOSDs struct { type GetOSDs struct {
XMLName string `xml:"wsdl:GetOSDs"` XMLName string `xml:"trt:GetOSDs"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -950,8 +950,8 @@ type GetOSDsResponse struct {
type GetOSD struct { type GetOSD struct {
XMLName string `xml:"wsdl:GetOSD"` XMLName string `xml:"trt:GetOSD"`
OSDToken onvif.ReferenceToken `xml:"wsdl:OSDToken"` OSDToken onvif.ReferenceToken `xml:"trt:OSDToken"`
} }
@@ -963,8 +963,8 @@ type GetOSDResponse struct {
type GetOSDOptions struct { type GetOSDOptions struct {
XMLName string `xml:"wsdl:GetOSDOptions"` XMLName string `xml:"trt:GetOSDOptions"`
ConfigurationToken onvif.ReferenceToken `xml:"wsdl:ConfigurationToken"` ConfigurationToken onvif.ReferenceToken `xml:"trt:ConfigurationToken"`
} }
@@ -976,8 +976,8 @@ type GetOSDOptionsResponse struct {
type SetOSD struct { type SetOSD struct {
XMLName string `xml:"wsdl:SetOSD"` XMLName string `xml:"trt:SetOSD"`
OSD onvif.OSDConfiguration `xml:"wsdl:OSD"` OSD onvif.OSDConfiguration `xml:"trt:OSD"`
} }
@@ -988,8 +988,8 @@ type SetOSDResponse struct {
type CreateOSD struct { type CreateOSD struct {
XMLName string `xml:"wsdl:CreateOSD"` XMLName string `xml:"trt:CreateOSD"`
OSD onvif.OSDConfiguration `xml:"wsdl:OSD"` OSD onvif.OSDConfiguration `xml:"trt:OSD"`
} }
@@ -1001,8 +1001,8 @@ type CreateOSDResponse struct {
type DeleteOSD struct { type DeleteOSD struct {
XMLName string `xml:"wsdl:DeleteOSD"` XMLName string `xml:"trt:DeleteOSD"`
OSDToken onvif.ReferenceToken `xml:"wsdl:OSDToken"` OSDToken onvif.ReferenceToken `xml:"trt:OSDToken"`
} }

View File

@@ -14,7 +14,7 @@ type Capabilities struct {
//PTZ main types //PTZ main types
type GetServiceCapabilities struct { type GetServiceCapabilities struct {
XMLName string `xml:"wsdl:GetServiceCapabilities"` XMLName string `xml:"tptz:GetServiceCapabilities"`
} }
@@ -25,7 +25,7 @@ type GetServiceCapabilitiesResponse struct {
type GetNodes struct { type GetNodes struct {
XMLName string `xml:"wsdl:GetNodes"` XMLName string `xml:"tptz:GetNodes"`
} }
@@ -36,8 +36,8 @@ type GetNodesResponse struct {
type GetNode struct { type GetNode struct {
XMLName string `xml:"wsdl:GetNode"` XMLName string `xml:"tptz:GetNode"`
NodeToken onvif.ReferenceToken `xml:"wsdl:NodeToken"` NodeToken onvif.ReferenceToken `xml:"tptz:NodeToken"`
} }
@@ -49,8 +49,8 @@ type GetNodeResponse struct {
type GetConfiguration struct { type GetConfiguration struct {
XMLName string `xml:"wsdl:GetConfiguration"` XMLName string `xml:"tptz:GetConfiguration"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }
@@ -61,7 +61,7 @@ type GetConfigurationResponse struct {
type GetConfigurations struct { type GetConfigurations struct {
XMLName string `xml:"wsdl:GetConfigurations"` XMLName string `xml:"tptz:GetConfigurations"`
} }
@@ -72,9 +72,9 @@ type GetConfigurationsResponse struct {
type SetConfiguration struct { type SetConfiguration struct {
XMLName string `xml:"wsdl:SetConfiguration"` XMLName string `xml:"tptz:SetConfiguration"`
PTZConfiguration onvif.PTZConfiguration `xml:"wsdl:PTZConfiguration"` PTZConfiguration onvif.PTZConfiguration `xml:"tptz:PTZConfiguration"`
ForcePersistence xsd.Boolean `xml:"wsdl:ForcePersistence"` ForcePersistence xsd.Boolean `xml:"tptz:ForcePersistence"`
} }
@@ -85,8 +85,8 @@ type SetConfigurationResponse struct {
type GetConfigurationOptions struct { type GetConfigurationOptions struct {
XMLName string `xml:"wsdl:GetConfigurationOptions"` XMLName string `xml:"tptz:GetConfigurationOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }
@@ -98,9 +98,9 @@ type GetConfigurationOptionsResponse struct {
type SendAuxiliaryCommand struct { type SendAuxiliaryCommand struct {
XMLName string `xml:"wsdl:SendAuxiliaryCommand"` XMLName string `xml:"tptz:SendAuxiliaryCommand"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
AuxiliaryData onvif.AuxiliaryData `xml:"wsdl:AuxiliaryData"` AuxiliaryData onvif.AuxiliaryData `xml:"tptz:AuxiliaryData"`
} }
@@ -112,8 +112,8 @@ type SendAuxiliaryCommandResponse struct {
type GetPresets struct { type GetPresets struct {
XMLName string `xml:"wsdl:GetPresets"` XMLName string `xml:"tptz:GetPresets"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }
@@ -124,10 +124,10 @@ type GetPresetsResponse struct {
type SetPreset struct { type SetPreset struct {
XMLName string `xml:"wsdl:SetPreset"` XMLName string `xml:"tptz:SetPreset"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetName xsd.String `xml:"wsdl:PresetName"` PresetName xsd.String `xml:"tptz:PresetName"`
PresetToken onvif.ReferenceToken `xml:"wsdl:PresetToken"` PresetToken onvif.ReferenceToken `xml:"tptz:PresetToken"`
} }
@@ -138,9 +138,9 @@ type SetPresetResponse struct {
type RemovePreset struct { type RemovePreset struct {
XMLName string `xml:"wsdl:RemovePreset"` XMLName string `xml:"tptz:RemovePreset"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetToken onvif.ReferenceToken `xml:"wsdl:PresetToken"` PresetToken onvif.ReferenceToken `xml:"tptz:PresetToken"`
} }
@@ -151,10 +151,10 @@ type RemovePresetResponse struct {
type GotoPreset struct { type GotoPreset struct {
XMLName string `xml:"wsdl:GotoPreset"` XMLName string `xml:"tptz:GotoPreset"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetToken onvif.ReferenceToken `xml:"wsdl:PresetToken"` PresetToken onvif.ReferenceToken `xml:"tptz:PresetToken"`
Speed onvif.PTZSpeed `xml:"wsdl:Speed"` Speed onvif.PTZSpeed `xml:"tptz:Speed"`
} }
@@ -165,9 +165,9 @@ type GotoPresetResponse struct {
type GotoHomePosition struct { type GotoHomePosition struct {
XMLName string `xml:"wsdl:GotoHomePosition"` XMLName string `xml:"tptz:GotoHomePosition"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
Speed onvif.PTZSpeed `xml:"wsdl:Speed"` Speed onvif.PTZSpeed `xml:"tptz:Speed"`
} }
@@ -178,8 +178,8 @@ type GotoHomePositionResponse struct {
type SetHomePosition struct { type SetHomePosition struct {
XMLName string `xml:"wsdl:SetHomePosition"` XMLName string `xml:"tptz:SetHomePosition"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }
@@ -189,10 +189,10 @@ type SetHomePositionResponse struct {
type ContinuousMove struct { type ContinuousMove struct {
XMLName string `xml:"wsdl:ContinuousMove"` XMLName string `xml:"tptz:ContinuousMove"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
Velocity onvif.PTZSpeed `xml:"wsdl:Velocity"` Velocity onvif.PTZSpeed `xml:"tptz:Velocity"`
Timeout xsd.Duration `xml:"wsdl:Timeout"` Timeout xsd.Duration `xml:"tptz:Timeout"`
} }
@@ -203,10 +203,10 @@ type ContinuousMoveResponse struct {
type RelativeMove struct { type RelativeMove struct {
XMLName string `xml:"wsdl:RelativeMove"` XMLName string `xml:"tptz:RelativeMove"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
Translation onvif.PTZVector `xml:"wsdl:Translation"` Translation onvif.PTZVector `xml:"tptz:Translation"`
Speed onvif.PTZSpeed `xml:"wsdl:Speed"` Speed onvif.PTZSpeed `xml:"tptz:Speed"`
} }
@@ -217,8 +217,8 @@ type RelativeMoveResponse struct {
type GetStatus struct { type GetStatus struct {
XMLName string `xml:"wsdl:GetStatus"` XMLName string `xml:"tptz:GetStatus"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }
@@ -229,10 +229,10 @@ type GetStatusResponse struct {
type AbsoluteMove struct { type AbsoluteMove struct {
XMLName string `xml:"wsdl:AbsoluteMove"` XMLName string `xml:"tptz:AbsoluteMove"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
Position onvif.PTZVector `xml:"wsdl:Position"` Position onvif.PTZVector `xml:"tptz:Position"`
Speed onvif.PTZSpeed `xml:"wsdl:Speed"` Speed onvif.PTZSpeed `xml:"tptz:Speed"`
} }
@@ -243,12 +243,12 @@ type AbsoluteMoveResponse struct {
type GeoMove struct { type GeoMove struct {
XMLName string `xml:"wsdl:GeoMove"` XMLName string `xml:"tptz:GeoMove"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
Target onvif.GeoLocation `xml:"wsdl:Target"` Target onvif.GeoLocation `xml:"tptz:Target"`
Speed onvif.PTZSpeed `xml:"wsdl:Speed"` Speed onvif.PTZSpeed `xml:"tptz:Speed"`
AreaHeight xsd.Float `xml:"wsdl:AreaHeight"` AreaHeight xsd.Float `xml:"tptz:AreaHeight"`
AreaWidth xsd.Float `xml:"wsdl:AreaWidth"` AreaWidth xsd.Float `xml:"tptz:AreaWidth"`
} }
@@ -259,10 +259,10 @@ type GeoMoveResponse struct {
type Stop struct { type Stop struct {
XMLName string `xml:"wsdl:Stop"` XMLName string `xml:"tptz:Stop"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PanTilt xsd.Boolean `xml:"wsdl:PanTilt"` PanTilt xsd.Boolean `xml:"tptz:PanTilt"`
Zoom xsd.Boolean `xml:"wsdl:Zoom"` Zoom xsd.Boolean `xml:"tptz:Zoom"`
} }
@@ -273,8 +273,8 @@ type StopResponse struct {
type GetPresetTours struct { type GetPresetTours struct {
XMLName string `xml:"wsdl:GetPresetTours"` XMLName string `xml:"tptz:GetPresetTours"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }
@@ -285,9 +285,9 @@ type GetPresetToursResponse struct {
type GetPresetTour struct { type GetPresetTour struct {
XMLName string `xml:"wsdl:GetPresetTour"` XMLName string `xml:"tptz:GetPresetTour"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetTourToken onvif.ReferenceToken `xml:"wsdl:PresetTourToken"` PresetTourToken onvif.ReferenceToken `xml:"tptz:PresetTourToken"`
} }
@@ -299,9 +299,9 @@ type GetPresetTourResponse struct {
type GetPresetTourOptions struct { type GetPresetTourOptions struct {
XMLName string `xml:"wsdl:GetPresetTourOptions"` XMLName string `xml:"tptz:GetPresetTourOptions"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetTourToken onvif.ReferenceToken `xml:"wsdl:PresetTourToken"` PresetTourToken onvif.ReferenceToken `xml:"tptz:PresetTourToken"`
} }
@@ -313,8 +313,8 @@ type GetPresetTourOptionsResponse struct {
type CreatePresetTour struct { type CreatePresetTour struct {
XMLName string `xml:"wsdl:CreatePresetTour"` XMLName string `xml:"tptz:CreatePresetTour"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }
@@ -326,9 +326,9 @@ type CreatePresetTourResponse struct {
type ModifyPresetTour struct { type ModifyPresetTour struct {
XMLName string `xml:"wsdl:ModifyPresetTour"` XMLName string `xml:"tptz:ModifyPresetTour"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetTour onvif.PresetTour `xml:"wsdl:PresetTour"` PresetTour onvif.PresetTour `xml:"tptz:PresetTour"`
} }
@@ -339,8 +339,8 @@ type ModifyPresetTourResponse struct {
type OperatePresetTour struct { type OperatePresetTour struct {
XMLName string `xml:"wsdl:OperatePresetTour"` XMLName string `xml:"tptz:OperatePresetTour"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetTourToken onvif.ReferenceToken `xml:"onvif:PresetTourToken"` PresetTourToken onvif.ReferenceToken `xml:"onvif:PresetTourToken"`
Operation onvif.PTZPresetTourOperation `xml:"onvif:Operation"` Operation onvif.PTZPresetTourOperation `xml:"onvif:Operation"`
@@ -353,9 +353,9 @@ type OperatePresetTourResponse struct {
type RemovePresetTour struct { type RemovePresetTour struct {
XMLName string `xml:"wsdl:RemovePresetTour"` XMLName string `xml:"tptz:RemovePresetTour"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
PresetTourToken onvif.ReferenceToken `xml:"wsdl:PresetTourToken"` PresetTourToken onvif.ReferenceToken `xml:"tptz:PresetTourToken"`
} }
@@ -366,8 +366,8 @@ type RemovePresetTourResponse struct {
type GetCompatibleConfigurations struct { type GetCompatibleConfigurations struct {
XMLName string `xml:"wsdl:GetCompatibleConfigurations"` XMLName string `xml:"tptz:GetCompatibleConfigurations"`
ProfileToken onvif.ReferenceToken `xml:"wsdl:ProfileToken"` ProfileToken onvif.ReferenceToken `xml:"tptz:ProfileToken"`
} }

View File

@@ -4,17 +4,19 @@ import (
"net/http" "net/http"
"bytes" "bytes"
"io/ioutil" "io/ioutil"
"log"
) )
func SendSoap(endpoint, message string) string { func SendSoap(endpoint, message string) (string, error) {
httpClient := new(http.Client) httpClient := new(http.Client)
resp, _ := httpClient.Post(endpoint, "application/soap+xml; charset=utf-8", bytes.NewBufferString(message)) resp, err := httpClient.Post(endpoint, "application/soap+xml; charset=utf-8", bytes.NewBufferString(message))
if err != nil {
return "", err
}
b, err := ioutil.ReadAll(resp.Body)
if err != nil {
return "", err
}
b, _ := ioutil.ReadAll(resp.Body) return string(b),nil
log.Println(string(b))
return string(b)
} }