From d2cd2978d922a38695759330ee28bd2927bff144 Mon Sep 17 00:00:00 2001 From: John Beisley Date: Tue, 31 Dec 2013 16:56:20 +0000 Subject: [PATCH] Use data type (un)marshal in generated DCP code. --- cmd/specgen/pkgtmpl.go | 52 +- cmd/specgen/specgen.go | 66 + dcps/internetgateway1/internetgateway1.go | 4566 ++++++++------- dcps/internetgateway2/internetgateway2.go | 6311 +++++++++++---------- scpd/scpd.go | 40 - soap/types.go | 8 + 6 files changed, 5996 insertions(+), 5047 deletions(-) diff --git a/cmd/specgen/pkgtmpl.go b/cmd/specgen/pkgtmpl.go index 4d07159..d99e83b 100644 --- a/cmd/specgen/pkgtmpl.go +++ b/cmd/specgen/pkgtmpl.go @@ -6,7 +6,14 @@ import ( var packageTmpl = template.Must(template.New("package").Parse(`package {{.Name}} -import "github.com/huin/goupnp/soap" +import ( + "time" + + "github.com/huin/goupnp/soap" +) + +// Hack to avoid Go complaining if time isn't used. +var _ time.Time const ({{range .DeviceTypes}} {{.Const}} = "{{.URN}}" @@ -32,12 +39,12 @@ type {{$srvIdent}} struct { // {{$reqType}} is the XML structure for the input arguments for action {{.Name}}. type {{$reqType}} struct {{"{"}}{{range .Arguments}}{{if .IsInput}} - {{.Name}} {{$srv.SCPD.GoKindNameForVariable .RelatedStateVariable "string"}} + {{.Name}} string {{end}}{{end}}} // {{$respType}} is the XML structure for the output arguments for action {{.Name}}. type {{$respType}} struct {{"{"}}{{range .Arguments}}{{if .IsOutput}} - {{.Name}} {{$srv.SCPD.GoKindNameForVariable .RelatedStateVariable "string"}} + {{.Name}} string {{end}}{{end}}} // {{.Name}} action. @@ -63,26 +70,35 @@ type {{$respType}} struct {{"{"}}{{range .Arguments}}{{if .IsOutput}} // (unknown){{end}} //{{end}}{{end}} func (client *{{$srvIdent}}) {{.Name}}({{range .Arguments}}{{if .IsInput}} - {{.Name}} {{$srv.SCPD.GoKindNameForVariable .RelatedStateVariable "string"}}, -{{end}}{{end}}) ({{range .Arguments}}{{if .IsOutput}} - {{.Name}} {{$srv.SCPD.GoKindNameForVariable .RelatedStateVariable "string"}}, -{{end}}{{end}} err error) { - request := {{$reqType}}{ -{{range .Arguments}}{{if .IsInput}} - {{.Name}}: {{.Name}}, -{{end}}{{end}} - } - var response {{$respType}} - err = client.SOAPClient.PerformAction({{$srv.URNParts.Const}}, "{{.Name}}", &request, &response) - if err != nil { + {{$argWrap := $srv.Argument .}}{{$argWrap.AsParameter}},{{end}}{{end}} +) ({{range .Arguments}}{{if .IsOutput}} + {{$argWrap := $srv.Argument .}}{{$argWrap.AsParameter}},{{end}}{{end}} + err error, +) { + var request {{$reqType}} + // BEGIN Marshal arguments into request. +{{range .Arguments}}{{if .IsInput}}{{$argWrap := $srv.Argument .}} + if request.{{.Name}}, err = {{$argWrap.Marshal}}; err != nil { return } -{{range .Arguments}}{{if .IsOutput}} - {{.Name}} = response.{{.Name}} {{end}}{{end}} + // END Marshal arguments into request. + + // Perform the SOAP call. + var response {{$respType}} + if err = client.SOAPClient.PerformAction({{$srv.URNParts.Const}}, "{{.Name}}", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. +{{range .Arguments}}{{if .IsOutput}}{{$argWrap := $srv.Argument .}} + if {{.Name}}, err = {{$argWrap.Unmarshal "response"}}; err != nil { + return + } +{{end}}{{end}} + // END Unmarshal arguments from response. return } - {{end}}{{/* range .SCPD.Actions */}} {{end}}{{/* range .Services */}} `)) diff --git a/cmd/specgen/specgen.go b/cmd/specgen/specgen.go index 1ee795c..418e3e0 100644 --- a/cmd/specgen/specgen.go +++ b/cmd/specgen/specgen.go @@ -199,6 +199,72 @@ type SCPDWithURN struct { SCPD *scpd.SCPD } +func (s *SCPDWithURN) Argument(arg scpd.Argument) (*argumentWrapper, error) { + relVar := s.SCPD.GetStateVariable(arg.RelatedStateVariable) + if relVar == nil { + return nil, fmt.Errorf("no such state variable: %q, for argument %q", arg.RelatedStateVariable, arg.Name) + } + cnv, ok := typeConvs[relVar.DataType.Name] + if !ok { + return nil, fmt.Errorf("unknown data type: %q, for state variable %q, for argument %q", relVar.DataType.Type, arg.RelatedStateVariable, arg.Name) + } + return &argumentWrapper{ + Argument: arg, + relVar: relVar, + conv: cnv, + }, nil +} + +type argumentWrapper struct { + scpd.Argument + relVar *scpd.StateVariable + conv conv +} + +func (arg *argumentWrapper) AsParameter() string { + return fmt.Sprintf("%s %s", arg.Name, arg.conv.ExtType) +} + +func (arg *argumentWrapper) Marshal() string { + return fmt.Sprintf("soap.Marshal%s(%s)", arg.conv.FuncSuffix, arg.Name) +} + +func (arg *argumentWrapper) Unmarshal(objVar string) string { + return fmt.Sprintf("soap.Unmarshal%s(%s.%s)", arg.conv.FuncSuffix, objVar, arg.Name) +} + +type conv struct { + FuncSuffix string + ExtType string +} + +// typeConvs maps from a SOAP type (e.g "fixed.14.4") to the function name +// suffix inside the soap module (e.g "Fixed14_4") and the Go type. +var typeConvs = map[string]conv{ + "ui1": conv{"Ui1", "uint8"}, + "ui2": conv{"Ui2", "uint16"}, + "ui4": conv{"Ui4", "uint32"}, + "i1": conv{"I1", "int8"}, + "i2": conv{"I2", "int16"}, + "i4": conv{"I4", "int32"}, + "int": conv{"Int", "int64"}, + "r4": conv{"R4", "float32"}, + "r8": conv{"R8", "float64"}, + "number": conv{"R8", "float64"}, // Alias for r8. + "fixed.14.4": conv{"Fixed14_4", "float64"}, + "float": conv{"R8", "float64"}, + "char": conv{"Char", "rune"}, + "string": conv{"String", "string"}, + "date": conv{"Date", "time.Time"}, + "dateTime": conv{"DateTime", "time.Time"}, + "dateTime.tz": conv{"DateTimeTz", "time.Time"}, + "time": conv{"TimeOfDay", "soap.TimeOfDay"}, + "time.tz": conv{"TimeOfDayTz", "soap.TimeOfDay"}, + "boolean": conv{"Boolean", "bool"}, + "bin.base64": conv{"BinBase64", "[]byte"}, + "bin.hex": conv{"BinHex", "[]byte"}, +} + type closeableZipReader struct { io.Closer *zip.Reader diff --git a/dcps/internetgateway1/internetgateway1.go b/dcps/internetgateway1/internetgateway1.go index 7451184..845fbb3 100644 --- a/dcps/internetgateway1/internetgateway1.go +++ b/dcps/internetgateway1/internetgateway1.go @@ -1,6 +1,13 @@ package internetgateway1 -import "github.com/huin/goupnp/soap" +import ( + "time" + + "github.com/huin/goupnp/soap" +) + +// Hack to avoid Go complaining if time isn't used. +var _ time.Time const ( URN_LANDevice_1 = "urn:schemas-upnp-org:device:LANDevice:1" @@ -30,64 +37,59 @@ const ( URN_WANPPPConnection_1 = "urn:schemas-upnp-org:service:WANPPPConnection:1" ) - - - - // LANHostConfigManagement1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:LANHostConfigManagement:1". type LANHostConfigManagement1 struct { SOAPClient soap.SOAPClient } - - - - - // _LANHostConfigManagement1_SetDHCPServerConfigurable_Request is the XML structure for the input arguments for action SetDHCPServerConfigurable. type _LANHostConfigManagement1_SetDHCPServerConfigurable_Request struct { NewDHCPServerConfigurable string } // _LANHostConfigManagement1_SetDHCPServerConfigurable_Response is the XML structure for the output arguments for action SetDHCPServerConfigurable. -type _LANHostConfigManagement1_SetDHCPServerConfigurable_Response struct {} +type _LANHostConfigManagement1_SetDHCPServerConfigurable_Response struct{} // SetDHCPServerConfigurable action. // Arguments: // -// * NewDHCPServerConfigurable: +// * NewDHCPServerConfigurable: // (related state variable: DHCPServerConfigurable) -// - -// - +// - +// - // // // // Return values: // func (client *LANHostConfigManagement1) SetDHCPServerConfigurable( - NewDHCPServerConfigurable string, -) ( err error) { - request := _LANHostConfigManagement1_SetDHCPServerConfigurable_Request{ + NewDHCPServerConfigurable bool, +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDHCPServerConfigurable_Request + // BEGIN Marshal arguments into request. - NewDHCPServerConfigurable: NewDHCPServerConfigurable, - - } - var response _LANHostConfigManagement1_SetDHCPServerConfigurable_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPServerConfigurable", &request, &response) - if err != nil { + if request.NewDHCPServerConfigurable, err = soap.MarshalBoolean(NewDHCPServerConfigurable); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDHCPServerConfigurable_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPServerConfigurable", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDHCPServerConfigurable_Request is the XML structure for the input arguments for action GetDHCPServerConfigurable. -type _LANHostConfigManagement1_GetDHCPServerConfigurable_Request struct {} +type _LANHostConfigManagement1_GetDHCPServerConfigurable_Request struct{} // _LANHostConfigManagement1_GetDHCPServerConfigurable_Response is the XML structure for the output arguments for action GetDHCPServerConfigurable. type _LANHostConfigManagement1_GetDHCPServerConfigurable_Response struct { @@ -100,78 +102,85 @@ type _LANHostConfigManagement1_GetDHCPServerConfigurable_Response struct { // // Return values: // -// * NewDHCPServerConfigurable: +// * NewDHCPServerConfigurable: // (related state variable: DHCPServerConfigurable) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDHCPServerConfigurable() ( - NewDHCPServerConfigurable string, - err error) { - request := _LANHostConfigManagement1_GetDHCPServerConfigurable_Request{ + NewDHCPServerConfigurable bool, + err error, +) { + var request _LANHostConfigManagement1_GetDHCPServerConfigurable_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDHCPServerConfigurable_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPServerConfigurable", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPServerConfigurable", &request, &response); err != nil { return } - NewDHCPServerConfigurable = response.NewDHCPServerConfigurable + // BEGIN Unmarshal arguments from response. + if NewDHCPServerConfigurable, err = soap.UnmarshalBoolean(response.NewDHCPServerConfigurable); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetDHCPRelay_Request is the XML structure for the input arguments for action SetDHCPRelay. type _LANHostConfigManagement1_SetDHCPRelay_Request struct { NewDHCPRelay string } // _LANHostConfigManagement1_SetDHCPRelay_Response is the XML structure for the output arguments for action SetDHCPRelay. -type _LANHostConfigManagement1_SetDHCPRelay_Response struct {} +type _LANHostConfigManagement1_SetDHCPRelay_Response struct{} // SetDHCPRelay action. // Arguments: // -// * NewDHCPRelay: +// * NewDHCPRelay: // (related state variable: DHCPRelay) -// - -// - +// - +// - // // // // Return values: // func (client *LANHostConfigManagement1) SetDHCPRelay( - NewDHCPRelay string, -) ( err error) { - request := _LANHostConfigManagement1_SetDHCPRelay_Request{ + NewDHCPRelay bool, +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDHCPRelay_Request + // BEGIN Marshal arguments into request. - NewDHCPRelay: NewDHCPRelay, - - } - var response _LANHostConfigManagement1_SetDHCPRelay_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPRelay", &request, &response) - if err != nil { + if request.NewDHCPRelay, err = soap.MarshalBoolean(NewDHCPRelay); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDHCPRelay_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPRelay", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDHCPRelay_Request is the XML structure for the input arguments for action GetDHCPRelay. -type _LANHostConfigManagement1_GetDHCPRelay_Request struct {} +type _LANHostConfigManagement1_GetDHCPRelay_Request struct{} // _LANHostConfigManagement1_GetDHCPRelay_Response is the XML structure for the output arguments for action GetDHCPRelay. type _LANHostConfigManagement1_GetDHCPRelay_Response struct { @@ -184,49 +193,52 @@ type _LANHostConfigManagement1_GetDHCPRelay_Response struct { // // Return values: // -// * NewDHCPRelay: +// * NewDHCPRelay: // (related state variable: DHCPRelay) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDHCPRelay() ( - NewDHCPRelay string, - err error) { - request := _LANHostConfigManagement1_GetDHCPRelay_Request{ + NewDHCPRelay bool, + err error, +) { + var request _LANHostConfigManagement1_GetDHCPRelay_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDHCPRelay_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPRelay", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPRelay", &request, &response); err != nil { return } - NewDHCPRelay = response.NewDHCPRelay + // BEGIN Unmarshal arguments from response. + if NewDHCPRelay, err = soap.UnmarshalBoolean(response.NewDHCPRelay); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetSubnetMask_Request is the XML structure for the input arguments for action SetSubnetMask. type _LANHostConfigManagement1_SetSubnetMask_Request struct { NewSubnetMask string } // _LANHostConfigManagement1_SetSubnetMask_Response is the XML structure for the output arguments for action SetSubnetMask. -type _LANHostConfigManagement1_SetSubnetMask_Response struct {} +type _LANHostConfigManagement1_SetSubnetMask_Response struct{} // SetSubnetMask action. // Arguments: // -// * NewSubnetMask: +// * NewSubnetMask: // (related state variable: SubnetMask) -// - -// - +// - +// - // // // @@ -234,28 +246,32 @@ type _LANHostConfigManagement1_SetSubnetMask_Response struct {} // func (client *LANHostConfigManagement1) SetSubnetMask( NewSubnetMask string, -) ( err error) { - request := _LANHostConfigManagement1_SetSubnetMask_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetSubnetMask_Request + // BEGIN Marshal arguments into request. - NewSubnetMask: NewSubnetMask, - - } - var response _LANHostConfigManagement1_SetSubnetMask_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetSubnetMask", &request, &response) - if err != nil { + if request.NewSubnetMask, err = soap.MarshalString(NewSubnetMask); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetSubnetMask_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetSubnetMask", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetSubnetMask_Request is the XML structure for the input arguments for action GetSubnetMask. -type _LANHostConfigManagement1_GetSubnetMask_Request struct {} +type _LANHostConfigManagement1_GetSubnetMask_Request struct{} // _LANHostConfigManagement1_GetSubnetMask_Response is the XML structure for the output arguments for action GetSubnetMask. type _LANHostConfigManagement1_GetSubnetMask_Response struct { @@ -268,49 +284,52 @@ type _LANHostConfigManagement1_GetSubnetMask_Response struct { // // Return values: // -// * NewSubnetMask: +// * NewSubnetMask: // (related state variable: SubnetMask) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetSubnetMask() ( NewSubnetMask string, - err error) { - request := _LANHostConfigManagement1_GetSubnetMask_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetSubnetMask_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetSubnetMask_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetSubnetMask", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetSubnetMask", &request, &response); err != nil { return } - NewSubnetMask = response.NewSubnetMask + // BEGIN Unmarshal arguments from response. + if NewSubnetMask, err = soap.UnmarshalString(response.NewSubnetMask); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetIPRouter_Request is the XML structure for the input arguments for action SetIPRouter. type _LANHostConfigManagement1_SetIPRouter_Request struct { NewIPRouters string } // _LANHostConfigManagement1_SetIPRouter_Response is the XML structure for the output arguments for action SetIPRouter. -type _LANHostConfigManagement1_SetIPRouter_Response struct {} +type _LANHostConfigManagement1_SetIPRouter_Response struct{} // SetIPRouter action. // Arguments: // -// * NewIPRouters: +// * NewIPRouters: // (related state variable: IPRouters) -// - -// - +// - +// - // // // @@ -318,41 +337,45 @@ type _LANHostConfigManagement1_SetIPRouter_Response struct {} // func (client *LANHostConfigManagement1) SetIPRouter( NewIPRouters string, -) ( err error) { - request := _LANHostConfigManagement1_SetIPRouter_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetIPRouter_Request + // BEGIN Marshal arguments into request. - NewIPRouters: NewIPRouters, - - } - var response _LANHostConfigManagement1_SetIPRouter_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetIPRouter", &request, &response) - if err != nil { + if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetIPRouter_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetIPRouter", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_DeleteIPRouter_Request is the XML structure for the input arguments for action DeleteIPRouter. type _LANHostConfigManagement1_DeleteIPRouter_Request struct { NewIPRouters string } // _LANHostConfigManagement1_DeleteIPRouter_Response is the XML structure for the output arguments for action DeleteIPRouter. -type _LANHostConfigManagement1_DeleteIPRouter_Response struct {} +type _LANHostConfigManagement1_DeleteIPRouter_Response struct{} // DeleteIPRouter action. // Arguments: // -// * NewIPRouters: +// * NewIPRouters: // (related state variable: IPRouters) -// - -// - +// - +// - // // // @@ -360,28 +383,32 @@ type _LANHostConfigManagement1_DeleteIPRouter_Response struct {} // func (client *LANHostConfigManagement1) DeleteIPRouter( NewIPRouters string, -) ( err error) { - request := _LANHostConfigManagement1_DeleteIPRouter_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_DeleteIPRouter_Request + // BEGIN Marshal arguments into request. - NewIPRouters: NewIPRouters, - - } - var response _LANHostConfigManagement1_DeleteIPRouter_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteIPRouter", &request, &response) - if err != nil { + if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_DeleteIPRouter_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteIPRouter", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetIPRoutersList_Request is the XML structure for the input arguments for action GetIPRoutersList. -type _LANHostConfigManagement1_GetIPRoutersList_Request struct {} +type _LANHostConfigManagement1_GetIPRoutersList_Request struct{} // _LANHostConfigManagement1_GetIPRoutersList_Response is the XML structure for the output arguments for action GetIPRoutersList. type _LANHostConfigManagement1_GetIPRoutersList_Response struct { @@ -394,49 +421,52 @@ type _LANHostConfigManagement1_GetIPRoutersList_Response struct { // // Return values: // -// * NewIPRouters: +// * NewIPRouters: // (related state variable: IPRouters) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetIPRoutersList() ( NewIPRouters string, - err error) { - request := _LANHostConfigManagement1_GetIPRoutersList_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetIPRoutersList_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetIPRoutersList_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetIPRoutersList", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetIPRoutersList", &request, &response); err != nil { return } - NewIPRouters = response.NewIPRouters + // BEGIN Unmarshal arguments from response. + if NewIPRouters, err = soap.UnmarshalString(response.NewIPRouters); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetDomainName_Request is the XML structure for the input arguments for action SetDomainName. type _LANHostConfigManagement1_SetDomainName_Request struct { NewDomainName string } // _LANHostConfigManagement1_SetDomainName_Response is the XML structure for the output arguments for action SetDomainName. -type _LANHostConfigManagement1_SetDomainName_Response struct {} +type _LANHostConfigManagement1_SetDomainName_Response struct{} // SetDomainName action. // Arguments: // -// * NewDomainName: +// * NewDomainName: // (related state variable: DomainName) -// - -// - +// - +// - // // // @@ -444,28 +474,32 @@ type _LANHostConfigManagement1_SetDomainName_Response struct {} // func (client *LANHostConfigManagement1) SetDomainName( NewDomainName string, -) ( err error) { - request := _LANHostConfigManagement1_SetDomainName_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDomainName_Request + // BEGIN Marshal arguments into request. - NewDomainName: NewDomainName, - - } - var response _LANHostConfigManagement1_SetDomainName_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDomainName", &request, &response) - if err != nil { + if request.NewDomainName, err = soap.MarshalString(NewDomainName); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDomainName_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDomainName", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDomainName_Request is the XML structure for the input arguments for action GetDomainName. -type _LANHostConfigManagement1_GetDomainName_Request struct {} +type _LANHostConfigManagement1_GetDomainName_Request struct{} // _LANHostConfigManagement1_GetDomainName_Response is the XML structure for the output arguments for action GetDomainName. type _LANHostConfigManagement1_GetDomainName_Response struct { @@ -478,34 +512,37 @@ type _LANHostConfigManagement1_GetDomainName_Response struct { // // Return values: // -// * NewDomainName: +// * NewDomainName: // (related state variable: DomainName) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDomainName() ( NewDomainName string, - err error) { - request := _LANHostConfigManagement1_GetDomainName_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetDomainName_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDomainName_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDomainName", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDomainName", &request, &response); err != nil { return } - NewDomainName = response.NewDomainName + // BEGIN Unmarshal arguments from response. + if NewDomainName, err = soap.UnmarshalString(response.NewDomainName); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetAddressRange_Request is the XML structure for the input arguments for action SetAddressRange. type _LANHostConfigManagement1_SetAddressRange_Request struct { NewMinAddress string @@ -514,21 +551,21 @@ type _LANHostConfigManagement1_SetAddressRange_Request struct { } // _LANHostConfigManagement1_SetAddressRange_Response is the XML structure for the output arguments for action SetAddressRange. -type _LANHostConfigManagement1_SetAddressRange_Response struct {} +type _LANHostConfigManagement1_SetAddressRange_Response struct{} // SetAddressRange action. // Arguments: // -// * NewMinAddress: +// * NewMinAddress: // (related state variable: MinAddress) -// - -// - +// - +// - // // -// * NewMaxAddress: +// * NewMaxAddress: // (related state variable: MaxAddress) -// - -// - +// - +// - // // // @@ -536,32 +573,37 @@ type _LANHostConfigManagement1_SetAddressRange_Response struct {} // func (client *LANHostConfigManagement1) SetAddressRange( NewMinAddress string, - NewMaxAddress string, -) ( err error) { - request := _LANHostConfigManagement1_SetAddressRange_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetAddressRange_Request + // BEGIN Marshal arguments into request. - NewMinAddress: NewMinAddress, - - NewMaxAddress: NewMaxAddress, - - } - var response _LANHostConfigManagement1_SetAddressRange_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetAddressRange", &request, &response) - if err != nil { + if request.NewMinAddress, err = soap.MarshalString(NewMinAddress); err != nil { return } + if request.NewMaxAddress, err = soap.MarshalString(NewMaxAddress); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetAddressRange_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetAddressRange", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetAddressRange_Request is the XML structure for the input arguments for action GetAddressRange. -type _LANHostConfigManagement1_GetAddressRange_Request struct {} +type _LANHostConfigManagement1_GetAddressRange_Request struct{} // _LANHostConfigManagement1_GetAddressRange_Response is the XML structure for the output arguments for action GetAddressRange. type _LANHostConfigManagement1_GetAddressRange_Response struct { @@ -576,59 +618,63 @@ type _LANHostConfigManagement1_GetAddressRange_Response struct { // // Return values: // -// * NewMinAddress: +// * NewMinAddress: // (related state variable: MinAddress) -// - -// - +// - +// - // // -// * NewMaxAddress: +// * NewMaxAddress: // (related state variable: MaxAddress) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetAddressRange() ( NewMinAddress string, - NewMaxAddress string, - err error) { - request := _LANHostConfigManagement1_GetAddressRange_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetAddressRange_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetAddressRange_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetAddressRange", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetAddressRange", &request, &response); err != nil { return } - NewMinAddress = response.NewMinAddress + // BEGIN Unmarshal arguments from response. - NewMaxAddress = response.NewMaxAddress + if NewMinAddress, err = soap.UnmarshalString(response.NewMinAddress); err != nil { + return + } + if NewMaxAddress, err = soap.UnmarshalString(response.NewMaxAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetReservedAddress_Request is the XML structure for the input arguments for action SetReservedAddress. type _LANHostConfigManagement1_SetReservedAddress_Request struct { NewReservedAddresses string } // _LANHostConfigManagement1_SetReservedAddress_Response is the XML structure for the output arguments for action SetReservedAddress. -type _LANHostConfigManagement1_SetReservedAddress_Response struct {} +type _LANHostConfigManagement1_SetReservedAddress_Response struct{} // SetReservedAddress action. // Arguments: // -// * NewReservedAddresses: +// * NewReservedAddresses: // (related state variable: ReservedAddresses) -// - -// - +// - +// - // // // @@ -636,41 +682,45 @@ type _LANHostConfigManagement1_SetReservedAddress_Response struct {} // func (client *LANHostConfigManagement1) SetReservedAddress( NewReservedAddresses string, -) ( err error) { - request := _LANHostConfigManagement1_SetReservedAddress_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetReservedAddress_Request + // BEGIN Marshal arguments into request. - NewReservedAddresses: NewReservedAddresses, - - } - var response _LANHostConfigManagement1_SetReservedAddress_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetReservedAddress", &request, &response) - if err != nil { + if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetReservedAddress_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetReservedAddress", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_DeleteReservedAddress_Request is the XML structure for the input arguments for action DeleteReservedAddress. type _LANHostConfigManagement1_DeleteReservedAddress_Request struct { NewReservedAddresses string } // _LANHostConfigManagement1_DeleteReservedAddress_Response is the XML structure for the output arguments for action DeleteReservedAddress. -type _LANHostConfigManagement1_DeleteReservedAddress_Response struct {} +type _LANHostConfigManagement1_DeleteReservedAddress_Response struct{} // DeleteReservedAddress action. // Arguments: // -// * NewReservedAddresses: +// * NewReservedAddresses: // (related state variable: ReservedAddresses) -// - -// - +// - +// - // // // @@ -678,28 +728,32 @@ type _LANHostConfigManagement1_DeleteReservedAddress_Response struct {} // func (client *LANHostConfigManagement1) DeleteReservedAddress( NewReservedAddresses string, -) ( err error) { - request := _LANHostConfigManagement1_DeleteReservedAddress_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_DeleteReservedAddress_Request + // BEGIN Marshal arguments into request. - NewReservedAddresses: NewReservedAddresses, - - } - var response _LANHostConfigManagement1_DeleteReservedAddress_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteReservedAddress", &request, &response) - if err != nil { + if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_DeleteReservedAddress_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteReservedAddress", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetReservedAddresses_Request is the XML structure for the input arguments for action GetReservedAddresses. -type _LANHostConfigManagement1_GetReservedAddresses_Request struct {} +type _LANHostConfigManagement1_GetReservedAddresses_Request struct{} // _LANHostConfigManagement1_GetReservedAddresses_Response is the XML structure for the output arguments for action GetReservedAddresses. type _LANHostConfigManagement1_GetReservedAddresses_Response struct { @@ -712,49 +766,52 @@ type _LANHostConfigManagement1_GetReservedAddresses_Response struct { // // Return values: // -// * NewReservedAddresses: +// * NewReservedAddresses: // (related state variable: ReservedAddresses) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetReservedAddresses() ( NewReservedAddresses string, - err error) { - request := _LANHostConfigManagement1_GetReservedAddresses_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetReservedAddresses_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetReservedAddresses_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetReservedAddresses", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetReservedAddresses", &request, &response); err != nil { return } - NewReservedAddresses = response.NewReservedAddresses + // BEGIN Unmarshal arguments from response. + if NewReservedAddresses, err = soap.UnmarshalString(response.NewReservedAddresses); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetDNSServer_Request is the XML structure for the input arguments for action SetDNSServer. type _LANHostConfigManagement1_SetDNSServer_Request struct { NewDNSServers string } // _LANHostConfigManagement1_SetDNSServer_Response is the XML structure for the output arguments for action SetDNSServer. -type _LANHostConfigManagement1_SetDNSServer_Response struct {} +type _LANHostConfigManagement1_SetDNSServer_Response struct{} // SetDNSServer action. // Arguments: // -// * NewDNSServers: +// * NewDNSServers: // (related state variable: DNSServers) -// - -// - +// - +// - // // // @@ -762,41 +819,45 @@ type _LANHostConfigManagement1_SetDNSServer_Response struct {} // func (client *LANHostConfigManagement1) SetDNSServer( NewDNSServers string, -) ( err error) { - request := _LANHostConfigManagement1_SetDNSServer_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDNSServer_Request + // BEGIN Marshal arguments into request. - NewDNSServers: NewDNSServers, - - } - var response _LANHostConfigManagement1_SetDNSServer_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDNSServer", &request, &response) - if err != nil { + if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDNSServer_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDNSServer", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_DeleteDNSServer_Request is the XML structure for the input arguments for action DeleteDNSServer. type _LANHostConfigManagement1_DeleteDNSServer_Request struct { NewDNSServers string } // _LANHostConfigManagement1_DeleteDNSServer_Response is the XML structure for the output arguments for action DeleteDNSServer. -type _LANHostConfigManagement1_DeleteDNSServer_Response struct {} +type _LANHostConfigManagement1_DeleteDNSServer_Response struct{} // DeleteDNSServer action. // Arguments: // -// * NewDNSServers: +// * NewDNSServers: // (related state variable: DNSServers) -// - -// - +// - +// - // // // @@ -804,28 +865,32 @@ type _LANHostConfigManagement1_DeleteDNSServer_Response struct {} // func (client *LANHostConfigManagement1) DeleteDNSServer( NewDNSServers string, -) ( err error) { - request := _LANHostConfigManagement1_DeleteDNSServer_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_DeleteDNSServer_Request + // BEGIN Marshal arguments into request. - NewDNSServers: NewDNSServers, - - } - var response _LANHostConfigManagement1_DeleteDNSServer_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteDNSServer", &request, &response) - if err != nil { + if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_DeleteDNSServer_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteDNSServer", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDNSServers_Request is the XML structure for the input arguments for action GetDNSServers. -type _LANHostConfigManagement1_GetDNSServers_Request struct {} +type _LANHostConfigManagement1_GetDNSServers_Request struct{} // _LANHostConfigManagement1_GetDNSServers_Response is the XML structure for the output arguments for action GetDNSServers. type _LANHostConfigManagement1_GetDNSServers_Response struct { @@ -838,59 +903,57 @@ type _LANHostConfigManagement1_GetDNSServers_Response struct { // // Return values: // -// * NewDNSServers: +// * NewDNSServers: // (related state variable: DNSServers) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDNSServers() ( NewDNSServers string, - err error) { - request := _LANHostConfigManagement1_GetDNSServers_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetDNSServers_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDNSServers_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDNSServers", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDNSServers", &request, &response); err != nil { return } - NewDNSServers = response.NewDNSServers + // BEGIN Unmarshal arguments from response. + if NewDNSServers, err = soap.UnmarshalString(response.NewDNSServers); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // Layer3Forwarding1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:Layer3Forwarding:1". type Layer3Forwarding1 struct { SOAPClient soap.SOAPClient } - - - - - // _Layer3Forwarding1_SetDefaultConnectionService_Request is the XML structure for the input arguments for action SetDefaultConnectionService. type _Layer3Forwarding1_SetDefaultConnectionService_Request struct { NewDefaultConnectionService string } // _Layer3Forwarding1_SetDefaultConnectionService_Response is the XML structure for the output arguments for action SetDefaultConnectionService. -type _Layer3Forwarding1_SetDefaultConnectionService_Response struct {} +type _Layer3Forwarding1_SetDefaultConnectionService_Response struct{} // SetDefaultConnectionService action. // Arguments: // -// * NewDefaultConnectionService: +// * NewDefaultConnectionService: // (related state variable: DefaultConnectionService) -// - -// - +// - +// - // // // @@ -898,28 +961,32 @@ type _Layer3Forwarding1_SetDefaultConnectionService_Response struct {} // func (client *Layer3Forwarding1) SetDefaultConnectionService( NewDefaultConnectionService string, -) ( err error) { - request := _Layer3Forwarding1_SetDefaultConnectionService_Request{ +) ( + err error, +) { + var request _Layer3Forwarding1_SetDefaultConnectionService_Request + // BEGIN Marshal arguments into request. - NewDefaultConnectionService: NewDefaultConnectionService, - - } - var response _Layer3Forwarding1_SetDefaultConnectionService_Response - err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "SetDefaultConnectionService", &request, &response) - if err != nil { + if request.NewDefaultConnectionService, err = soap.MarshalString(NewDefaultConnectionService); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _Layer3Forwarding1_SetDefaultConnectionService_Response + if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "SetDefaultConnectionService", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _Layer3Forwarding1_GetDefaultConnectionService_Request is the XML structure for the input arguments for action GetDefaultConnectionService. -type _Layer3Forwarding1_GetDefaultConnectionService_Request struct {} +type _Layer3Forwarding1_GetDefaultConnectionService_Request struct{} // _Layer3Forwarding1_GetDefaultConnectionService_Response is the XML structure for the output arguments for action GetDefaultConnectionService. type _Layer3Forwarding1_GetDefaultConnectionService_Response struct { @@ -932,46 +999,44 @@ type _Layer3Forwarding1_GetDefaultConnectionService_Response struct { // // Return values: // -// * NewDefaultConnectionService: +// * NewDefaultConnectionService: // (related state variable: DefaultConnectionService) -// - -// - +// - +// - // // func (client *Layer3Forwarding1) GetDefaultConnectionService() ( NewDefaultConnectionService string, - err error) { - request := _Layer3Forwarding1_GetDefaultConnectionService_Request{ + err error, +) { + var request _Layer3Forwarding1_GetDefaultConnectionService_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _Layer3Forwarding1_GetDefaultConnectionService_Response - err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "GetDefaultConnectionService", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "GetDefaultConnectionService", &request, &response); err != nil { return } - NewDefaultConnectionService = response.NewDefaultConnectionService + // BEGIN Unmarshal arguments from response. + if NewDefaultConnectionService, err = soap.UnmarshalString(response.NewDefaultConnectionService); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANCableLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCableLinkConfig:1". type WANCableLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANCableLinkConfig1_GetCableLinkConfigInfo_Request is the XML structure for the input arguments for action GetCableLinkConfigInfo. -type _WANCableLinkConfig1_GetCableLinkConfigInfo_Request struct {} +type _WANCableLinkConfig1_GetCableLinkConfigInfo_Request struct{} // _WANCableLinkConfig1_GetCableLinkConfigInfo_Response is the XML structure for the output arguments for action GetCableLinkConfigInfo. type _WANCableLinkConfig1_GetCableLinkConfigInfo_Response struct { @@ -986,52 +1051,56 @@ type _WANCableLinkConfig1_GetCableLinkConfigInfo_Response struct { // // Return values: // -// * NewCableLinkConfigState: +// * NewCableLinkConfigState: // (related state variable: CableLinkConfigState) -// - +// - // - allowed values: // notReady|dsSyncComplete|usParamAcquired|rangingComplete|ipComplete|todEstablished|paramTransferComplete|registrationComplete|operational|accessDenied // // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - +// - // - allowed values: // Ethernet // // func (client *WANCableLinkConfig1) GetCableLinkConfigInfo() ( NewCableLinkConfigState string, - NewLinkType string, - err error) { - request := _WANCableLinkConfig1_GetCableLinkConfigInfo_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetCableLinkConfigInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetCableLinkConfigInfo_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetCableLinkConfigInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetCableLinkConfigInfo", &request, &response); err != nil { return } - NewCableLinkConfigState = response.NewCableLinkConfigState + // BEGIN Unmarshal arguments from response. - NewLinkType = response.NewLinkType + if NewCableLinkConfigState, err = soap.UnmarshalString(response.NewCableLinkConfigState); err != nil { + return + } + if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetDownstreamFrequency_Request is the XML structure for the input arguments for action GetDownstreamFrequency. -type _WANCableLinkConfig1_GetDownstreamFrequency_Request struct {} +type _WANCableLinkConfig1_GetDownstreamFrequency_Request struct{} // _WANCableLinkConfig1_GetDownstreamFrequency_Response is the XML structure for the output arguments for action GetDownstreamFrequency. type _WANCableLinkConfig1_GetDownstreamFrequency_Response struct { - NewDownstreamFrequency uint32 + NewDownstreamFrequency string } // GetDownstreamFrequency action. @@ -1040,36 +1109,39 @@ type _WANCableLinkConfig1_GetDownstreamFrequency_Response struct { // // Return values: // -// * NewDownstreamFrequency: +// * NewDownstreamFrequency: // (related state variable: DownstreamFrequency) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetDownstreamFrequency() ( NewDownstreamFrequency uint32, - err error) { - request := _WANCableLinkConfig1_GetDownstreamFrequency_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetDownstreamFrequency_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetDownstreamFrequency_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamFrequency", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamFrequency", &request, &response); err != nil { return } - NewDownstreamFrequency = response.NewDownstreamFrequency + // BEGIN Unmarshal arguments from response. + if NewDownstreamFrequency, err = soap.UnmarshalUi4(response.NewDownstreamFrequency); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetDownstreamModulation_Request is the XML structure for the input arguments for action GetDownstreamModulation. -type _WANCableLinkConfig1_GetDownstreamModulation_Request struct {} +type _WANCableLinkConfig1_GetDownstreamModulation_Request struct{} // _WANCableLinkConfig1_GetDownstreamModulation_Response is the XML structure for the output arguments for action GetDownstreamModulation. type _WANCableLinkConfig1_GetDownstreamModulation_Response struct { @@ -1082,41 +1154,44 @@ type _WANCableLinkConfig1_GetDownstreamModulation_Response struct { // // Return values: // -// * NewDownstreamModulation: +// * NewDownstreamModulation: // (related state variable: DownstreamModulation) -// - +// - // - allowed values: // 64QAM|256QAM // // func (client *WANCableLinkConfig1) GetDownstreamModulation() ( NewDownstreamModulation string, - err error) { - request := _WANCableLinkConfig1_GetDownstreamModulation_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetDownstreamModulation_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetDownstreamModulation_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamModulation", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamModulation", &request, &response); err != nil { return } - NewDownstreamModulation = response.NewDownstreamModulation + // BEGIN Unmarshal arguments from response. + if NewDownstreamModulation, err = soap.UnmarshalString(response.NewDownstreamModulation); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamFrequency_Request is the XML structure for the input arguments for action GetUpstreamFrequency. -type _WANCableLinkConfig1_GetUpstreamFrequency_Request struct {} +type _WANCableLinkConfig1_GetUpstreamFrequency_Request struct{} // _WANCableLinkConfig1_GetUpstreamFrequency_Response is the XML structure for the output arguments for action GetUpstreamFrequency. type _WANCableLinkConfig1_GetUpstreamFrequency_Response struct { - NewUpstreamFrequency uint32 + NewUpstreamFrequency string } // GetUpstreamFrequency action. @@ -1125,36 +1200,39 @@ type _WANCableLinkConfig1_GetUpstreamFrequency_Response struct { // // Return values: // -// * NewUpstreamFrequency: +// * NewUpstreamFrequency: // (related state variable: UpstreamFrequency) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetUpstreamFrequency() ( NewUpstreamFrequency uint32, - err error) { - request := _WANCableLinkConfig1_GetUpstreamFrequency_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamFrequency_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamFrequency_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamFrequency", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamFrequency", &request, &response); err != nil { return } - NewUpstreamFrequency = response.NewUpstreamFrequency + // BEGIN Unmarshal arguments from response. + if NewUpstreamFrequency, err = soap.UnmarshalUi4(response.NewUpstreamFrequency); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamModulation_Request is the XML structure for the input arguments for action GetUpstreamModulation. -type _WANCableLinkConfig1_GetUpstreamModulation_Request struct {} +type _WANCableLinkConfig1_GetUpstreamModulation_Request struct{} // _WANCableLinkConfig1_GetUpstreamModulation_Response is the XML structure for the output arguments for action GetUpstreamModulation. type _WANCableLinkConfig1_GetUpstreamModulation_Response struct { @@ -1167,41 +1245,44 @@ type _WANCableLinkConfig1_GetUpstreamModulation_Response struct { // // Return values: // -// * NewUpstreamModulation: +// * NewUpstreamModulation: // (related state variable: UpstreamModulation) -// - +// - // - allowed values: // QPSK|16QAM // // func (client *WANCableLinkConfig1) GetUpstreamModulation() ( NewUpstreamModulation string, - err error) { - request := _WANCableLinkConfig1_GetUpstreamModulation_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamModulation_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamModulation_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamModulation", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamModulation", &request, &response); err != nil { return } - NewUpstreamModulation = response.NewUpstreamModulation + // BEGIN Unmarshal arguments from response. + if NewUpstreamModulation, err = soap.UnmarshalString(response.NewUpstreamModulation); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamChannelID_Request is the XML structure for the input arguments for action GetUpstreamChannelID. -type _WANCableLinkConfig1_GetUpstreamChannelID_Request struct {} +type _WANCableLinkConfig1_GetUpstreamChannelID_Request struct{} // _WANCableLinkConfig1_GetUpstreamChannelID_Response is the XML structure for the output arguments for action GetUpstreamChannelID. type _WANCableLinkConfig1_GetUpstreamChannelID_Response struct { - NewUpstreamChannelID uint32 + NewUpstreamChannelID string } // GetUpstreamChannelID action. @@ -1210,40 +1291,43 @@ type _WANCableLinkConfig1_GetUpstreamChannelID_Response struct { // // Return values: // -// * NewUpstreamChannelID: +// * NewUpstreamChannelID: // (related state variable: UpstreamChannelID) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetUpstreamChannelID() ( NewUpstreamChannelID uint32, - err error) { - request := _WANCableLinkConfig1_GetUpstreamChannelID_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamChannelID_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamChannelID_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamChannelID", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamChannelID", &request, &response); err != nil { return } - NewUpstreamChannelID = response.NewUpstreamChannelID + // BEGIN Unmarshal arguments from response. + if NewUpstreamChannelID, err = soap.UnmarshalUi4(response.NewUpstreamChannelID); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamPowerLevel_Request is the XML structure for the input arguments for action GetUpstreamPowerLevel. -type _WANCableLinkConfig1_GetUpstreamPowerLevel_Request struct {} +type _WANCableLinkConfig1_GetUpstreamPowerLevel_Request struct{} // _WANCableLinkConfig1_GetUpstreamPowerLevel_Response is the XML structure for the output arguments for action GetUpstreamPowerLevel. type _WANCableLinkConfig1_GetUpstreamPowerLevel_Response struct { - NewUpstreamPowerLevel uint32 + NewUpstreamPowerLevel string } // GetUpstreamPowerLevel action. @@ -1252,36 +1336,39 @@ type _WANCableLinkConfig1_GetUpstreamPowerLevel_Response struct { // // Return values: // -// * NewUpstreamPowerLevel: +// * NewUpstreamPowerLevel: // (related state variable: UpstreamPowerLevel) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetUpstreamPowerLevel() ( NewUpstreamPowerLevel uint32, - err error) { - request := _WANCableLinkConfig1_GetUpstreamPowerLevel_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamPowerLevel_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamPowerLevel_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamPowerLevel", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamPowerLevel", &request, &response); err != nil { return } - NewUpstreamPowerLevel = response.NewUpstreamPowerLevel + // BEGIN Unmarshal arguments from response. + if NewUpstreamPowerLevel, err = soap.UnmarshalUi4(response.NewUpstreamPowerLevel); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request is the XML structure for the input arguments for action GetBPIEncryptionEnabled. -type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request struct {} +type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request struct{} // _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response is the XML structure for the output arguments for action GetBPIEncryptionEnabled. type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response struct { @@ -1294,36 +1381,39 @@ type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response struct { // // Return values: // -// * NewBPIEncryptionEnabled: +// * NewBPIEncryptionEnabled: // (related state variable: BPIEncryptionEnabled) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() ( - NewBPIEncryptionEnabled string, - err error) { - request := _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request{ + NewBPIEncryptionEnabled bool, + err error, +) { + var request _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetBPIEncryptionEnabled", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetBPIEncryptionEnabled", &request, &response); err != nil { return } - NewBPIEncryptionEnabled = response.NewBPIEncryptionEnabled + // BEGIN Unmarshal arguments from response. + if NewBPIEncryptionEnabled, err = soap.UnmarshalBoolean(response.NewBPIEncryptionEnabled); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetConfigFile_Request is the XML structure for the input arguments for action GetConfigFile. -type _WANCableLinkConfig1_GetConfigFile_Request struct {} +type _WANCableLinkConfig1_GetConfigFile_Request struct{} // _WANCableLinkConfig1_GetConfigFile_Response is the XML structure for the output arguments for action GetConfigFile. type _WANCableLinkConfig1_GetConfigFile_Response struct { @@ -1336,36 +1426,39 @@ type _WANCableLinkConfig1_GetConfigFile_Response struct { // // Return values: // -// * NewConfigFile: +// * NewConfigFile: // (related state variable: ConfigFile) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetConfigFile() ( NewConfigFile string, - err error) { - request := _WANCableLinkConfig1_GetConfigFile_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetConfigFile_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetConfigFile_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetConfigFile", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetConfigFile", &request, &response); err != nil { return } - NewConfigFile = response.NewConfigFile + // BEGIN Unmarshal arguments from response. + if NewConfigFile, err = soap.UnmarshalString(response.NewConfigFile); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetTFTPServer_Request is the XML structure for the input arguments for action GetTFTPServer. -type _WANCableLinkConfig1_GetTFTPServer_Request struct {} +type _WANCableLinkConfig1_GetTFTPServer_Request struct{} // _WANCableLinkConfig1_GetTFTPServer_Response is the XML structure for the output arguments for action GetTFTPServer. type _WANCableLinkConfig1_GetTFTPServer_Response struct { @@ -1378,88 +1471,90 @@ type _WANCableLinkConfig1_GetTFTPServer_Response struct { // // Return values: // -// * NewTFTPServer: +// * NewTFTPServer: // (related state variable: TFTPServer) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetTFTPServer() ( NewTFTPServer string, - err error) { - request := _WANCableLinkConfig1_GetTFTPServer_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetTFTPServer_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetTFTPServer_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetTFTPServer", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetTFTPServer", &request, &response); err != nil { return } - NewTFTPServer = response.NewTFTPServer + // BEGIN Unmarshal arguments from response. + if NewTFTPServer, err = soap.UnmarshalString(response.NewTFTPServer); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANCommonInterfaceConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1". type WANCommonInterfaceConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANCommonInterfaceConfig1_SetEnabledForInternet_Request is the XML structure for the input arguments for action SetEnabledForInternet. type _WANCommonInterfaceConfig1_SetEnabledForInternet_Request struct { NewEnabledForInternet string } // _WANCommonInterfaceConfig1_SetEnabledForInternet_Response is the XML structure for the output arguments for action SetEnabledForInternet. -type _WANCommonInterfaceConfig1_SetEnabledForInternet_Response struct {} +type _WANCommonInterfaceConfig1_SetEnabledForInternet_Response struct{} // SetEnabledForInternet action. // Arguments: // -// * NewEnabledForInternet: +// * NewEnabledForInternet: // (related state variable: EnabledForInternet) -// - -// - +// - +// - // // // // Return values: // func (client *WANCommonInterfaceConfig1) SetEnabledForInternet( - NewEnabledForInternet string, -) ( err error) { - request := _WANCommonInterfaceConfig1_SetEnabledForInternet_Request{ + NewEnabledForInternet bool, +) ( + err error, +) { + var request _WANCommonInterfaceConfig1_SetEnabledForInternet_Request + // BEGIN Marshal arguments into request. - NewEnabledForInternet: NewEnabledForInternet, - - } - var response _WANCommonInterfaceConfig1_SetEnabledForInternet_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "SetEnabledForInternet", &request, &response) - if err != nil { + if request.NewEnabledForInternet, err = soap.MarshalBoolean(NewEnabledForInternet); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANCommonInterfaceConfig1_SetEnabledForInternet_Response + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "SetEnabledForInternet", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetEnabledForInternet_Request is the XML structure for the input arguments for action GetEnabledForInternet. -type _WANCommonInterfaceConfig1_GetEnabledForInternet_Request struct {} +type _WANCommonInterfaceConfig1_GetEnabledForInternet_Request struct{} // _WANCommonInterfaceConfig1_GetEnabledForInternet_Response is the XML structure for the output arguments for action GetEnabledForInternet. type _WANCommonInterfaceConfig1_GetEnabledForInternet_Response struct { @@ -1472,44 +1567,47 @@ type _WANCommonInterfaceConfig1_GetEnabledForInternet_Response struct { // // Return values: // -// * NewEnabledForInternet: +// * NewEnabledForInternet: // (related state variable: EnabledForInternet) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() ( - NewEnabledForInternet string, - err error) { - request := _WANCommonInterfaceConfig1_GetEnabledForInternet_Request{ + NewEnabledForInternet bool, + err error, +) { + var request _WANCommonInterfaceConfig1_GetEnabledForInternet_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetEnabledForInternet_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetEnabledForInternet", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetEnabledForInternet", &request, &response); err != nil { return } - NewEnabledForInternet = response.NewEnabledForInternet + // BEGIN Unmarshal arguments from response. + if NewEnabledForInternet, err = soap.UnmarshalBoolean(response.NewEnabledForInternet); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request is the XML structure for the input arguments for action GetCommonLinkProperties. -type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request struct {} +type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request struct{} // _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response is the XML structure for the output arguments for action GetCommonLinkProperties. type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response struct { NewWANAccessType string - NewLayer1UpstreamMaxBitRate uint32 + NewLayer1UpstreamMaxBitRate string - NewLayer1DownstreamMaxBitRate uint32 + NewLayer1DownstreamMaxBitRate string NewPhysicalLinkStatus string } @@ -1520,68 +1618,74 @@ type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response struct { // // Return values: // -// * NewWANAccessType: +// * NewWANAccessType: // (related state variable: WANAccessType) -// - +// - // - allowed values: // DSL|POTS|Cable|Ethernet // // -// * NewLayer1UpstreamMaxBitRate: +// * NewLayer1UpstreamMaxBitRate: // (related state variable: Layer1UpstreamMaxBitRate) -// - -// - +// - +// - // // -// * NewLayer1DownstreamMaxBitRate: +// * NewLayer1DownstreamMaxBitRate: // (related state variable: Layer1DownstreamMaxBitRate) -// - -// - +// - +// - // // -// * NewPhysicalLinkStatus: +// * NewPhysicalLinkStatus: // (related state variable: PhysicalLinkStatus) -// - +// - // - allowed values: // Up|Down // // func (client *WANCommonInterfaceConfig1) GetCommonLinkProperties() ( NewWANAccessType string, - NewLayer1UpstreamMaxBitRate uint32, - NewLayer1DownstreamMaxBitRate uint32, - NewPhysicalLinkStatus string, - err error) { - request := _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetCommonLinkProperties", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetCommonLinkProperties", &request, &response); err != nil { return } - NewWANAccessType = response.NewWANAccessType + // BEGIN Unmarshal arguments from response. - NewLayer1UpstreamMaxBitRate = response.NewLayer1UpstreamMaxBitRate + if NewWANAccessType, err = soap.UnmarshalString(response.NewWANAccessType); err != nil { + return + } - NewLayer1DownstreamMaxBitRate = response.NewLayer1DownstreamMaxBitRate + if NewLayer1UpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1UpstreamMaxBitRate); err != nil { + return + } - NewPhysicalLinkStatus = response.NewPhysicalLinkStatus + if NewLayer1DownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1DownstreamMaxBitRate); err != nil { + return + } + if NewPhysicalLinkStatus, err = soap.UnmarshalString(response.NewPhysicalLinkStatus); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetWANAccessProvider_Request is the XML structure for the input arguments for action GetWANAccessProvider. -type _WANCommonInterfaceConfig1_GetWANAccessProvider_Request struct {} +type _WANCommonInterfaceConfig1_GetWANAccessProvider_Request struct{} // _WANCommonInterfaceConfig1_GetWANAccessProvider_Response is the XML structure for the output arguments for action GetWANAccessProvider. type _WANCommonInterfaceConfig1_GetWANAccessProvider_Response struct { @@ -1594,40 +1698,43 @@ type _WANCommonInterfaceConfig1_GetWANAccessProvider_Response struct { // // Return values: // -// * NewWANAccessProvider: +// * NewWANAccessProvider: // (related state variable: WANAccessProvider) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetWANAccessProvider() ( NewWANAccessProvider string, - err error) { - request := _WANCommonInterfaceConfig1_GetWANAccessProvider_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetWANAccessProvider_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetWANAccessProvider_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetWANAccessProvider", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetWANAccessProvider", &request, &response); err != nil { return } - NewWANAccessProvider = response.NewWANAccessProvider + // BEGIN Unmarshal arguments from response. + if NewWANAccessProvider, err = soap.UnmarshalString(response.NewWANAccessProvider); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request is the XML structure for the input arguments for action GetMaximumActiveConnections. -type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request struct {} +type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request struct{} // _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response is the XML structure for the output arguments for action GetMaximumActiveConnections. type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response struct { - NewMaximumActiveConnections uint16 + NewMaximumActiveConnections string } // GetMaximumActiveConnections action. @@ -1636,40 +1743,43 @@ type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response struct { // // Return values: // -// * NewMaximumActiveConnections: +// * NewMaximumActiveConnections: // (related state variable: MaximumActiveConnections) -// - allowed range: 1 to -// - +// - allowed range: 1 to +// - // // func (client *WANCommonInterfaceConfig1) GetMaximumActiveConnections() ( NewMaximumActiveConnections uint16, - err error) { - request := _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetMaximumActiveConnections", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetMaximumActiveConnections", &request, &response); err != nil { return } - NewMaximumActiveConnections = response.NewMaximumActiveConnections + // BEGIN Unmarshal arguments from response. + if NewMaximumActiveConnections, err = soap.UnmarshalUi2(response.NewMaximumActiveConnections); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalBytesSent_Request is the XML structure for the input arguments for action GetTotalBytesSent. -type _WANCommonInterfaceConfig1_GetTotalBytesSent_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalBytesSent_Request struct{} // _WANCommonInterfaceConfig1_GetTotalBytesSent_Response is the XML structure for the output arguments for action GetTotalBytesSent. type _WANCommonInterfaceConfig1_GetTotalBytesSent_Response struct { - NewTotalBytesSent uint32 + NewTotalBytesSent string } // GetTotalBytesSent action. @@ -1678,40 +1788,43 @@ type _WANCommonInterfaceConfig1_GetTotalBytesSent_Response struct { // // Return values: // -// * NewTotalBytesSent: +// * NewTotalBytesSent: // (related state variable: TotalBytesSent) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() ( NewTotalBytesSent uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalBytesSent_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalBytesSent_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalBytesSent_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesSent", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesSent", &request, &response); err != nil { return } - NewTotalBytesSent = response.NewTotalBytesSent + // BEGIN Unmarshal arguments from response. + if NewTotalBytesSent, err = soap.UnmarshalUi4(response.NewTotalBytesSent); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request is the XML structure for the input arguments for action GetTotalBytesReceived. -type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request struct{} // _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response is the XML structure for the output arguments for action GetTotalBytesReceived. type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response struct { - NewTotalBytesReceived uint32 + NewTotalBytesReceived string } // GetTotalBytesReceived action. @@ -1720,40 +1833,43 @@ type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response struct { // // Return values: // -// * NewTotalBytesReceived: +// * NewTotalBytesReceived: // (related state variable: TotalBytesReceived) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() ( NewTotalBytesReceived uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesReceived", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesReceived", &request, &response); err != nil { return } - NewTotalBytesReceived = response.NewTotalBytesReceived + // BEGIN Unmarshal arguments from response. + if NewTotalBytesReceived, err = soap.UnmarshalUi4(response.NewTotalBytesReceived); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request is the XML structure for the input arguments for action GetTotalPacketsSent. -type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request struct{} // _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response is the XML structure for the output arguments for action GetTotalPacketsSent. type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response struct { - NewTotalPacketsSent uint32 + NewTotalPacketsSent string } // GetTotalPacketsSent action. @@ -1762,40 +1878,43 @@ type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response struct { // // Return values: // -// * NewTotalPacketsSent: +// * NewTotalPacketsSent: // (related state variable: TotalPacketsSent) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalPacketsSent() ( NewTotalPacketsSent uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsSent", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsSent", &request, &response); err != nil { return } - NewTotalPacketsSent = response.NewTotalPacketsSent + // BEGIN Unmarshal arguments from response. + if NewTotalPacketsSent, err = soap.UnmarshalUi4(response.NewTotalPacketsSent); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request is the XML structure for the input arguments for action GetTotalPacketsReceived. -type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request struct{} // _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response is the XML structure for the output arguments for action GetTotalPacketsReceived. type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response struct { - NewTotalPacketsReceived uint32 + NewTotalPacketsReceived string } // GetTotalPacketsReceived action. @@ -1804,37 +1923,40 @@ type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response struct { // // Return values: // -// * NewTotalPacketsReceived: +// * NewTotalPacketsReceived: // (related state variable: TotalPacketsReceived) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalPacketsReceived() ( NewTotalPacketsReceived uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsReceived", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsReceived", &request, &response); err != nil { return } - NewTotalPacketsReceived = response.NewTotalPacketsReceived + // BEGIN Unmarshal arguments from response. + if NewTotalPacketsReceived, err = soap.UnmarshalUi4(response.NewTotalPacketsReceived); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetActiveConnection_Request is the XML structure for the input arguments for action GetActiveConnection. type _WANCommonInterfaceConfig1_GetActiveConnection_Request struct { - NewActiveConnectionIndex uint16 + NewActiveConnectionIndex string } // _WANCommonInterfaceConfig1_GetActiveConnection_Response is the XML structure for the output arguments for action GetActiveConnection. @@ -1847,82 +1969,83 @@ type _WANCommonInterfaceConfig1_GetActiveConnection_Response struct { // GetActiveConnection action. // Arguments: // -// * NewActiveConnectionIndex: +// * NewActiveConnectionIndex: // (related state variable: NumberOfActiveConnections) -// - -// - +// - +// - // // // // Return values: // -// * NewActiveConnDeviceContainer: +// * NewActiveConnDeviceContainer: // (related state variable: ActiveConnectionDeviceContainer) -// - -// - +// - +// - // // -// * NewActiveConnectionServiceID: +// * NewActiveConnectionServiceID: // (related state variable: ActiveConnectionServiceID) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetActiveConnection( NewActiveConnectionIndex uint16, ) ( NewActiveConnDeviceContainer string, - NewActiveConnectionServiceID string, - err error) { - request := _WANCommonInterfaceConfig1_GetActiveConnection_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetActiveConnection_Request + // BEGIN Marshal arguments into request. - NewActiveConnectionIndex: NewActiveConnectionIndex, - - } - var response _WANCommonInterfaceConfig1_GetActiveConnection_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetActiveConnection", &request, &response) - if err != nil { + if request.NewActiveConnectionIndex, err = soap.MarshalUi2(NewActiveConnectionIndex); err != nil { return } - NewActiveConnDeviceContainer = response.NewActiveConnDeviceContainer + // END Marshal arguments into request. - NewActiveConnectionServiceID = response.NewActiveConnectionServiceID + // Perform the SOAP call. + var response _WANCommonInterfaceConfig1_GetActiveConnection_Response + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetActiveConnection", &request, &response); err != nil { + return + } + // BEGIN Unmarshal arguments from response. + + if NewActiveConnDeviceContainer, err = soap.UnmarshalString(response.NewActiveConnDeviceContainer); err != nil { + return + } + + if NewActiveConnectionServiceID, err = soap.UnmarshalString(response.NewActiveConnectionServiceID); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANDSLLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANDSLLinkConfig:1". type WANDSLLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANDSLLinkConfig1_SetDSLLinkType_Request is the XML structure for the input arguments for action SetDSLLinkType. type _WANDSLLinkConfig1_SetDSLLinkType_Request struct { NewLinkType string } // _WANDSLLinkConfig1_SetDSLLinkType_Response is the XML structure for the output arguments for action SetDSLLinkType. -type _WANDSLLinkConfig1_SetDSLLinkType_Response struct {} +type _WANDSLLinkConfig1_SetDSLLinkType_Response struct{} // SetDSLLinkType action. // Arguments: // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - -// - +// - +// - // // // @@ -1930,28 +2053,32 @@ type _WANDSLLinkConfig1_SetDSLLinkType_Response struct {} // func (client *WANDSLLinkConfig1) SetDSLLinkType( NewLinkType string, -) ( err error) { - request := _WANDSLLinkConfig1_SetDSLLinkType_Request{ +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetDSLLinkType_Request + // BEGIN Marshal arguments into request. - NewLinkType: NewLinkType, - - } - var response _WANDSLLinkConfig1_SetDSLLinkType_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDSLLinkType", &request, &response) - if err != nil { + if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetDSLLinkType_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDSLLinkType", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetDSLLinkInfo_Request is the XML structure for the input arguments for action GetDSLLinkInfo. -type _WANDSLLinkConfig1_GetDSLLinkInfo_Request struct {} +type _WANDSLLinkConfig1_GetDSLLinkInfo_Request struct{} // _WANDSLLinkConfig1_GetDSLLinkInfo_Response is the XML structure for the output arguments for action GetDSLLinkInfo. type _WANDSLLinkConfig1_GetDSLLinkInfo_Response struct { @@ -1966,47 +2093,51 @@ type _WANDSLLinkConfig1_GetDSLLinkInfo_Response struct { // // Return values: // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - -// - +// - +// - // // -// * NewLinkStatus: +// * NewLinkStatus: // (related state variable: LinkStatus) -// - +// - // - allowed values: // Up|Down // // func (client *WANDSLLinkConfig1) GetDSLLinkInfo() ( NewLinkType string, - NewLinkStatus string, - err error) { - request := _WANDSLLinkConfig1_GetDSLLinkInfo_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetDSLLinkInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetDSLLinkInfo_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDSLLinkInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDSLLinkInfo", &request, &response); err != nil { return } - NewLinkType = response.NewLinkType + // BEGIN Unmarshal arguments from response. - NewLinkStatus = response.NewLinkStatus + if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil { + return + } + if NewLinkStatus, err = soap.UnmarshalString(response.NewLinkStatus); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetAutoConfig_Request is the XML structure for the input arguments for action GetAutoConfig. -type _WANDSLLinkConfig1_GetAutoConfig_Request struct {} +type _WANDSLLinkConfig1_GetAutoConfig_Request struct{} // _WANDSLLinkConfig1_GetAutoConfig_Response is the XML structure for the output arguments for action GetAutoConfig. type _WANDSLLinkConfig1_GetAutoConfig_Response struct { @@ -2019,36 +2150,39 @@ type _WANDSLLinkConfig1_GetAutoConfig_Response struct { // // Return values: // -// * NewAutoConfig: +// * NewAutoConfig: // (related state variable: AutoConfig) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetAutoConfig() ( - NewAutoConfig string, - err error) { - request := _WANDSLLinkConfig1_GetAutoConfig_Request{ + NewAutoConfig bool, + err error, +) { + var request _WANDSLLinkConfig1_GetAutoConfig_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetAutoConfig_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetAutoConfig", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetAutoConfig", &request, &response); err != nil { return } - NewAutoConfig = response.NewAutoConfig + // BEGIN Unmarshal arguments from response. + if NewAutoConfig, err = soap.UnmarshalBoolean(response.NewAutoConfig); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetModulationType_Request is the XML structure for the input arguments for action GetModulationType. -type _WANDSLLinkConfig1_GetModulationType_Request struct {} +type _WANDSLLinkConfig1_GetModulationType_Request struct{} // _WANDSLLinkConfig1_GetModulationType_Response is the XML structure for the output arguments for action GetModulationType. type _WANDSLLinkConfig1_GetModulationType_Response struct { @@ -2061,49 +2195,52 @@ type _WANDSLLinkConfig1_GetModulationType_Response struct { // // Return values: // -// * NewModulationType: +// * NewModulationType: // (related state variable: ModulationType) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetModulationType() ( NewModulationType string, - err error) { - request := _WANDSLLinkConfig1_GetModulationType_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetModulationType_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetModulationType_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetModulationType", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetModulationType", &request, &response); err != nil { return } - NewModulationType = response.NewModulationType + // BEGIN Unmarshal arguments from response. + if NewModulationType, err = soap.UnmarshalString(response.NewModulationType); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_SetDestinationAddress_Request is the XML structure for the input arguments for action SetDestinationAddress. type _WANDSLLinkConfig1_SetDestinationAddress_Request struct { NewDestinationAddress string } // _WANDSLLinkConfig1_SetDestinationAddress_Response is the XML structure for the output arguments for action SetDestinationAddress. -type _WANDSLLinkConfig1_SetDestinationAddress_Response struct {} +type _WANDSLLinkConfig1_SetDestinationAddress_Response struct{} // SetDestinationAddress action. // Arguments: // -// * NewDestinationAddress: +// * NewDestinationAddress: // (related state variable: DestinationAddress) -// - -// - +// - +// - // // // @@ -2111,28 +2248,32 @@ type _WANDSLLinkConfig1_SetDestinationAddress_Response struct {} // func (client *WANDSLLinkConfig1) SetDestinationAddress( NewDestinationAddress string, -) ( err error) { - request := _WANDSLLinkConfig1_SetDestinationAddress_Request{ +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetDestinationAddress_Request + // BEGIN Marshal arguments into request. - NewDestinationAddress: NewDestinationAddress, - - } - var response _WANDSLLinkConfig1_SetDestinationAddress_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDestinationAddress", &request, &response) - if err != nil { + if request.NewDestinationAddress, err = soap.MarshalString(NewDestinationAddress); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetDestinationAddress_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDestinationAddress", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetDestinationAddress_Request is the XML structure for the input arguments for action GetDestinationAddress. -type _WANDSLLinkConfig1_GetDestinationAddress_Request struct {} +type _WANDSLLinkConfig1_GetDestinationAddress_Request struct{} // _WANDSLLinkConfig1_GetDestinationAddress_Response is the XML structure for the output arguments for action GetDestinationAddress. type _WANDSLLinkConfig1_GetDestinationAddress_Response struct { @@ -2145,49 +2286,52 @@ type _WANDSLLinkConfig1_GetDestinationAddress_Response struct { // // Return values: // -// * NewDestinationAddress: +// * NewDestinationAddress: // (related state variable: DestinationAddress) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetDestinationAddress() ( NewDestinationAddress string, - err error) { - request := _WANDSLLinkConfig1_GetDestinationAddress_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetDestinationAddress_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetDestinationAddress_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDestinationAddress", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDestinationAddress", &request, &response); err != nil { return } - NewDestinationAddress = response.NewDestinationAddress + // BEGIN Unmarshal arguments from response. + if NewDestinationAddress, err = soap.UnmarshalString(response.NewDestinationAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_SetATMEncapsulation_Request is the XML structure for the input arguments for action SetATMEncapsulation. type _WANDSLLinkConfig1_SetATMEncapsulation_Request struct { NewATMEncapsulation string } // _WANDSLLinkConfig1_SetATMEncapsulation_Response is the XML structure for the output arguments for action SetATMEncapsulation. -type _WANDSLLinkConfig1_SetATMEncapsulation_Response struct {} +type _WANDSLLinkConfig1_SetATMEncapsulation_Response struct{} // SetATMEncapsulation action. // Arguments: // -// * NewATMEncapsulation: +// * NewATMEncapsulation: // (related state variable: ATMEncapsulation) -// - -// - +// - +// - // // // @@ -2195,28 +2339,32 @@ type _WANDSLLinkConfig1_SetATMEncapsulation_Response struct {} // func (client *WANDSLLinkConfig1) SetATMEncapsulation( NewATMEncapsulation string, -) ( err error) { - request := _WANDSLLinkConfig1_SetATMEncapsulation_Request{ +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetATMEncapsulation_Request + // BEGIN Marshal arguments into request. - NewATMEncapsulation: NewATMEncapsulation, - - } - var response _WANDSLLinkConfig1_SetATMEncapsulation_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetATMEncapsulation", &request, &response) - if err != nil { + if request.NewATMEncapsulation, err = soap.MarshalString(NewATMEncapsulation); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetATMEncapsulation_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetATMEncapsulation", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetATMEncapsulation_Request is the XML structure for the input arguments for action GetATMEncapsulation. -type _WANDSLLinkConfig1_GetATMEncapsulation_Request struct {} +type _WANDSLLinkConfig1_GetATMEncapsulation_Request struct{} // _WANDSLLinkConfig1_GetATMEncapsulation_Response is the XML structure for the output arguments for action GetATMEncapsulation. type _WANDSLLinkConfig1_GetATMEncapsulation_Response struct { @@ -2229,78 +2377,85 @@ type _WANDSLLinkConfig1_GetATMEncapsulation_Response struct { // // Return values: // -// * NewATMEncapsulation: +// * NewATMEncapsulation: // (related state variable: ATMEncapsulation) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetATMEncapsulation() ( NewATMEncapsulation string, - err error) { - request := _WANDSLLinkConfig1_GetATMEncapsulation_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetATMEncapsulation_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetATMEncapsulation_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetATMEncapsulation", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetATMEncapsulation", &request, &response); err != nil { return } - NewATMEncapsulation = response.NewATMEncapsulation + // BEGIN Unmarshal arguments from response. + if NewATMEncapsulation, err = soap.UnmarshalString(response.NewATMEncapsulation); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_SetFCSPreserved_Request is the XML structure for the input arguments for action SetFCSPreserved. type _WANDSLLinkConfig1_SetFCSPreserved_Request struct { NewFCSPreserved string } // _WANDSLLinkConfig1_SetFCSPreserved_Response is the XML structure for the output arguments for action SetFCSPreserved. -type _WANDSLLinkConfig1_SetFCSPreserved_Response struct {} +type _WANDSLLinkConfig1_SetFCSPreserved_Response struct{} // SetFCSPreserved action. // Arguments: // -// * NewFCSPreserved: +// * NewFCSPreserved: // (related state variable: FCSPreserved) -// - -// - +// - +// - // // // // Return values: // func (client *WANDSLLinkConfig1) SetFCSPreserved( - NewFCSPreserved string, -) ( err error) { - request := _WANDSLLinkConfig1_SetFCSPreserved_Request{ + NewFCSPreserved bool, +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetFCSPreserved_Request + // BEGIN Marshal arguments into request. - NewFCSPreserved: NewFCSPreserved, - - } - var response _WANDSLLinkConfig1_SetFCSPreserved_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetFCSPreserved", &request, &response) - if err != nil { + if request.NewFCSPreserved, err = soap.MarshalBoolean(NewFCSPreserved); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetFCSPreserved_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetFCSPreserved", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetFCSPreserved_Request is the XML structure for the input arguments for action GetFCSPreserved. -type _WANDSLLinkConfig1_GetFCSPreserved_Request struct {} +type _WANDSLLinkConfig1_GetFCSPreserved_Request struct{} // _WANDSLLinkConfig1_GetFCSPreserved_Response is the XML structure for the output arguments for action GetFCSPreserved. type _WANDSLLinkConfig1_GetFCSPreserved_Response struct { @@ -2313,46 +2468,44 @@ type _WANDSLLinkConfig1_GetFCSPreserved_Response struct { // // Return values: // -// * NewFCSPreserved: +// * NewFCSPreserved: // (related state variable: FCSPreserved) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetFCSPreserved() ( - NewFCSPreserved string, - err error) { - request := _WANDSLLinkConfig1_GetFCSPreserved_Request{ + NewFCSPreserved bool, + err error, +) { + var request _WANDSLLinkConfig1_GetFCSPreserved_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetFCSPreserved_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetFCSPreserved", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetFCSPreserved", &request, &response); err != nil { return } - NewFCSPreserved = response.NewFCSPreserved + // BEGIN Unmarshal arguments from response. + if NewFCSPreserved, err = soap.UnmarshalBoolean(response.NewFCSPreserved); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANEthernetLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1". type WANEthernetLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request is the XML structure for the input arguments for action GetEthernetLinkStatus. -type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request struct {} +type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request struct{} // _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response is the XML structure for the output arguments for action GetEthernetLinkStatus. type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response struct { @@ -2365,60 +2518,58 @@ type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response struct { // // Return values: // -// * NewEthernetLinkStatus: +// * NewEthernetLinkStatus: // (related state variable: EthernetLinkStatus) -// - +// - // - allowed values: // Up|Down // // func (client *WANEthernetLinkConfig1) GetEthernetLinkStatus() ( NewEthernetLinkStatus string, - err error) { - request := _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request{ + err error, +) { + var request _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response - err = client.SOAPClient.PerformAction(URN_WANEthernetLinkConfig_1, "GetEthernetLinkStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANEthernetLinkConfig_1, "GetEthernetLinkStatus", &request, &response); err != nil { return } - NewEthernetLinkStatus = response.NewEthernetLinkStatus + // BEGIN Unmarshal arguments from response. + if NewEthernetLinkStatus, err = soap.UnmarshalString(response.NewEthernetLinkStatus); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANIPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:1". type WANIPConnection1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANIPConnection1_SetConnectionType_Request is the XML structure for the input arguments for action SetConnectionType. type _WANIPConnection1_SetConnectionType_Request struct { NewConnectionType string } // _WANIPConnection1_SetConnectionType_Response is the XML structure for the output arguments for action SetConnectionType. -type _WANIPConnection1_SetConnectionType_Response struct {} +type _WANIPConnection1_SetConnectionType_Response struct{} // SetConnectionType action. // Arguments: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // // @@ -2426,28 +2577,32 @@ type _WANIPConnection1_SetConnectionType_Response struct {} // func (client *WANIPConnection1) SetConnectionType( NewConnectionType string, -) ( err error) { - request := _WANIPConnection1_SetConnectionType_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetConnectionType_Request + // BEGIN Marshal arguments into request. - NewConnectionType: NewConnectionType, - - } - var response _WANIPConnection1_SetConnectionType_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetConnectionType", &request, &response) - if err != nil { + if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetConnectionType_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetConnectionType", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetConnectionTypeInfo_Request is the XML structure for the input arguments for action GetConnectionTypeInfo. -type _WANIPConnection1_GetConnectionTypeInfo_Request struct {} +type _WANIPConnection1_GetConnectionTypeInfo_Request struct{} // _WANIPConnection1_GetConnectionTypeInfo_Response is the XML structure for the output arguments for action GetConnectionTypeInfo. type _WANIPConnection1_GetConnectionTypeInfo_Response struct { @@ -2462,50 +2617,54 @@ type _WANIPConnection1_GetConnectionTypeInfo_Response struct { // // Return values: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // -// * NewPossibleConnectionTypes: +// * NewPossibleConnectionTypes: // (related state variable: PossibleConnectionTypes) -// - +// - // - allowed values: // Unconfigured|IP_Routed|IP_Bridged // // func (client *WANIPConnection1) GetConnectionTypeInfo() ( NewConnectionType string, - NewPossibleConnectionTypes string, - err error) { - request := _WANIPConnection1_GetConnectionTypeInfo_Request{ + err error, +) { + var request _WANIPConnection1_GetConnectionTypeInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetConnectionTypeInfo_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetConnectionTypeInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetConnectionTypeInfo", &request, &response); err != nil { return } - NewConnectionType = response.NewConnectionType + // BEGIN Unmarshal arguments from response. - NewPossibleConnectionTypes = response.NewPossibleConnectionTypes + if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil { + return + } + if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_RequestConnection_Request is the XML structure for the input arguments for action RequestConnection. -type _WANIPConnection1_RequestConnection_Request struct {} +type _WANIPConnection1_RequestConnection_Request struct{} // _WANIPConnection1_RequestConnection_Response is the XML structure for the output arguments for action RequestConnection. -type _WANIPConnection1_RequestConnection_Response struct {} +type _WANIPConnection1_RequestConnection_Response struct{} // RequestConnection action. // Arguments: @@ -2513,29 +2672,31 @@ type _WANIPConnection1_RequestConnection_Response struct {} // // Return values: // -func (client *WANIPConnection1) RequestConnection() ( err error) { - request := _WANIPConnection1_RequestConnection_Request{ +func (client *WANIPConnection1) RequestConnection() ( + err error, +) { + var request _WANIPConnection1_RequestConnection_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_RequestConnection_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestConnection", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestConnection", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_RequestTermination_Request is the XML structure for the input arguments for action RequestTermination. -type _WANIPConnection1_RequestTermination_Request struct {} +type _WANIPConnection1_RequestTermination_Request struct{} // _WANIPConnection1_RequestTermination_Response is the XML structure for the output arguments for action RequestTermination. -type _WANIPConnection1_RequestTermination_Response struct {} +type _WANIPConnection1_RequestTermination_Response struct{} // RequestTermination action. // Arguments: @@ -2543,29 +2704,31 @@ type _WANIPConnection1_RequestTermination_Response struct {} // // Return values: // -func (client *WANIPConnection1) RequestTermination() ( err error) { - request := _WANIPConnection1_RequestTermination_Request{ +func (client *WANIPConnection1) RequestTermination() ( + err error, +) { + var request _WANIPConnection1_RequestTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_RequestTermination_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_ForceTermination_Request is the XML structure for the input arguments for action ForceTermination. -type _WANIPConnection1_ForceTermination_Request struct {} +type _WANIPConnection1_ForceTermination_Request struct{} // _WANIPConnection1_ForceTermination_Response is the XML structure for the output arguments for action ForceTermination. -type _WANIPConnection1_ForceTermination_Response struct {} +type _WANIPConnection1_ForceTermination_Response struct{} // ForceTermination action. // Arguments: @@ -2573,39 +2736,41 @@ type _WANIPConnection1_ForceTermination_Response struct {} // // Return values: // -func (client *WANIPConnection1) ForceTermination() ( err error) { - request := _WANIPConnection1_ForceTermination_Request{ +func (client *WANIPConnection1) ForceTermination() ( + err error, +) { + var request _WANIPConnection1_ForceTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_ForceTermination_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "ForceTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "ForceTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_SetAutoDisconnectTime_Request is the XML structure for the input arguments for action SetAutoDisconnectTime. type _WANIPConnection1_SetAutoDisconnectTime_Request struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // _WANIPConnection1_SetAutoDisconnectTime_Response is the XML structure for the output arguments for action SetAutoDisconnectTime. -type _WANIPConnection1_SetAutoDisconnectTime_Response struct {} +type _WANIPConnection1_SetAutoDisconnectTime_Response struct{} // SetAutoDisconnectTime action. // Arguments: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // // @@ -2613,41 +2778,45 @@ type _WANIPConnection1_SetAutoDisconnectTime_Response struct {} // func (client *WANIPConnection1) SetAutoDisconnectTime( NewAutoDisconnectTime uint32, -) ( err error) { - request := _WANIPConnection1_SetAutoDisconnectTime_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewAutoDisconnectTime: NewAutoDisconnectTime, - - } - var response _WANIPConnection1_SetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetAutoDisconnectTime", &request, &response) - if err != nil { + if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetAutoDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetAutoDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_SetIdleDisconnectTime_Request is the XML structure for the input arguments for action SetIdleDisconnectTime. type _WANIPConnection1_SetIdleDisconnectTime_Request struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // _WANIPConnection1_SetIdleDisconnectTime_Response is the XML structure for the output arguments for action SetIdleDisconnectTime. -type _WANIPConnection1_SetIdleDisconnectTime_Response struct {} +type _WANIPConnection1_SetIdleDisconnectTime_Response struct{} // SetIdleDisconnectTime action. // Arguments: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // // @@ -2655,41 +2824,45 @@ type _WANIPConnection1_SetIdleDisconnectTime_Response struct {} // func (client *WANIPConnection1) SetIdleDisconnectTime( NewIdleDisconnectTime uint32, -) ( err error) { - request := _WANIPConnection1_SetIdleDisconnectTime_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewIdleDisconnectTime: NewIdleDisconnectTime, - - } - var response _WANIPConnection1_SetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetIdleDisconnectTime", &request, &response) - if err != nil { + if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetIdleDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetIdleDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_SetWarnDisconnectDelay_Request is the XML structure for the input arguments for action SetWarnDisconnectDelay. type _WANIPConnection1_SetWarnDisconnectDelay_Request struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // _WANIPConnection1_SetWarnDisconnectDelay_Response is the XML structure for the output arguments for action SetWarnDisconnectDelay. -type _WANIPConnection1_SetWarnDisconnectDelay_Response struct {} +type _WANIPConnection1_SetWarnDisconnectDelay_Response struct{} // SetWarnDisconnectDelay action. // Arguments: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // // @@ -2697,28 +2870,32 @@ type _WANIPConnection1_SetWarnDisconnectDelay_Response struct {} // func (client *WANIPConnection1) SetWarnDisconnectDelay( NewWarnDisconnectDelay uint32, -) ( err error) { - request := _WANIPConnection1_SetWarnDisconnectDelay_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - NewWarnDisconnectDelay: NewWarnDisconnectDelay, - - } - var response _WANIPConnection1_SetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetWarnDisconnectDelay", &request, &response) - if err != nil { + if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetWarnDisconnectDelay_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetWarnDisconnectDelay", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetStatusInfo_Request is the XML structure for the input arguments for action GetStatusInfo. -type _WANIPConnection1_GetStatusInfo_Request struct {} +type _WANIPConnection1_GetStatusInfo_Request struct{} // _WANIPConnection1_GetStatusInfo_Response is the XML structure for the output arguments for action GetStatusInfo. type _WANIPConnection1_GetStatusInfo_Response struct { @@ -2726,7 +2903,7 @@ type _WANIPConnection1_GetStatusInfo_Response struct { NewLastConnectionError string - NewUptime uint32 + NewUptime string } // GetStatusInfo action. @@ -2735,62 +2912,67 @@ type _WANIPConnection1_GetStatusInfo_Response struct { // // Return values: // -// * NewConnectionStatus: +// * NewConnectionStatus: // (related state variable: ConnectionStatus) -// - +// - // - allowed values: // Unconfigured|Connected|Disconnected // // -// * NewLastConnectionError: +// * NewLastConnectionError: // (related state variable: LastConnectionError) -// - +// - // - allowed values: // ERROR_NONE // // -// * NewUptime: +// * NewUptime: // (related state variable: Uptime) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetStatusInfo() ( NewConnectionStatus string, - NewLastConnectionError string, - NewUptime uint32, - err error) { - request := _WANIPConnection1_GetStatusInfo_Request{ + err error, +) { + var request _WANIPConnection1_GetStatusInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetStatusInfo_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetStatusInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetStatusInfo", &request, &response); err != nil { return } - NewConnectionStatus = response.NewConnectionStatus + // BEGIN Unmarshal arguments from response. - NewLastConnectionError = response.NewLastConnectionError + if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil { + return + } - NewUptime = response.NewUptime + if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil { + return + } + if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetAutoDisconnectTime_Request is the XML structure for the input arguments for action GetAutoDisconnectTime. -type _WANIPConnection1_GetAutoDisconnectTime_Request struct {} +type _WANIPConnection1_GetAutoDisconnectTime_Request struct{} // _WANIPConnection1_GetAutoDisconnectTime_Response is the XML structure for the output arguments for action GetAutoDisconnectTime. type _WANIPConnection1_GetAutoDisconnectTime_Response struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // GetAutoDisconnectTime action. @@ -2799,40 +2981,43 @@ type _WANIPConnection1_GetAutoDisconnectTime_Response struct { // // Return values: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetAutoDisconnectTime() ( NewAutoDisconnectTime uint32, - err error) { - request := _WANIPConnection1_GetAutoDisconnectTime_Request{ + err error, +) { + var request _WANIPConnection1_GetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetAutoDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetAutoDisconnectTime", &request, &response); err != nil { return } - NewAutoDisconnectTime = response.NewAutoDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetIdleDisconnectTime_Request is the XML structure for the input arguments for action GetIdleDisconnectTime. -type _WANIPConnection1_GetIdleDisconnectTime_Request struct {} +type _WANIPConnection1_GetIdleDisconnectTime_Request struct{} // _WANIPConnection1_GetIdleDisconnectTime_Response is the XML structure for the output arguments for action GetIdleDisconnectTime. type _WANIPConnection1_GetIdleDisconnectTime_Response struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // GetIdleDisconnectTime action. @@ -2841,40 +3026,43 @@ type _WANIPConnection1_GetIdleDisconnectTime_Response struct { // // Return values: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetIdleDisconnectTime() ( NewIdleDisconnectTime uint32, - err error) { - request := _WANIPConnection1_GetIdleDisconnectTime_Request{ + err error, +) { + var request _WANIPConnection1_GetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetIdleDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetIdleDisconnectTime", &request, &response); err != nil { return } - NewIdleDisconnectTime = response.NewIdleDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetWarnDisconnectDelay_Request is the XML structure for the input arguments for action GetWarnDisconnectDelay. -type _WANIPConnection1_GetWarnDisconnectDelay_Request struct {} +type _WANIPConnection1_GetWarnDisconnectDelay_Request struct{} // _WANIPConnection1_GetWarnDisconnectDelay_Response is the XML structure for the output arguments for action GetWarnDisconnectDelay. type _WANIPConnection1_GetWarnDisconnectDelay_Response struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // GetWarnDisconnectDelay action. @@ -2883,36 +3071,39 @@ type _WANIPConnection1_GetWarnDisconnectDelay_Response struct { // // Return values: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetWarnDisconnectDelay() ( NewWarnDisconnectDelay uint32, - err error) { - request := _WANIPConnection1_GetWarnDisconnectDelay_Request{ + err error, +) { + var request _WANIPConnection1_GetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetWarnDisconnectDelay", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetWarnDisconnectDelay", &request, &response); err != nil { return } - NewWarnDisconnectDelay = response.NewWarnDisconnectDelay + // BEGIN Unmarshal arguments from response. + if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetNATRSIPStatus_Request is the XML structure for the input arguments for action GetNATRSIPStatus. -type _WANIPConnection1_GetNATRSIPStatus_Request struct {} +type _WANIPConnection1_GetNATRSIPStatus_Request struct{} // _WANIPConnection1_GetNATRSIPStatus_Response is the XML structure for the output arguments for action GetNATRSIPStatus. type _WANIPConnection1_GetNATRSIPStatus_Response struct { @@ -2927,58 +3118,62 @@ type _WANIPConnection1_GetNATRSIPStatus_Response struct { // // Return values: // -// * NewRSIPAvailable: +// * NewRSIPAvailable: // (related state variable: RSIPAvailable) -// - -// - +// - +// - // // -// * NewNATEnabled: +// * NewNATEnabled: // (related state variable: NATEnabled) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetNATRSIPStatus() ( - NewRSIPAvailable string, + NewRSIPAvailable bool, + NewNATEnabled bool, + err error, +) { + var request _WANIPConnection1_GetNATRSIPStatus_Request + // BEGIN Marshal arguments into request. - NewNATEnabled string, - err error) { - request := _WANIPConnection1_GetNATRSIPStatus_Request{ + // END Marshal arguments into request. - } + // Perform the SOAP call. var response _WANIPConnection1_GetNATRSIPStatus_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetNATRSIPStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetNATRSIPStatus", &request, &response); err != nil { return } - NewRSIPAvailable = response.NewRSIPAvailable + // BEGIN Unmarshal arguments from response. - NewNATEnabled = response.NewNATEnabled + if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil { + return + } + if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetGenericPortMappingEntry_Request is the XML structure for the input arguments for action GetGenericPortMappingEntry. type _WANIPConnection1_GetGenericPortMappingEntry_Request struct { - NewPortMappingIndex uint16 + NewPortMappingIndex string } // _WANIPConnection1_GetGenericPortMappingEntry_Response is the XML structure for the output arguments for action GetGenericPortMappingEntry. type _WANIPConnection1_GetGenericPortMappingEntry_Response struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -2986,136 +3181,148 @@ type _WANIPConnection1_GetGenericPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetGenericPortMappingEntry action. // Arguments: // -// * NewPortMappingIndex: +// * NewPortMappingIndex: // (related state variable: PortMappingNumberOfEntries) -// - -// - +// - +// - // // // // Return values: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetGenericPortMappingEntry( NewPortMappingIndex uint16, ) ( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANIPConnection1_GetGenericPortMappingEntry_Request{ + err error, +) { + var request _WANIPConnection1_GetGenericPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewPortMappingIndex: NewPortMappingIndex, - - } - var response _WANIPConnection1_GetGenericPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetGenericPortMappingEntry", &request, &response) - if err != nil { + if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil { return } - NewRemoteHost = response.NewRemoteHost + // END Marshal arguments into request. - NewExternalPort = response.NewExternalPort + // Perform the SOAP call. + var response _WANIPConnection1_GetGenericPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetGenericPortMappingEntry", &request, &response); err != nil { + return + } - NewProtocol = response.NewProtocol + // BEGIN Unmarshal arguments from response. - NewInternalPort = response.NewInternalPort + if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil { + return + } - NewEnabled = response.NewEnabled + if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil { + return + } - NewPortMappingDescription = response.NewPortMappingDescription + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetSpecificPortMappingEntry_Request is the XML structure for the input arguments for action GetSpecificPortMappingEntry. type _WANIPConnection1_GetSpecificPortMappingEntry_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANIPConnection1_GetSpecificPortMappingEntry_Response is the XML structure for the output arguments for action GetSpecificPortMappingEntry. type _WANIPConnection1_GetSpecificPortMappingEntry_Response struct { - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -3123,27 +3330,27 @@ type _WANIPConnection1_GetSpecificPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetSpecificPortMappingEntry action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -3151,95 +3358,106 @@ type _WANIPConnection1_GetSpecificPortMappingEntry_Response struct { // // Return values: // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetSpecificPortMappingEntry( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, ) ( NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANIPConnection1_GetSpecificPortMappingEntry_Request{ + err error, +) { + var request _WANIPConnection1_GetSpecificPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANIPConnection1_GetSpecificPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetSpecificPortMappingEntry", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } - NewInternalPort = response.NewInternalPort + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } - NewEnabled = response.NewEnabled + // END Marshal arguments into request. - NewPortMappingDescription = response.NewPortMappingDescription + // Perform the SOAP call. + var response _WANIPConnection1_GetSpecificPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetSpecificPortMappingEntry", &request, &response); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + // BEGIN Unmarshal arguments from response. + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } + + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_AddPortMapping_Request is the XML structure for the input arguments for action AddPortMapping. type _WANIPConnection1_AddPortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -3247,62 +3465,62 @@ type _WANIPConnection1_AddPortMapping_Request struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // _WANIPConnection1_AddPortMapping_Response is the XML structure for the output arguments for action AddPortMapping. -type _WANIPConnection1_AddPortMapping_Response struct {} +type _WANIPConnection1_AddPortMapping_Response struct{} // AddPortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // // @@ -3310,84 +3528,95 @@ type _WANIPConnection1_AddPortMapping_Response struct {} // func (client *WANIPConnection1) AddPortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, -) ( err error) { - request := _WANIPConnection1_AddPortMapping_Request{ +) ( + err error, +) { + var request _WANIPConnection1_AddPortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - NewInternalPort: NewInternalPort, - - NewInternalClient: NewInternalClient, - - NewEnabled: NewEnabled, - - NewPortMappingDescription: NewPortMappingDescription, - - NewLeaseDuration: NewLeaseDuration, - - } - var response _WANIPConnection1_AddPortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "AddPortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil { + return + } + + if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil { + return + } + + if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil { + return + } + + if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil { + return + } + + if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_AddPortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "AddPortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_DeletePortMapping_Request is the XML structure for the input arguments for action DeletePortMapping. type _WANIPConnection1_DeletePortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANIPConnection1_DeletePortMapping_Response is the XML structure for the output arguments for action DeletePortMapping. -type _WANIPConnection1_DeletePortMapping_Response struct {} +type _WANIPConnection1_DeletePortMapping_Response struct{} // DeletePortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -3397,36 +3626,42 @@ type _WANIPConnection1_DeletePortMapping_Response struct {} // func (client *WANIPConnection1) DeletePortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, -) ( err error) { - request := _WANIPConnection1_DeletePortMapping_Request{ +) ( + err error, +) { + var request _WANIPConnection1_DeletePortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANIPConnection1_DeletePortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "DeletePortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_DeletePortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "DeletePortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetExternalIPAddress_Request is the XML structure for the input arguments for action GetExternalIPAddress. -type _WANIPConnection1_GetExternalIPAddress_Request struct {} +type _WANIPConnection1_GetExternalIPAddress_Request struct{} // _WANIPConnection1_GetExternalIPAddress_Response is the XML structure for the output arguments for action GetExternalIPAddress. type _WANIPConnection1_GetExternalIPAddress_Response struct { @@ -3439,44 +3674,42 @@ type _WANIPConnection1_GetExternalIPAddress_Response struct { // // Return values: // -// * NewExternalIPAddress: +// * NewExternalIPAddress: // (related state variable: ExternalIPAddress) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetExternalIPAddress() ( NewExternalIPAddress string, - err error) { - request := _WANIPConnection1_GetExternalIPAddress_Request{ + err error, +) { + var request _WANIPConnection1_GetExternalIPAddress_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetExternalIPAddress_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetExternalIPAddress", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetExternalIPAddress", &request, &response); err != nil { return } - NewExternalIPAddress = response.NewExternalIPAddress + // BEGIN Unmarshal arguments from response. + if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANPOTSLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1". type WANPOTSLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANPOTSLinkConfig1_SetISPInfo_Request is the XML structure for the input arguments for action SetISPInfo. type _WANPOTSLinkConfig1_SetISPInfo_Request struct { NewISPPhoneNumber string @@ -3487,26 +3720,26 @@ type _WANPOTSLinkConfig1_SetISPInfo_Request struct { } // _WANPOTSLinkConfig1_SetISPInfo_Response is the XML structure for the output arguments for action SetISPInfo. -type _WANPOTSLinkConfig1_SetISPInfo_Response struct {} +type _WANPOTSLinkConfig1_SetISPInfo_Response struct{} // SetISPInfo action. // Arguments: // -// * NewISPPhoneNumber: +// * NewISPPhoneNumber: // (related state variable: ISPPhoneNumber) -// - -// - +// - +// - // // -// * NewISPInfo: +// * NewISPInfo: // (related state variable: ISPInfo) -// - -// - +// - +// - // // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - +// - // - allowed values: // PPP_Dialup // @@ -3516,57 +3749,63 @@ type _WANPOTSLinkConfig1_SetISPInfo_Response struct {} // func (client *WANPOTSLinkConfig1) SetISPInfo( NewISPPhoneNumber string, - NewISPInfo string, - NewLinkType string, -) ( err error) { - request := _WANPOTSLinkConfig1_SetISPInfo_Request{ +) ( + err error, +) { + var request _WANPOTSLinkConfig1_SetISPInfo_Request + // BEGIN Marshal arguments into request. - NewISPPhoneNumber: NewISPPhoneNumber, - - NewISPInfo: NewISPInfo, - - NewLinkType: NewLinkType, - - } - var response _WANPOTSLinkConfig1_SetISPInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetISPInfo", &request, &response) - if err != nil { + if request.NewISPPhoneNumber, err = soap.MarshalString(NewISPPhoneNumber); err != nil { return } + if request.NewISPInfo, err = soap.MarshalString(NewISPInfo); err != nil { + return + } + + if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPOTSLinkConfig1_SetISPInfo_Response + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetISPInfo", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_SetCallRetryInfo_Request is the XML structure for the input arguments for action SetCallRetryInfo. type _WANPOTSLinkConfig1_SetCallRetryInfo_Request struct { - NewNumberOfRetries uint32 + NewNumberOfRetries string - NewDelayBetweenRetries uint32 + NewDelayBetweenRetries string } // _WANPOTSLinkConfig1_SetCallRetryInfo_Response is the XML structure for the output arguments for action SetCallRetryInfo. -type _WANPOTSLinkConfig1_SetCallRetryInfo_Response struct {} +type _WANPOTSLinkConfig1_SetCallRetryInfo_Response struct{} // SetCallRetryInfo action. // Arguments: // -// * NewNumberOfRetries: +// * NewNumberOfRetries: // (related state variable: NumberOfRetries) -// - -// - +// - +// - // // -// * NewDelayBetweenRetries: +// * NewDelayBetweenRetries: // (related state variable: DelayBetweenRetries) -// - -// - +// - +// - // // // @@ -3574,32 +3813,37 @@ type _WANPOTSLinkConfig1_SetCallRetryInfo_Response struct {} // func (client *WANPOTSLinkConfig1) SetCallRetryInfo( NewNumberOfRetries uint32, - NewDelayBetweenRetries uint32, -) ( err error) { - request := _WANPOTSLinkConfig1_SetCallRetryInfo_Request{ +) ( + err error, +) { + var request _WANPOTSLinkConfig1_SetCallRetryInfo_Request + // BEGIN Marshal arguments into request. - NewNumberOfRetries: NewNumberOfRetries, - - NewDelayBetweenRetries: NewDelayBetweenRetries, - - } - var response _WANPOTSLinkConfig1_SetCallRetryInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetCallRetryInfo", &request, &response) - if err != nil { + if request.NewNumberOfRetries, err = soap.MarshalUi4(NewNumberOfRetries); err != nil { return } + if request.NewDelayBetweenRetries, err = soap.MarshalUi4(NewDelayBetweenRetries); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPOTSLinkConfig1_SetCallRetryInfo_Response + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetCallRetryInfo", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetISPInfo_Request is the XML structure for the input arguments for action GetISPInfo. -type _WANPOTSLinkConfig1_GetISPInfo_Request struct {} +type _WANPOTSLinkConfig1_GetISPInfo_Request struct{} // _WANPOTSLinkConfig1_GetISPInfo_Response is the XML structure for the output arguments for action GetISPInfo. type _WANPOTSLinkConfig1_GetISPInfo_Response struct { @@ -3616,63 +3860,68 @@ type _WANPOTSLinkConfig1_GetISPInfo_Response struct { // // Return values: // -// * NewISPPhoneNumber: +// * NewISPPhoneNumber: // (related state variable: ISPPhoneNumber) -// - -// - +// - +// - // // -// * NewISPInfo: +// * NewISPInfo: // (related state variable: ISPInfo) -// - -// - +// - +// - // // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - +// - // - allowed values: // PPP_Dialup // // func (client *WANPOTSLinkConfig1) GetISPInfo() ( NewISPPhoneNumber string, - NewISPInfo string, - NewLinkType string, - err error) { - request := _WANPOTSLinkConfig1_GetISPInfo_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetISPInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetISPInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetISPInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetISPInfo", &request, &response); err != nil { return } - NewISPPhoneNumber = response.NewISPPhoneNumber + // BEGIN Unmarshal arguments from response. - NewISPInfo = response.NewISPInfo + if NewISPPhoneNumber, err = soap.UnmarshalString(response.NewISPPhoneNumber); err != nil { + return + } - NewLinkType = response.NewLinkType + if NewISPInfo, err = soap.UnmarshalString(response.NewISPInfo); err != nil { + return + } + if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetCallRetryInfo_Request is the XML structure for the input arguments for action GetCallRetryInfo. -type _WANPOTSLinkConfig1_GetCallRetryInfo_Request struct {} +type _WANPOTSLinkConfig1_GetCallRetryInfo_Request struct{} // _WANPOTSLinkConfig1_GetCallRetryInfo_Response is the XML structure for the output arguments for action GetCallRetryInfo. type _WANPOTSLinkConfig1_GetCallRetryInfo_Response struct { - NewNumberOfRetries uint32 + NewNumberOfRetries string - NewDelayBetweenRetries uint32 + NewDelayBetweenRetries string } // GetCallRetryInfo action. @@ -3681,46 +3930,50 @@ type _WANPOTSLinkConfig1_GetCallRetryInfo_Response struct { // // Return values: // -// * NewNumberOfRetries: +// * NewNumberOfRetries: // (related state variable: NumberOfRetries) -// - -// - +// - +// - // // -// * NewDelayBetweenRetries: +// * NewDelayBetweenRetries: // (related state variable: DelayBetweenRetries) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetCallRetryInfo() ( NewNumberOfRetries uint32, - NewDelayBetweenRetries uint32, - err error) { - request := _WANPOTSLinkConfig1_GetCallRetryInfo_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetCallRetryInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetCallRetryInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetCallRetryInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetCallRetryInfo", &request, &response); err != nil { return } - NewNumberOfRetries = response.NewNumberOfRetries + // BEGIN Unmarshal arguments from response. - NewDelayBetweenRetries = response.NewDelayBetweenRetries + if NewNumberOfRetries, err = soap.UnmarshalUi4(response.NewNumberOfRetries); err != nil { + return + } + if NewDelayBetweenRetries, err = soap.UnmarshalUi4(response.NewDelayBetweenRetries); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetFclass_Request is the XML structure for the input arguments for action GetFclass. -type _WANPOTSLinkConfig1_GetFclass_Request struct {} +type _WANPOTSLinkConfig1_GetFclass_Request struct{} // _WANPOTSLinkConfig1_GetFclass_Response is the XML structure for the output arguments for action GetFclass. type _WANPOTSLinkConfig1_GetFclass_Response struct { @@ -3733,36 +3986,39 @@ type _WANPOTSLinkConfig1_GetFclass_Response struct { // // Return values: // -// * NewFclass: +// * NewFclass: // (related state variable: Fclass) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetFclass() ( NewFclass string, - err error) { - request := _WANPOTSLinkConfig1_GetFclass_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetFclass_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetFclass_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetFclass", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetFclass", &request, &response); err != nil { return } - NewFclass = response.NewFclass + // BEGIN Unmarshal arguments from response. + if NewFclass, err = soap.UnmarshalString(response.NewFclass); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetDataModulationSupported_Request is the XML structure for the input arguments for action GetDataModulationSupported. -type _WANPOTSLinkConfig1_GetDataModulationSupported_Request struct {} +type _WANPOTSLinkConfig1_GetDataModulationSupported_Request struct{} // _WANPOTSLinkConfig1_GetDataModulationSupported_Response is the XML structure for the output arguments for action GetDataModulationSupported. type _WANPOTSLinkConfig1_GetDataModulationSupported_Response struct { @@ -3775,36 +4031,39 @@ type _WANPOTSLinkConfig1_GetDataModulationSupported_Response struct { // // Return values: // -// * NewDataModulationSupported: +// * NewDataModulationSupported: // (related state variable: DataModulationSupported) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetDataModulationSupported() ( NewDataModulationSupported string, - err error) { - request := _WANPOTSLinkConfig1_GetDataModulationSupported_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetDataModulationSupported_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetDataModulationSupported_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataModulationSupported", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataModulationSupported", &request, &response); err != nil { return } - NewDataModulationSupported = response.NewDataModulationSupported + // BEGIN Unmarshal arguments from response. + if NewDataModulationSupported, err = soap.UnmarshalString(response.NewDataModulationSupported); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetDataProtocol_Request is the XML structure for the input arguments for action GetDataProtocol. -type _WANPOTSLinkConfig1_GetDataProtocol_Request struct {} +type _WANPOTSLinkConfig1_GetDataProtocol_Request struct{} // _WANPOTSLinkConfig1_GetDataProtocol_Response is the XML structure for the output arguments for action GetDataProtocol. type _WANPOTSLinkConfig1_GetDataProtocol_Response struct { @@ -3817,36 +4076,39 @@ type _WANPOTSLinkConfig1_GetDataProtocol_Response struct { // // Return values: // -// * NewDataProtocol: +// * NewDataProtocol: // (related state variable: DataProtocol) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetDataProtocol() ( NewDataProtocol string, - err error) { - request := _WANPOTSLinkConfig1_GetDataProtocol_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetDataProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetDataProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataProtocol", &request, &response); err != nil { return } - NewDataProtocol = response.NewDataProtocol + // BEGIN Unmarshal arguments from response. + if NewDataProtocol, err = soap.UnmarshalString(response.NewDataProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetDataCompression_Request is the XML structure for the input arguments for action GetDataCompression. -type _WANPOTSLinkConfig1_GetDataCompression_Request struct {} +type _WANPOTSLinkConfig1_GetDataCompression_Request struct{} // _WANPOTSLinkConfig1_GetDataCompression_Response is the XML structure for the output arguments for action GetDataCompression. type _WANPOTSLinkConfig1_GetDataCompression_Response struct { @@ -3859,36 +4121,39 @@ type _WANPOTSLinkConfig1_GetDataCompression_Response struct { // // Return values: // -// * NewDataCompression: +// * NewDataCompression: // (related state variable: DataCompression) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetDataCompression() ( NewDataCompression string, - err error) { - request := _WANPOTSLinkConfig1_GetDataCompression_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetDataCompression_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetDataCompression_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataCompression", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataCompression", &request, &response); err != nil { return } - NewDataCompression = response.NewDataCompression + // BEGIN Unmarshal arguments from response. + if NewDataCompression, err = soap.UnmarshalString(response.NewDataCompression); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request is the XML structure for the input arguments for action GetPlusVTRCommandSupported. -type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request struct {} +type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request struct{} // _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response is the XML structure for the output arguments for action GetPlusVTRCommandSupported. type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response struct { @@ -3901,59 +4166,57 @@ type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response struct { // // Return values: // -// * NewPlusVTRCommandSupported: +// * NewPlusVTRCommandSupported: // (related state variable: PlusVTRCommandSupported) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetPlusVTRCommandSupported() ( - NewPlusVTRCommandSupported string, - err error) { - request := _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request{ + NewPlusVTRCommandSupported bool, + err error, +) { + var request _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetPlusVTRCommandSupported", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetPlusVTRCommandSupported", &request, &response); err != nil { return } - NewPlusVTRCommandSupported = response.NewPlusVTRCommandSupported + // BEGIN Unmarshal arguments from response. + if NewPlusVTRCommandSupported, err = soap.UnmarshalBoolean(response.NewPlusVTRCommandSupported); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANPPPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPPPConnection:1". type WANPPPConnection1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANPPPConnection1_SetConnectionType_Request is the XML structure for the input arguments for action SetConnectionType. type _WANPPPConnection1_SetConnectionType_Request struct { NewConnectionType string } // _WANPPPConnection1_SetConnectionType_Response is the XML structure for the output arguments for action SetConnectionType. -type _WANPPPConnection1_SetConnectionType_Response struct {} +type _WANPPPConnection1_SetConnectionType_Response struct{} // SetConnectionType action. // Arguments: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // // @@ -3961,28 +4224,32 @@ type _WANPPPConnection1_SetConnectionType_Response struct {} // func (client *WANPPPConnection1) SetConnectionType( NewConnectionType string, -) ( err error) { - request := _WANPPPConnection1_SetConnectionType_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetConnectionType_Request + // BEGIN Marshal arguments into request. - NewConnectionType: NewConnectionType, - - } - var response _WANPPPConnection1_SetConnectionType_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetConnectionType", &request, &response) - if err != nil { + if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetConnectionType_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetConnectionType", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetConnectionTypeInfo_Request is the XML structure for the input arguments for action GetConnectionTypeInfo. -type _WANPPPConnection1_GetConnectionTypeInfo_Request struct {} +type _WANPPPConnection1_GetConnectionTypeInfo_Request struct{} // _WANPPPConnection1_GetConnectionTypeInfo_Response is the XML structure for the output arguments for action GetConnectionTypeInfo. type _WANPPPConnection1_GetConnectionTypeInfo_Response struct { @@ -3997,45 +4264,49 @@ type _WANPPPConnection1_GetConnectionTypeInfo_Response struct { // // Return values: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // -// * NewPossibleConnectionTypes: +// * NewPossibleConnectionTypes: // (related state variable: PossibleConnectionTypes) -// - +// - // - allowed values: // Unconfigured|IP_Routed|DHCP_Spoofed|PPPoE_Bridged|PPTP_Relay|L2TP_Relay|PPPoE_Relay // // func (client *WANPPPConnection1) GetConnectionTypeInfo() ( NewConnectionType string, - NewPossibleConnectionTypes string, - err error) { - request := _WANPPPConnection1_GetConnectionTypeInfo_Request{ + err error, +) { + var request _WANPPPConnection1_GetConnectionTypeInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetConnectionTypeInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetConnectionTypeInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetConnectionTypeInfo", &request, &response); err != nil { return } - NewConnectionType = response.NewConnectionType + // BEGIN Unmarshal arguments from response. - NewPossibleConnectionTypes = response.NewPossibleConnectionTypes + if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil { + return + } + if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_ConfigureConnection_Request is the XML structure for the input arguments for action ConfigureConnection. type _WANPPPConnection1_ConfigureConnection_Request struct { NewUserName string @@ -4044,21 +4315,21 @@ type _WANPPPConnection1_ConfigureConnection_Request struct { } // _WANPPPConnection1_ConfigureConnection_Response is the XML structure for the output arguments for action ConfigureConnection. -type _WANPPPConnection1_ConfigureConnection_Response struct {} +type _WANPPPConnection1_ConfigureConnection_Response struct{} // ConfigureConnection action. // Arguments: // -// * NewUserName: +// * NewUserName: // (related state variable: UserName) -// - -// - +// - +// - // // -// * NewPassword: +// * NewPassword: // (related state variable: Password) -// - -// - +// - +// - // // // @@ -4066,35 +4337,40 @@ type _WANPPPConnection1_ConfigureConnection_Response struct {} // func (client *WANPPPConnection1) ConfigureConnection( NewUserName string, - NewPassword string, -) ( err error) { - request := _WANPPPConnection1_ConfigureConnection_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_ConfigureConnection_Request + // BEGIN Marshal arguments into request. - NewUserName: NewUserName, - - NewPassword: NewPassword, - - } - var response _WANPPPConnection1_ConfigureConnection_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ConfigureConnection", &request, &response) - if err != nil { + if request.NewUserName, err = soap.MarshalString(NewUserName); err != nil { return } + if request.NewPassword, err = soap.MarshalString(NewPassword); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_ConfigureConnection_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ConfigureConnection", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_RequestConnection_Request is the XML structure for the input arguments for action RequestConnection. -type _WANPPPConnection1_RequestConnection_Request struct {} +type _WANPPPConnection1_RequestConnection_Request struct{} // _WANPPPConnection1_RequestConnection_Response is the XML structure for the output arguments for action RequestConnection. -type _WANPPPConnection1_RequestConnection_Response struct {} +type _WANPPPConnection1_RequestConnection_Response struct{} // RequestConnection action. // Arguments: @@ -4102,29 +4378,31 @@ type _WANPPPConnection1_RequestConnection_Response struct {} // // Return values: // -func (client *WANPPPConnection1) RequestConnection() ( err error) { - request := _WANPPPConnection1_RequestConnection_Request{ +func (client *WANPPPConnection1) RequestConnection() ( + err error, +) { + var request _WANPPPConnection1_RequestConnection_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_RequestConnection_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestConnection", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestConnection", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_RequestTermination_Request is the XML structure for the input arguments for action RequestTermination. -type _WANPPPConnection1_RequestTermination_Request struct {} +type _WANPPPConnection1_RequestTermination_Request struct{} // _WANPPPConnection1_RequestTermination_Response is the XML structure for the output arguments for action RequestTermination. -type _WANPPPConnection1_RequestTermination_Response struct {} +type _WANPPPConnection1_RequestTermination_Response struct{} // RequestTermination action. // Arguments: @@ -4132,29 +4410,31 @@ type _WANPPPConnection1_RequestTermination_Response struct {} // // Return values: // -func (client *WANPPPConnection1) RequestTermination() ( err error) { - request := _WANPPPConnection1_RequestTermination_Request{ +func (client *WANPPPConnection1) RequestTermination() ( + err error, +) { + var request _WANPPPConnection1_RequestTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_RequestTermination_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_ForceTermination_Request is the XML structure for the input arguments for action ForceTermination. -type _WANPPPConnection1_ForceTermination_Request struct {} +type _WANPPPConnection1_ForceTermination_Request struct{} // _WANPPPConnection1_ForceTermination_Response is the XML structure for the output arguments for action ForceTermination. -type _WANPPPConnection1_ForceTermination_Response struct {} +type _WANPPPConnection1_ForceTermination_Response struct{} // ForceTermination action. // Arguments: @@ -4162,39 +4442,41 @@ type _WANPPPConnection1_ForceTermination_Response struct {} // // Return values: // -func (client *WANPPPConnection1) ForceTermination() ( err error) { - request := _WANPPPConnection1_ForceTermination_Request{ +func (client *WANPPPConnection1) ForceTermination() ( + err error, +) { + var request _WANPPPConnection1_ForceTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_ForceTermination_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ForceTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ForceTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_SetAutoDisconnectTime_Request is the XML structure for the input arguments for action SetAutoDisconnectTime. type _WANPPPConnection1_SetAutoDisconnectTime_Request struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // _WANPPPConnection1_SetAutoDisconnectTime_Response is the XML structure for the output arguments for action SetAutoDisconnectTime. -type _WANPPPConnection1_SetAutoDisconnectTime_Response struct {} +type _WANPPPConnection1_SetAutoDisconnectTime_Response struct{} // SetAutoDisconnectTime action. // Arguments: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // // @@ -4202,41 +4484,45 @@ type _WANPPPConnection1_SetAutoDisconnectTime_Response struct {} // func (client *WANPPPConnection1) SetAutoDisconnectTime( NewAutoDisconnectTime uint32, -) ( err error) { - request := _WANPPPConnection1_SetAutoDisconnectTime_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewAutoDisconnectTime: NewAutoDisconnectTime, - - } - var response _WANPPPConnection1_SetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetAutoDisconnectTime", &request, &response) - if err != nil { + if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetAutoDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetAutoDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_SetIdleDisconnectTime_Request is the XML structure for the input arguments for action SetIdleDisconnectTime. type _WANPPPConnection1_SetIdleDisconnectTime_Request struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // _WANPPPConnection1_SetIdleDisconnectTime_Response is the XML structure for the output arguments for action SetIdleDisconnectTime. -type _WANPPPConnection1_SetIdleDisconnectTime_Response struct {} +type _WANPPPConnection1_SetIdleDisconnectTime_Response struct{} // SetIdleDisconnectTime action. // Arguments: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // // @@ -4244,41 +4530,45 @@ type _WANPPPConnection1_SetIdleDisconnectTime_Response struct {} // func (client *WANPPPConnection1) SetIdleDisconnectTime( NewIdleDisconnectTime uint32, -) ( err error) { - request := _WANPPPConnection1_SetIdleDisconnectTime_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewIdleDisconnectTime: NewIdleDisconnectTime, - - } - var response _WANPPPConnection1_SetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetIdleDisconnectTime", &request, &response) - if err != nil { + if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetIdleDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetIdleDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_SetWarnDisconnectDelay_Request is the XML structure for the input arguments for action SetWarnDisconnectDelay. type _WANPPPConnection1_SetWarnDisconnectDelay_Request struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // _WANPPPConnection1_SetWarnDisconnectDelay_Response is the XML structure for the output arguments for action SetWarnDisconnectDelay. -type _WANPPPConnection1_SetWarnDisconnectDelay_Response struct {} +type _WANPPPConnection1_SetWarnDisconnectDelay_Response struct{} // SetWarnDisconnectDelay action. // Arguments: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // // @@ -4286,28 +4576,32 @@ type _WANPPPConnection1_SetWarnDisconnectDelay_Response struct {} // func (client *WANPPPConnection1) SetWarnDisconnectDelay( NewWarnDisconnectDelay uint32, -) ( err error) { - request := _WANPPPConnection1_SetWarnDisconnectDelay_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - NewWarnDisconnectDelay: NewWarnDisconnectDelay, - - } - var response _WANPPPConnection1_SetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetWarnDisconnectDelay", &request, &response) - if err != nil { + if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetWarnDisconnectDelay_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetWarnDisconnectDelay", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetStatusInfo_Request is the XML structure for the input arguments for action GetStatusInfo. -type _WANPPPConnection1_GetStatusInfo_Request struct {} +type _WANPPPConnection1_GetStatusInfo_Request struct{} // _WANPPPConnection1_GetStatusInfo_Response is the XML structure for the output arguments for action GetStatusInfo. type _WANPPPConnection1_GetStatusInfo_Response struct { @@ -4315,7 +4609,7 @@ type _WANPPPConnection1_GetStatusInfo_Response struct { NewLastConnectionError string - NewUptime uint32 + NewUptime string } // GetStatusInfo action. @@ -4324,64 +4618,69 @@ type _WANPPPConnection1_GetStatusInfo_Response struct { // // Return values: // -// * NewConnectionStatus: +// * NewConnectionStatus: // (related state variable: ConnectionStatus) -// - +// - // - allowed values: // Unconfigured|Connected|Disconnected // // -// * NewLastConnectionError: +// * NewLastConnectionError: // (related state variable: LastConnectionError) -// - +// - // - allowed values: // ERROR_NONE // // -// * NewUptime: +// * NewUptime: // (related state variable: Uptime) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetStatusInfo() ( NewConnectionStatus string, - NewLastConnectionError string, - NewUptime uint32, - err error) { - request := _WANPPPConnection1_GetStatusInfo_Request{ + err error, +) { + var request _WANPPPConnection1_GetStatusInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetStatusInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetStatusInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetStatusInfo", &request, &response); err != nil { return } - NewConnectionStatus = response.NewConnectionStatus + // BEGIN Unmarshal arguments from response. - NewLastConnectionError = response.NewLastConnectionError + if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil { + return + } - NewUptime = response.NewUptime + if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil { + return + } + if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetLinkLayerMaxBitRates_Request is the XML structure for the input arguments for action GetLinkLayerMaxBitRates. -type _WANPPPConnection1_GetLinkLayerMaxBitRates_Request struct {} +type _WANPPPConnection1_GetLinkLayerMaxBitRates_Request struct{} // _WANPPPConnection1_GetLinkLayerMaxBitRates_Response is the XML structure for the output arguments for action GetLinkLayerMaxBitRates. type _WANPPPConnection1_GetLinkLayerMaxBitRates_Response struct { - NewUpstreamMaxBitRate uint32 + NewUpstreamMaxBitRate string - NewDownstreamMaxBitRate uint32 + NewDownstreamMaxBitRate string } // GetLinkLayerMaxBitRates action. @@ -4390,46 +4689,50 @@ type _WANPPPConnection1_GetLinkLayerMaxBitRates_Response struct { // // Return values: // -// * NewUpstreamMaxBitRate: +// * NewUpstreamMaxBitRate: // (related state variable: UpstreamMaxBitRate) -// - -// - +// - +// - // // -// * NewDownstreamMaxBitRate: +// * NewDownstreamMaxBitRate: // (related state variable: DownstreamMaxBitRate) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetLinkLayerMaxBitRates() ( NewUpstreamMaxBitRate uint32, - NewDownstreamMaxBitRate uint32, - err error) { - request := _WANPPPConnection1_GetLinkLayerMaxBitRates_Request{ + err error, +) { + var request _WANPPPConnection1_GetLinkLayerMaxBitRates_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetLinkLayerMaxBitRates_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetLinkLayerMaxBitRates", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetLinkLayerMaxBitRates", &request, &response); err != nil { return } - NewUpstreamMaxBitRate = response.NewUpstreamMaxBitRate + // BEGIN Unmarshal arguments from response. - NewDownstreamMaxBitRate = response.NewDownstreamMaxBitRate + if NewUpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewUpstreamMaxBitRate); err != nil { + return + } + if NewDownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewDownstreamMaxBitRate); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPPPEncryptionProtocol_Request is the XML structure for the input arguments for action GetPPPEncryptionProtocol. -type _WANPPPConnection1_GetPPPEncryptionProtocol_Request struct {} +type _WANPPPConnection1_GetPPPEncryptionProtocol_Request struct{} // _WANPPPConnection1_GetPPPEncryptionProtocol_Response is the XML structure for the output arguments for action GetPPPEncryptionProtocol. type _WANPPPConnection1_GetPPPEncryptionProtocol_Response struct { @@ -4442,36 +4745,39 @@ type _WANPPPConnection1_GetPPPEncryptionProtocol_Response struct { // // Return values: // -// * NewPPPEncryptionProtocol: +// * NewPPPEncryptionProtocol: // (related state variable: PPPEncryptionProtocol) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPPPEncryptionProtocol() ( NewPPPEncryptionProtocol string, - err error) { - request := _WANPPPConnection1_GetPPPEncryptionProtocol_Request{ + err error, +) { + var request _WANPPPConnection1_GetPPPEncryptionProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPPPEncryptionProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPEncryptionProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPEncryptionProtocol", &request, &response); err != nil { return } - NewPPPEncryptionProtocol = response.NewPPPEncryptionProtocol + // BEGIN Unmarshal arguments from response. + if NewPPPEncryptionProtocol, err = soap.UnmarshalString(response.NewPPPEncryptionProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPPPCompressionProtocol_Request is the XML structure for the input arguments for action GetPPPCompressionProtocol. -type _WANPPPConnection1_GetPPPCompressionProtocol_Request struct {} +type _WANPPPConnection1_GetPPPCompressionProtocol_Request struct{} // _WANPPPConnection1_GetPPPCompressionProtocol_Response is the XML structure for the output arguments for action GetPPPCompressionProtocol. type _WANPPPConnection1_GetPPPCompressionProtocol_Response struct { @@ -4484,36 +4790,39 @@ type _WANPPPConnection1_GetPPPCompressionProtocol_Response struct { // // Return values: // -// * NewPPPCompressionProtocol: +// * NewPPPCompressionProtocol: // (related state variable: PPPCompressionProtocol) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPPPCompressionProtocol() ( NewPPPCompressionProtocol string, - err error) { - request := _WANPPPConnection1_GetPPPCompressionProtocol_Request{ + err error, +) { + var request _WANPPPConnection1_GetPPPCompressionProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPPPCompressionProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPCompressionProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPCompressionProtocol", &request, &response); err != nil { return } - NewPPPCompressionProtocol = response.NewPPPCompressionProtocol + // BEGIN Unmarshal arguments from response. + if NewPPPCompressionProtocol, err = soap.UnmarshalString(response.NewPPPCompressionProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPPPAuthenticationProtocol_Request is the XML structure for the input arguments for action GetPPPAuthenticationProtocol. -type _WANPPPConnection1_GetPPPAuthenticationProtocol_Request struct {} +type _WANPPPConnection1_GetPPPAuthenticationProtocol_Request struct{} // _WANPPPConnection1_GetPPPAuthenticationProtocol_Response is the XML structure for the output arguments for action GetPPPAuthenticationProtocol. type _WANPPPConnection1_GetPPPAuthenticationProtocol_Response struct { @@ -4526,36 +4835,39 @@ type _WANPPPConnection1_GetPPPAuthenticationProtocol_Response struct { // // Return values: // -// * NewPPPAuthenticationProtocol: +// * NewPPPAuthenticationProtocol: // (related state variable: PPPAuthenticationProtocol) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPPPAuthenticationProtocol() ( NewPPPAuthenticationProtocol string, - err error) { - request := _WANPPPConnection1_GetPPPAuthenticationProtocol_Request{ + err error, +) { + var request _WANPPPConnection1_GetPPPAuthenticationProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPPPAuthenticationProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPAuthenticationProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPAuthenticationProtocol", &request, &response); err != nil { return } - NewPPPAuthenticationProtocol = response.NewPPPAuthenticationProtocol + // BEGIN Unmarshal arguments from response. + if NewPPPAuthenticationProtocol, err = soap.UnmarshalString(response.NewPPPAuthenticationProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetUserName_Request is the XML structure for the input arguments for action GetUserName. -type _WANPPPConnection1_GetUserName_Request struct {} +type _WANPPPConnection1_GetUserName_Request struct{} // _WANPPPConnection1_GetUserName_Response is the XML structure for the output arguments for action GetUserName. type _WANPPPConnection1_GetUserName_Response struct { @@ -4568,36 +4880,39 @@ type _WANPPPConnection1_GetUserName_Response struct { // // Return values: // -// * NewUserName: +// * NewUserName: // (related state variable: UserName) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetUserName() ( NewUserName string, - err error) { - request := _WANPPPConnection1_GetUserName_Request{ + err error, +) { + var request _WANPPPConnection1_GetUserName_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetUserName_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetUserName", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetUserName", &request, &response); err != nil { return } - NewUserName = response.NewUserName + // BEGIN Unmarshal arguments from response. + if NewUserName, err = soap.UnmarshalString(response.NewUserName); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPassword_Request is the XML structure for the input arguments for action GetPassword. -type _WANPPPConnection1_GetPassword_Request struct {} +type _WANPPPConnection1_GetPassword_Request struct{} // _WANPPPConnection1_GetPassword_Response is the XML structure for the output arguments for action GetPassword. type _WANPPPConnection1_GetPassword_Response struct { @@ -4610,40 +4925,43 @@ type _WANPPPConnection1_GetPassword_Response struct { // // Return values: // -// * NewPassword: +// * NewPassword: // (related state variable: Password) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPassword() ( NewPassword string, - err error) { - request := _WANPPPConnection1_GetPassword_Request{ + err error, +) { + var request _WANPPPConnection1_GetPassword_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPassword_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPassword", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPassword", &request, &response); err != nil { return } - NewPassword = response.NewPassword + // BEGIN Unmarshal arguments from response. + if NewPassword, err = soap.UnmarshalString(response.NewPassword); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetAutoDisconnectTime_Request is the XML structure for the input arguments for action GetAutoDisconnectTime. -type _WANPPPConnection1_GetAutoDisconnectTime_Request struct {} +type _WANPPPConnection1_GetAutoDisconnectTime_Request struct{} // _WANPPPConnection1_GetAutoDisconnectTime_Response is the XML structure for the output arguments for action GetAutoDisconnectTime. type _WANPPPConnection1_GetAutoDisconnectTime_Response struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // GetAutoDisconnectTime action. @@ -4652,40 +4970,43 @@ type _WANPPPConnection1_GetAutoDisconnectTime_Response struct { // // Return values: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetAutoDisconnectTime() ( NewAutoDisconnectTime uint32, - err error) { - request := _WANPPPConnection1_GetAutoDisconnectTime_Request{ + err error, +) { + var request _WANPPPConnection1_GetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetAutoDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetAutoDisconnectTime", &request, &response); err != nil { return } - NewAutoDisconnectTime = response.NewAutoDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetIdleDisconnectTime_Request is the XML structure for the input arguments for action GetIdleDisconnectTime. -type _WANPPPConnection1_GetIdleDisconnectTime_Request struct {} +type _WANPPPConnection1_GetIdleDisconnectTime_Request struct{} // _WANPPPConnection1_GetIdleDisconnectTime_Response is the XML structure for the output arguments for action GetIdleDisconnectTime. type _WANPPPConnection1_GetIdleDisconnectTime_Response struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // GetIdleDisconnectTime action. @@ -4694,40 +5015,43 @@ type _WANPPPConnection1_GetIdleDisconnectTime_Response struct { // // Return values: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetIdleDisconnectTime() ( NewIdleDisconnectTime uint32, - err error) { - request := _WANPPPConnection1_GetIdleDisconnectTime_Request{ + err error, +) { + var request _WANPPPConnection1_GetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetIdleDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetIdleDisconnectTime", &request, &response); err != nil { return } - NewIdleDisconnectTime = response.NewIdleDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetWarnDisconnectDelay_Request is the XML structure for the input arguments for action GetWarnDisconnectDelay. -type _WANPPPConnection1_GetWarnDisconnectDelay_Request struct {} +type _WANPPPConnection1_GetWarnDisconnectDelay_Request struct{} // _WANPPPConnection1_GetWarnDisconnectDelay_Response is the XML structure for the output arguments for action GetWarnDisconnectDelay. type _WANPPPConnection1_GetWarnDisconnectDelay_Response struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // GetWarnDisconnectDelay action. @@ -4736,36 +5060,39 @@ type _WANPPPConnection1_GetWarnDisconnectDelay_Response struct { // // Return values: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetWarnDisconnectDelay() ( NewWarnDisconnectDelay uint32, - err error) { - request := _WANPPPConnection1_GetWarnDisconnectDelay_Request{ + err error, +) { + var request _WANPPPConnection1_GetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetWarnDisconnectDelay", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetWarnDisconnectDelay", &request, &response); err != nil { return } - NewWarnDisconnectDelay = response.NewWarnDisconnectDelay + // BEGIN Unmarshal arguments from response. + if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetNATRSIPStatus_Request is the XML structure for the input arguments for action GetNATRSIPStatus. -type _WANPPPConnection1_GetNATRSIPStatus_Request struct {} +type _WANPPPConnection1_GetNATRSIPStatus_Request struct{} // _WANPPPConnection1_GetNATRSIPStatus_Response is the XML structure for the output arguments for action GetNATRSIPStatus. type _WANPPPConnection1_GetNATRSIPStatus_Response struct { @@ -4780,58 +5107,62 @@ type _WANPPPConnection1_GetNATRSIPStatus_Response struct { // // Return values: // -// * NewRSIPAvailable: +// * NewRSIPAvailable: // (related state variable: RSIPAvailable) -// - -// - +// - +// - // // -// * NewNATEnabled: +// * NewNATEnabled: // (related state variable: NATEnabled) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetNATRSIPStatus() ( - NewRSIPAvailable string, + NewRSIPAvailable bool, + NewNATEnabled bool, + err error, +) { + var request _WANPPPConnection1_GetNATRSIPStatus_Request + // BEGIN Marshal arguments into request. - NewNATEnabled string, - err error) { - request := _WANPPPConnection1_GetNATRSIPStatus_Request{ + // END Marshal arguments into request. - } + // Perform the SOAP call. var response _WANPPPConnection1_GetNATRSIPStatus_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetNATRSIPStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetNATRSIPStatus", &request, &response); err != nil { return } - NewRSIPAvailable = response.NewRSIPAvailable + // BEGIN Unmarshal arguments from response. - NewNATEnabled = response.NewNATEnabled + if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil { + return + } + if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetGenericPortMappingEntry_Request is the XML structure for the input arguments for action GetGenericPortMappingEntry. type _WANPPPConnection1_GetGenericPortMappingEntry_Request struct { - NewPortMappingIndex uint16 + NewPortMappingIndex string } // _WANPPPConnection1_GetGenericPortMappingEntry_Response is the XML structure for the output arguments for action GetGenericPortMappingEntry. type _WANPPPConnection1_GetGenericPortMappingEntry_Response struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -4839,136 +5170,148 @@ type _WANPPPConnection1_GetGenericPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetGenericPortMappingEntry action. // Arguments: // -// * NewPortMappingIndex: +// * NewPortMappingIndex: // (related state variable: PortMappingNumberOfEntries) -// - -// - +// - +// - // // // // Return values: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetGenericPortMappingEntry( NewPortMappingIndex uint16, ) ( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANPPPConnection1_GetGenericPortMappingEntry_Request{ + err error, +) { + var request _WANPPPConnection1_GetGenericPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewPortMappingIndex: NewPortMappingIndex, - - } - var response _WANPPPConnection1_GetGenericPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetGenericPortMappingEntry", &request, &response) - if err != nil { + if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil { return } - NewRemoteHost = response.NewRemoteHost + // END Marshal arguments into request. - NewExternalPort = response.NewExternalPort + // Perform the SOAP call. + var response _WANPPPConnection1_GetGenericPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetGenericPortMappingEntry", &request, &response); err != nil { + return + } - NewProtocol = response.NewProtocol + // BEGIN Unmarshal arguments from response. - NewInternalPort = response.NewInternalPort + if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil { + return + } - NewEnabled = response.NewEnabled + if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil { + return + } - NewPortMappingDescription = response.NewPortMappingDescription + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetSpecificPortMappingEntry_Request is the XML structure for the input arguments for action GetSpecificPortMappingEntry. type _WANPPPConnection1_GetSpecificPortMappingEntry_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANPPPConnection1_GetSpecificPortMappingEntry_Response is the XML structure for the output arguments for action GetSpecificPortMappingEntry. type _WANPPPConnection1_GetSpecificPortMappingEntry_Response struct { - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -4976,27 +5319,27 @@ type _WANPPPConnection1_GetSpecificPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetSpecificPortMappingEntry action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -5004,95 +5347,106 @@ type _WANPPPConnection1_GetSpecificPortMappingEntry_Response struct { // // Return values: // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetSpecificPortMappingEntry( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, ) ( NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANPPPConnection1_GetSpecificPortMappingEntry_Request{ + err error, +) { + var request _WANPPPConnection1_GetSpecificPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANPPPConnection1_GetSpecificPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetSpecificPortMappingEntry", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } - NewInternalPort = response.NewInternalPort + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } - NewEnabled = response.NewEnabled + // END Marshal arguments into request. - NewPortMappingDescription = response.NewPortMappingDescription + // Perform the SOAP call. + var response _WANPPPConnection1_GetSpecificPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetSpecificPortMappingEntry", &request, &response); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + // BEGIN Unmarshal arguments from response. + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } + + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_AddPortMapping_Request is the XML structure for the input arguments for action AddPortMapping. type _WANPPPConnection1_AddPortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -5100,62 +5454,62 @@ type _WANPPPConnection1_AddPortMapping_Request struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // _WANPPPConnection1_AddPortMapping_Response is the XML structure for the output arguments for action AddPortMapping. -type _WANPPPConnection1_AddPortMapping_Response struct {} +type _WANPPPConnection1_AddPortMapping_Response struct{} // AddPortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // // @@ -5163,84 +5517,95 @@ type _WANPPPConnection1_AddPortMapping_Response struct {} // func (client *WANPPPConnection1) AddPortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, -) ( err error) { - request := _WANPPPConnection1_AddPortMapping_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_AddPortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - NewInternalPort: NewInternalPort, - - NewInternalClient: NewInternalClient, - - NewEnabled: NewEnabled, - - NewPortMappingDescription: NewPortMappingDescription, - - NewLeaseDuration: NewLeaseDuration, - - } - var response _WANPPPConnection1_AddPortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "AddPortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil { + return + } + + if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil { + return + } + + if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil { + return + } + + if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil { + return + } + + if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_AddPortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "AddPortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_DeletePortMapping_Request is the XML structure for the input arguments for action DeletePortMapping. type _WANPPPConnection1_DeletePortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANPPPConnection1_DeletePortMapping_Response is the XML structure for the output arguments for action DeletePortMapping. -type _WANPPPConnection1_DeletePortMapping_Response struct {} +type _WANPPPConnection1_DeletePortMapping_Response struct{} // DeletePortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -5250,36 +5615,42 @@ type _WANPPPConnection1_DeletePortMapping_Response struct {} // func (client *WANPPPConnection1) DeletePortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, -) ( err error) { - request := _WANPPPConnection1_DeletePortMapping_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_DeletePortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANPPPConnection1_DeletePortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "DeletePortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_DeletePortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "DeletePortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetExternalIPAddress_Request is the XML structure for the input arguments for action GetExternalIPAddress. -type _WANPPPConnection1_GetExternalIPAddress_Request struct {} +type _WANPPPConnection1_GetExternalIPAddress_Request struct{} // _WANPPPConnection1_GetExternalIPAddress_Response is the XML structure for the output arguments for action GetExternalIPAddress. type _WANPPPConnection1_GetExternalIPAddress_Response struct { @@ -5292,28 +5663,33 @@ type _WANPPPConnection1_GetExternalIPAddress_Response struct { // // Return values: // -// * NewExternalIPAddress: +// * NewExternalIPAddress: // (related state variable: ExternalIPAddress) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetExternalIPAddress() ( NewExternalIPAddress string, - err error) { - request := _WANPPPConnection1_GetExternalIPAddress_Request{ + err error, +) { + var request _WANPPPConnection1_GetExternalIPAddress_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetExternalIPAddress_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetExternalIPAddress", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetExternalIPAddress", &request, &response); err != nil { return } - NewExternalIPAddress = response.NewExternalIPAddress + // BEGIN Unmarshal arguments from response. + if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - diff --git a/dcps/internetgateway2/internetgateway2.go b/dcps/internetgateway2/internetgateway2.go index 577cf6f..b735ab3 100644 --- a/dcps/internetgateway2/internetgateway2.go +++ b/dcps/internetgateway2/internetgateway2.go @@ -1,6 +1,13 @@ package internetgateway2 -import "github.com/huin/goupnp/soap" +import ( + "time" + + "github.com/huin/goupnp/soap" +) + +// Hack to avoid Go complaining if time isn't used. +var _ time.Time const ( URN_LANDevice_1 = "urn:schemas-upnp-org:device:LANDevice:1" @@ -38,64 +45,59 @@ const ( URN_WANPPPConnection_1 = "urn:schemas-upnp-org:service:WANPPPConnection:1" ) - - - - // LANHostConfigManagement1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:LANHostConfigManagement:1". type LANHostConfigManagement1 struct { SOAPClient soap.SOAPClient } - - - - - // _LANHostConfigManagement1_SetDHCPServerConfigurable_Request is the XML structure for the input arguments for action SetDHCPServerConfigurable. type _LANHostConfigManagement1_SetDHCPServerConfigurable_Request struct { NewDHCPServerConfigurable string } // _LANHostConfigManagement1_SetDHCPServerConfigurable_Response is the XML structure for the output arguments for action SetDHCPServerConfigurable. -type _LANHostConfigManagement1_SetDHCPServerConfigurable_Response struct {} +type _LANHostConfigManagement1_SetDHCPServerConfigurable_Response struct{} // SetDHCPServerConfigurable action. // Arguments: // -// * NewDHCPServerConfigurable: +// * NewDHCPServerConfigurable: // (related state variable: DHCPServerConfigurable) -// - -// - +// - +// - // // // // Return values: // func (client *LANHostConfigManagement1) SetDHCPServerConfigurable( - NewDHCPServerConfigurable string, -) ( err error) { - request := _LANHostConfigManagement1_SetDHCPServerConfigurable_Request{ + NewDHCPServerConfigurable bool, +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDHCPServerConfigurable_Request + // BEGIN Marshal arguments into request. - NewDHCPServerConfigurable: NewDHCPServerConfigurable, - - } - var response _LANHostConfigManagement1_SetDHCPServerConfigurable_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPServerConfigurable", &request, &response) - if err != nil { + if request.NewDHCPServerConfigurable, err = soap.MarshalBoolean(NewDHCPServerConfigurable); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDHCPServerConfigurable_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPServerConfigurable", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDHCPServerConfigurable_Request is the XML structure for the input arguments for action GetDHCPServerConfigurable. -type _LANHostConfigManagement1_GetDHCPServerConfigurable_Request struct {} +type _LANHostConfigManagement1_GetDHCPServerConfigurable_Request struct{} // _LANHostConfigManagement1_GetDHCPServerConfigurable_Response is the XML structure for the output arguments for action GetDHCPServerConfigurable. type _LANHostConfigManagement1_GetDHCPServerConfigurable_Response struct { @@ -108,78 +110,85 @@ type _LANHostConfigManagement1_GetDHCPServerConfigurable_Response struct { // // Return values: // -// * NewDHCPServerConfigurable: +// * NewDHCPServerConfigurable: // (related state variable: DHCPServerConfigurable) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDHCPServerConfigurable() ( - NewDHCPServerConfigurable string, - err error) { - request := _LANHostConfigManagement1_GetDHCPServerConfigurable_Request{ + NewDHCPServerConfigurable bool, + err error, +) { + var request _LANHostConfigManagement1_GetDHCPServerConfigurable_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDHCPServerConfigurable_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPServerConfigurable", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPServerConfigurable", &request, &response); err != nil { return } - NewDHCPServerConfigurable = response.NewDHCPServerConfigurable + // BEGIN Unmarshal arguments from response. + if NewDHCPServerConfigurable, err = soap.UnmarshalBoolean(response.NewDHCPServerConfigurable); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetDHCPRelay_Request is the XML structure for the input arguments for action SetDHCPRelay. type _LANHostConfigManagement1_SetDHCPRelay_Request struct { NewDHCPRelay string } // _LANHostConfigManagement1_SetDHCPRelay_Response is the XML structure for the output arguments for action SetDHCPRelay. -type _LANHostConfigManagement1_SetDHCPRelay_Response struct {} +type _LANHostConfigManagement1_SetDHCPRelay_Response struct{} // SetDHCPRelay action. // Arguments: // -// * NewDHCPRelay: +// * NewDHCPRelay: // (related state variable: DHCPRelay) -// - -// - +// - +// - // // // // Return values: // func (client *LANHostConfigManagement1) SetDHCPRelay( - NewDHCPRelay string, -) ( err error) { - request := _LANHostConfigManagement1_SetDHCPRelay_Request{ + NewDHCPRelay bool, +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDHCPRelay_Request + // BEGIN Marshal arguments into request. - NewDHCPRelay: NewDHCPRelay, - - } - var response _LANHostConfigManagement1_SetDHCPRelay_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPRelay", &request, &response) - if err != nil { + if request.NewDHCPRelay, err = soap.MarshalBoolean(NewDHCPRelay); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDHCPRelay_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDHCPRelay", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDHCPRelay_Request is the XML structure for the input arguments for action GetDHCPRelay. -type _LANHostConfigManagement1_GetDHCPRelay_Request struct {} +type _LANHostConfigManagement1_GetDHCPRelay_Request struct{} // _LANHostConfigManagement1_GetDHCPRelay_Response is the XML structure for the output arguments for action GetDHCPRelay. type _LANHostConfigManagement1_GetDHCPRelay_Response struct { @@ -192,49 +201,52 @@ type _LANHostConfigManagement1_GetDHCPRelay_Response struct { // // Return values: // -// * NewDHCPRelay: +// * NewDHCPRelay: // (related state variable: DHCPRelay) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDHCPRelay() ( - NewDHCPRelay string, - err error) { - request := _LANHostConfigManagement1_GetDHCPRelay_Request{ + NewDHCPRelay bool, + err error, +) { + var request _LANHostConfigManagement1_GetDHCPRelay_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDHCPRelay_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPRelay", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDHCPRelay", &request, &response); err != nil { return } - NewDHCPRelay = response.NewDHCPRelay + // BEGIN Unmarshal arguments from response. + if NewDHCPRelay, err = soap.UnmarshalBoolean(response.NewDHCPRelay); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetSubnetMask_Request is the XML structure for the input arguments for action SetSubnetMask. type _LANHostConfigManagement1_SetSubnetMask_Request struct { NewSubnetMask string } // _LANHostConfigManagement1_SetSubnetMask_Response is the XML structure for the output arguments for action SetSubnetMask. -type _LANHostConfigManagement1_SetSubnetMask_Response struct {} +type _LANHostConfigManagement1_SetSubnetMask_Response struct{} // SetSubnetMask action. // Arguments: // -// * NewSubnetMask: +// * NewSubnetMask: // (related state variable: SubnetMask) -// - -// - +// - +// - // // // @@ -242,28 +254,32 @@ type _LANHostConfigManagement1_SetSubnetMask_Response struct {} // func (client *LANHostConfigManagement1) SetSubnetMask( NewSubnetMask string, -) ( err error) { - request := _LANHostConfigManagement1_SetSubnetMask_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetSubnetMask_Request + // BEGIN Marshal arguments into request. - NewSubnetMask: NewSubnetMask, - - } - var response _LANHostConfigManagement1_SetSubnetMask_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetSubnetMask", &request, &response) - if err != nil { + if request.NewSubnetMask, err = soap.MarshalString(NewSubnetMask); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetSubnetMask_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetSubnetMask", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetSubnetMask_Request is the XML structure for the input arguments for action GetSubnetMask. -type _LANHostConfigManagement1_GetSubnetMask_Request struct {} +type _LANHostConfigManagement1_GetSubnetMask_Request struct{} // _LANHostConfigManagement1_GetSubnetMask_Response is the XML structure for the output arguments for action GetSubnetMask. type _LANHostConfigManagement1_GetSubnetMask_Response struct { @@ -276,49 +292,52 @@ type _LANHostConfigManagement1_GetSubnetMask_Response struct { // // Return values: // -// * NewSubnetMask: +// * NewSubnetMask: // (related state variable: SubnetMask) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetSubnetMask() ( NewSubnetMask string, - err error) { - request := _LANHostConfigManagement1_GetSubnetMask_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetSubnetMask_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetSubnetMask_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetSubnetMask", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetSubnetMask", &request, &response); err != nil { return } - NewSubnetMask = response.NewSubnetMask + // BEGIN Unmarshal arguments from response. + if NewSubnetMask, err = soap.UnmarshalString(response.NewSubnetMask); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetIPRouter_Request is the XML structure for the input arguments for action SetIPRouter. type _LANHostConfigManagement1_SetIPRouter_Request struct { NewIPRouters string } // _LANHostConfigManagement1_SetIPRouter_Response is the XML structure for the output arguments for action SetIPRouter. -type _LANHostConfigManagement1_SetIPRouter_Response struct {} +type _LANHostConfigManagement1_SetIPRouter_Response struct{} // SetIPRouter action. // Arguments: // -// * NewIPRouters: +// * NewIPRouters: // (related state variable: IPRouters) -// - -// - +// - +// - // // // @@ -326,41 +345,45 @@ type _LANHostConfigManagement1_SetIPRouter_Response struct {} // func (client *LANHostConfigManagement1) SetIPRouter( NewIPRouters string, -) ( err error) { - request := _LANHostConfigManagement1_SetIPRouter_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetIPRouter_Request + // BEGIN Marshal arguments into request. - NewIPRouters: NewIPRouters, - - } - var response _LANHostConfigManagement1_SetIPRouter_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetIPRouter", &request, &response) - if err != nil { + if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetIPRouter_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetIPRouter", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_DeleteIPRouter_Request is the XML structure for the input arguments for action DeleteIPRouter. type _LANHostConfigManagement1_DeleteIPRouter_Request struct { NewIPRouters string } // _LANHostConfigManagement1_DeleteIPRouter_Response is the XML structure for the output arguments for action DeleteIPRouter. -type _LANHostConfigManagement1_DeleteIPRouter_Response struct {} +type _LANHostConfigManagement1_DeleteIPRouter_Response struct{} // DeleteIPRouter action. // Arguments: // -// * NewIPRouters: +// * NewIPRouters: // (related state variable: IPRouters) -// - -// - +// - +// - // // // @@ -368,28 +391,32 @@ type _LANHostConfigManagement1_DeleteIPRouter_Response struct {} // func (client *LANHostConfigManagement1) DeleteIPRouter( NewIPRouters string, -) ( err error) { - request := _LANHostConfigManagement1_DeleteIPRouter_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_DeleteIPRouter_Request + // BEGIN Marshal arguments into request. - NewIPRouters: NewIPRouters, - - } - var response _LANHostConfigManagement1_DeleteIPRouter_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteIPRouter", &request, &response) - if err != nil { + if request.NewIPRouters, err = soap.MarshalString(NewIPRouters); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_DeleteIPRouter_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteIPRouter", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetIPRoutersList_Request is the XML structure for the input arguments for action GetIPRoutersList. -type _LANHostConfigManagement1_GetIPRoutersList_Request struct {} +type _LANHostConfigManagement1_GetIPRoutersList_Request struct{} // _LANHostConfigManagement1_GetIPRoutersList_Response is the XML structure for the output arguments for action GetIPRoutersList. type _LANHostConfigManagement1_GetIPRoutersList_Response struct { @@ -402,49 +429,52 @@ type _LANHostConfigManagement1_GetIPRoutersList_Response struct { // // Return values: // -// * NewIPRouters: +// * NewIPRouters: // (related state variable: IPRouters) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetIPRoutersList() ( NewIPRouters string, - err error) { - request := _LANHostConfigManagement1_GetIPRoutersList_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetIPRoutersList_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetIPRoutersList_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetIPRoutersList", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetIPRoutersList", &request, &response); err != nil { return } - NewIPRouters = response.NewIPRouters + // BEGIN Unmarshal arguments from response. + if NewIPRouters, err = soap.UnmarshalString(response.NewIPRouters); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetDomainName_Request is the XML structure for the input arguments for action SetDomainName. type _LANHostConfigManagement1_SetDomainName_Request struct { NewDomainName string } // _LANHostConfigManagement1_SetDomainName_Response is the XML structure for the output arguments for action SetDomainName. -type _LANHostConfigManagement1_SetDomainName_Response struct {} +type _LANHostConfigManagement1_SetDomainName_Response struct{} // SetDomainName action. // Arguments: // -// * NewDomainName: +// * NewDomainName: // (related state variable: DomainName) -// - -// - +// - +// - // // // @@ -452,28 +482,32 @@ type _LANHostConfigManagement1_SetDomainName_Response struct {} // func (client *LANHostConfigManagement1) SetDomainName( NewDomainName string, -) ( err error) { - request := _LANHostConfigManagement1_SetDomainName_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDomainName_Request + // BEGIN Marshal arguments into request. - NewDomainName: NewDomainName, - - } - var response _LANHostConfigManagement1_SetDomainName_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDomainName", &request, &response) - if err != nil { + if request.NewDomainName, err = soap.MarshalString(NewDomainName); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDomainName_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDomainName", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDomainName_Request is the XML structure for the input arguments for action GetDomainName. -type _LANHostConfigManagement1_GetDomainName_Request struct {} +type _LANHostConfigManagement1_GetDomainName_Request struct{} // _LANHostConfigManagement1_GetDomainName_Response is the XML structure for the output arguments for action GetDomainName. type _LANHostConfigManagement1_GetDomainName_Response struct { @@ -486,34 +520,37 @@ type _LANHostConfigManagement1_GetDomainName_Response struct { // // Return values: // -// * NewDomainName: +// * NewDomainName: // (related state variable: DomainName) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDomainName() ( NewDomainName string, - err error) { - request := _LANHostConfigManagement1_GetDomainName_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetDomainName_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDomainName_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDomainName", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDomainName", &request, &response); err != nil { return } - NewDomainName = response.NewDomainName + // BEGIN Unmarshal arguments from response. + if NewDomainName, err = soap.UnmarshalString(response.NewDomainName); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetAddressRange_Request is the XML structure for the input arguments for action SetAddressRange. type _LANHostConfigManagement1_SetAddressRange_Request struct { NewMinAddress string @@ -522,21 +559,21 @@ type _LANHostConfigManagement1_SetAddressRange_Request struct { } // _LANHostConfigManagement1_SetAddressRange_Response is the XML structure for the output arguments for action SetAddressRange. -type _LANHostConfigManagement1_SetAddressRange_Response struct {} +type _LANHostConfigManagement1_SetAddressRange_Response struct{} // SetAddressRange action. // Arguments: // -// * NewMinAddress: +// * NewMinAddress: // (related state variable: MinAddress) -// - -// - +// - +// - // // -// * NewMaxAddress: +// * NewMaxAddress: // (related state variable: MaxAddress) -// - -// - +// - +// - // // // @@ -544,32 +581,37 @@ type _LANHostConfigManagement1_SetAddressRange_Response struct {} // func (client *LANHostConfigManagement1) SetAddressRange( NewMinAddress string, - NewMaxAddress string, -) ( err error) { - request := _LANHostConfigManagement1_SetAddressRange_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetAddressRange_Request + // BEGIN Marshal arguments into request. - NewMinAddress: NewMinAddress, - - NewMaxAddress: NewMaxAddress, - - } - var response _LANHostConfigManagement1_SetAddressRange_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetAddressRange", &request, &response) - if err != nil { + if request.NewMinAddress, err = soap.MarshalString(NewMinAddress); err != nil { return } + if request.NewMaxAddress, err = soap.MarshalString(NewMaxAddress); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetAddressRange_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetAddressRange", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetAddressRange_Request is the XML structure for the input arguments for action GetAddressRange. -type _LANHostConfigManagement1_GetAddressRange_Request struct {} +type _LANHostConfigManagement1_GetAddressRange_Request struct{} // _LANHostConfigManagement1_GetAddressRange_Response is the XML structure for the output arguments for action GetAddressRange. type _LANHostConfigManagement1_GetAddressRange_Response struct { @@ -584,59 +626,63 @@ type _LANHostConfigManagement1_GetAddressRange_Response struct { // // Return values: // -// * NewMinAddress: +// * NewMinAddress: // (related state variable: MinAddress) -// - -// - +// - +// - // // -// * NewMaxAddress: +// * NewMaxAddress: // (related state variable: MaxAddress) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetAddressRange() ( NewMinAddress string, - NewMaxAddress string, - err error) { - request := _LANHostConfigManagement1_GetAddressRange_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetAddressRange_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetAddressRange_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetAddressRange", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetAddressRange", &request, &response); err != nil { return } - NewMinAddress = response.NewMinAddress + // BEGIN Unmarshal arguments from response. - NewMaxAddress = response.NewMaxAddress + if NewMinAddress, err = soap.UnmarshalString(response.NewMinAddress); err != nil { + return + } + if NewMaxAddress, err = soap.UnmarshalString(response.NewMaxAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetReservedAddress_Request is the XML structure for the input arguments for action SetReservedAddress. type _LANHostConfigManagement1_SetReservedAddress_Request struct { NewReservedAddresses string } // _LANHostConfigManagement1_SetReservedAddress_Response is the XML structure for the output arguments for action SetReservedAddress. -type _LANHostConfigManagement1_SetReservedAddress_Response struct {} +type _LANHostConfigManagement1_SetReservedAddress_Response struct{} // SetReservedAddress action. // Arguments: // -// * NewReservedAddresses: +// * NewReservedAddresses: // (related state variable: ReservedAddresses) -// - -// - +// - +// - // // // @@ -644,41 +690,45 @@ type _LANHostConfigManagement1_SetReservedAddress_Response struct {} // func (client *LANHostConfigManagement1) SetReservedAddress( NewReservedAddresses string, -) ( err error) { - request := _LANHostConfigManagement1_SetReservedAddress_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetReservedAddress_Request + // BEGIN Marshal arguments into request. - NewReservedAddresses: NewReservedAddresses, - - } - var response _LANHostConfigManagement1_SetReservedAddress_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetReservedAddress", &request, &response) - if err != nil { + if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetReservedAddress_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetReservedAddress", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_DeleteReservedAddress_Request is the XML structure for the input arguments for action DeleteReservedAddress. type _LANHostConfigManagement1_DeleteReservedAddress_Request struct { NewReservedAddresses string } // _LANHostConfigManagement1_DeleteReservedAddress_Response is the XML structure for the output arguments for action DeleteReservedAddress. -type _LANHostConfigManagement1_DeleteReservedAddress_Response struct {} +type _LANHostConfigManagement1_DeleteReservedAddress_Response struct{} // DeleteReservedAddress action. // Arguments: // -// * NewReservedAddresses: +// * NewReservedAddresses: // (related state variable: ReservedAddresses) -// - -// - +// - +// - // // // @@ -686,28 +736,32 @@ type _LANHostConfigManagement1_DeleteReservedAddress_Response struct {} // func (client *LANHostConfigManagement1) DeleteReservedAddress( NewReservedAddresses string, -) ( err error) { - request := _LANHostConfigManagement1_DeleteReservedAddress_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_DeleteReservedAddress_Request + // BEGIN Marshal arguments into request. - NewReservedAddresses: NewReservedAddresses, - - } - var response _LANHostConfigManagement1_DeleteReservedAddress_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteReservedAddress", &request, &response) - if err != nil { + if request.NewReservedAddresses, err = soap.MarshalString(NewReservedAddresses); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_DeleteReservedAddress_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteReservedAddress", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetReservedAddresses_Request is the XML structure for the input arguments for action GetReservedAddresses. -type _LANHostConfigManagement1_GetReservedAddresses_Request struct {} +type _LANHostConfigManagement1_GetReservedAddresses_Request struct{} // _LANHostConfigManagement1_GetReservedAddresses_Response is the XML structure for the output arguments for action GetReservedAddresses. type _LANHostConfigManagement1_GetReservedAddresses_Response struct { @@ -720,49 +774,52 @@ type _LANHostConfigManagement1_GetReservedAddresses_Response struct { // // Return values: // -// * NewReservedAddresses: +// * NewReservedAddresses: // (related state variable: ReservedAddresses) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetReservedAddresses() ( NewReservedAddresses string, - err error) { - request := _LANHostConfigManagement1_GetReservedAddresses_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetReservedAddresses_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetReservedAddresses_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetReservedAddresses", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetReservedAddresses", &request, &response); err != nil { return } - NewReservedAddresses = response.NewReservedAddresses + // BEGIN Unmarshal arguments from response. + if NewReservedAddresses, err = soap.UnmarshalString(response.NewReservedAddresses); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_SetDNSServer_Request is the XML structure for the input arguments for action SetDNSServer. type _LANHostConfigManagement1_SetDNSServer_Request struct { NewDNSServers string } // _LANHostConfigManagement1_SetDNSServer_Response is the XML structure for the output arguments for action SetDNSServer. -type _LANHostConfigManagement1_SetDNSServer_Response struct {} +type _LANHostConfigManagement1_SetDNSServer_Response struct{} // SetDNSServer action. // Arguments: // -// * NewDNSServers: +// * NewDNSServers: // (related state variable: DNSServers) -// - -// - +// - +// - // // // @@ -770,41 +827,45 @@ type _LANHostConfigManagement1_SetDNSServer_Response struct {} // func (client *LANHostConfigManagement1) SetDNSServer( NewDNSServers string, -) ( err error) { - request := _LANHostConfigManagement1_SetDNSServer_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_SetDNSServer_Request + // BEGIN Marshal arguments into request. - NewDNSServers: NewDNSServers, - - } - var response _LANHostConfigManagement1_SetDNSServer_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDNSServer", &request, &response) - if err != nil { + if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_SetDNSServer_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "SetDNSServer", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_DeleteDNSServer_Request is the XML structure for the input arguments for action DeleteDNSServer. type _LANHostConfigManagement1_DeleteDNSServer_Request struct { NewDNSServers string } // _LANHostConfigManagement1_DeleteDNSServer_Response is the XML structure for the output arguments for action DeleteDNSServer. -type _LANHostConfigManagement1_DeleteDNSServer_Response struct {} +type _LANHostConfigManagement1_DeleteDNSServer_Response struct{} // DeleteDNSServer action. // Arguments: // -// * NewDNSServers: +// * NewDNSServers: // (related state variable: DNSServers) -// - -// - +// - +// - // // // @@ -812,28 +873,32 @@ type _LANHostConfigManagement1_DeleteDNSServer_Response struct {} // func (client *LANHostConfigManagement1) DeleteDNSServer( NewDNSServers string, -) ( err error) { - request := _LANHostConfigManagement1_DeleteDNSServer_Request{ +) ( + err error, +) { + var request _LANHostConfigManagement1_DeleteDNSServer_Request + // BEGIN Marshal arguments into request. - NewDNSServers: NewDNSServers, - - } - var response _LANHostConfigManagement1_DeleteDNSServer_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteDNSServer", &request, &response) - if err != nil { + if request.NewDNSServers, err = soap.MarshalString(NewDNSServers); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _LANHostConfigManagement1_DeleteDNSServer_Response + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "DeleteDNSServer", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _LANHostConfigManagement1_GetDNSServers_Request is the XML structure for the input arguments for action GetDNSServers. -type _LANHostConfigManagement1_GetDNSServers_Request struct {} +type _LANHostConfigManagement1_GetDNSServers_Request struct{} // _LANHostConfigManagement1_GetDNSServers_Response is the XML structure for the output arguments for action GetDNSServers. type _LANHostConfigManagement1_GetDNSServers_Response struct { @@ -846,59 +911,57 @@ type _LANHostConfigManagement1_GetDNSServers_Response struct { // // Return values: // -// * NewDNSServers: +// * NewDNSServers: // (related state variable: DNSServers) -// - -// - +// - +// - // // func (client *LANHostConfigManagement1) GetDNSServers() ( NewDNSServers string, - err error) { - request := _LANHostConfigManagement1_GetDNSServers_Request{ + err error, +) { + var request _LANHostConfigManagement1_GetDNSServers_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _LANHostConfigManagement1_GetDNSServers_Response - err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDNSServers", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_LANHostConfigManagement_1, "GetDNSServers", &request, &response); err != nil { return } - NewDNSServers = response.NewDNSServers + // BEGIN Unmarshal arguments from response. + if NewDNSServers, err = soap.UnmarshalString(response.NewDNSServers); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // Layer3Forwarding1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:Layer3Forwarding:1". type Layer3Forwarding1 struct { SOAPClient soap.SOAPClient } - - - - - // _Layer3Forwarding1_SetDefaultConnectionService_Request is the XML structure for the input arguments for action SetDefaultConnectionService. type _Layer3Forwarding1_SetDefaultConnectionService_Request struct { NewDefaultConnectionService string } // _Layer3Forwarding1_SetDefaultConnectionService_Response is the XML structure for the output arguments for action SetDefaultConnectionService. -type _Layer3Forwarding1_SetDefaultConnectionService_Response struct {} +type _Layer3Forwarding1_SetDefaultConnectionService_Response struct{} // SetDefaultConnectionService action. // Arguments: // -// * NewDefaultConnectionService: +// * NewDefaultConnectionService: // (related state variable: DefaultConnectionService) -// - -// - +// - +// - // // // @@ -906,28 +969,32 @@ type _Layer3Forwarding1_SetDefaultConnectionService_Response struct {} // func (client *Layer3Forwarding1) SetDefaultConnectionService( NewDefaultConnectionService string, -) ( err error) { - request := _Layer3Forwarding1_SetDefaultConnectionService_Request{ +) ( + err error, +) { + var request _Layer3Forwarding1_SetDefaultConnectionService_Request + // BEGIN Marshal arguments into request. - NewDefaultConnectionService: NewDefaultConnectionService, - - } - var response _Layer3Forwarding1_SetDefaultConnectionService_Response - err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "SetDefaultConnectionService", &request, &response) - if err != nil { + if request.NewDefaultConnectionService, err = soap.MarshalString(NewDefaultConnectionService); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _Layer3Forwarding1_SetDefaultConnectionService_Response + if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "SetDefaultConnectionService", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _Layer3Forwarding1_GetDefaultConnectionService_Request is the XML structure for the input arguments for action GetDefaultConnectionService. -type _Layer3Forwarding1_GetDefaultConnectionService_Request struct {} +type _Layer3Forwarding1_GetDefaultConnectionService_Request struct{} // _Layer3Forwarding1_GetDefaultConnectionService_Response is the XML structure for the output arguments for action GetDefaultConnectionService. type _Layer3Forwarding1_GetDefaultConnectionService_Response struct { @@ -940,46 +1007,44 @@ type _Layer3Forwarding1_GetDefaultConnectionService_Response struct { // // Return values: // -// * NewDefaultConnectionService: +// * NewDefaultConnectionService: // (related state variable: DefaultConnectionService) -// - -// - +// - +// - // // func (client *Layer3Forwarding1) GetDefaultConnectionService() ( NewDefaultConnectionService string, - err error) { - request := _Layer3Forwarding1_GetDefaultConnectionService_Request{ + err error, +) { + var request _Layer3Forwarding1_GetDefaultConnectionService_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _Layer3Forwarding1_GetDefaultConnectionService_Response - err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "GetDefaultConnectionService", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_Layer3Forwarding_1, "GetDefaultConnectionService", &request, &response); err != nil { return } - NewDefaultConnectionService = response.NewDefaultConnectionService + // BEGIN Unmarshal arguments from response. + if NewDefaultConnectionService, err = soap.UnmarshalString(response.NewDefaultConnectionService); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANCableLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCableLinkConfig:1". type WANCableLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANCableLinkConfig1_GetCableLinkConfigInfo_Request is the XML structure for the input arguments for action GetCableLinkConfigInfo. -type _WANCableLinkConfig1_GetCableLinkConfigInfo_Request struct {} +type _WANCableLinkConfig1_GetCableLinkConfigInfo_Request struct{} // _WANCableLinkConfig1_GetCableLinkConfigInfo_Response is the XML structure for the output arguments for action GetCableLinkConfigInfo. type _WANCableLinkConfig1_GetCableLinkConfigInfo_Response struct { @@ -994,52 +1059,56 @@ type _WANCableLinkConfig1_GetCableLinkConfigInfo_Response struct { // // Return values: // -// * NewCableLinkConfigState: +// * NewCableLinkConfigState: // (related state variable: CableLinkConfigState) -// - +// - // - allowed values: // notReady|dsSyncComplete|usParamAcquired|rangingComplete|ipComplete|todEstablished|paramTransferComplete|registrationComplete|operational|accessDenied // // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - +// - // - allowed values: // Ethernet // // func (client *WANCableLinkConfig1) GetCableLinkConfigInfo() ( NewCableLinkConfigState string, - NewLinkType string, - err error) { - request := _WANCableLinkConfig1_GetCableLinkConfigInfo_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetCableLinkConfigInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetCableLinkConfigInfo_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetCableLinkConfigInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetCableLinkConfigInfo", &request, &response); err != nil { return } - NewCableLinkConfigState = response.NewCableLinkConfigState + // BEGIN Unmarshal arguments from response. - NewLinkType = response.NewLinkType + if NewCableLinkConfigState, err = soap.UnmarshalString(response.NewCableLinkConfigState); err != nil { + return + } + if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetDownstreamFrequency_Request is the XML structure for the input arguments for action GetDownstreamFrequency. -type _WANCableLinkConfig1_GetDownstreamFrequency_Request struct {} +type _WANCableLinkConfig1_GetDownstreamFrequency_Request struct{} // _WANCableLinkConfig1_GetDownstreamFrequency_Response is the XML structure for the output arguments for action GetDownstreamFrequency. type _WANCableLinkConfig1_GetDownstreamFrequency_Response struct { - NewDownstreamFrequency uint32 + NewDownstreamFrequency string } // GetDownstreamFrequency action. @@ -1048,36 +1117,39 @@ type _WANCableLinkConfig1_GetDownstreamFrequency_Response struct { // // Return values: // -// * NewDownstreamFrequency: +// * NewDownstreamFrequency: // (related state variable: DownstreamFrequency) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetDownstreamFrequency() ( NewDownstreamFrequency uint32, - err error) { - request := _WANCableLinkConfig1_GetDownstreamFrequency_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetDownstreamFrequency_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetDownstreamFrequency_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamFrequency", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamFrequency", &request, &response); err != nil { return } - NewDownstreamFrequency = response.NewDownstreamFrequency + // BEGIN Unmarshal arguments from response. + if NewDownstreamFrequency, err = soap.UnmarshalUi4(response.NewDownstreamFrequency); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetDownstreamModulation_Request is the XML structure for the input arguments for action GetDownstreamModulation. -type _WANCableLinkConfig1_GetDownstreamModulation_Request struct {} +type _WANCableLinkConfig1_GetDownstreamModulation_Request struct{} // _WANCableLinkConfig1_GetDownstreamModulation_Response is the XML structure for the output arguments for action GetDownstreamModulation. type _WANCableLinkConfig1_GetDownstreamModulation_Response struct { @@ -1090,41 +1162,44 @@ type _WANCableLinkConfig1_GetDownstreamModulation_Response struct { // // Return values: // -// * NewDownstreamModulation: +// * NewDownstreamModulation: // (related state variable: DownstreamModulation) -// - +// - // - allowed values: // 64QAM|256QAM // // func (client *WANCableLinkConfig1) GetDownstreamModulation() ( NewDownstreamModulation string, - err error) { - request := _WANCableLinkConfig1_GetDownstreamModulation_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetDownstreamModulation_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetDownstreamModulation_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamModulation", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetDownstreamModulation", &request, &response); err != nil { return } - NewDownstreamModulation = response.NewDownstreamModulation + // BEGIN Unmarshal arguments from response. + if NewDownstreamModulation, err = soap.UnmarshalString(response.NewDownstreamModulation); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamFrequency_Request is the XML structure for the input arguments for action GetUpstreamFrequency. -type _WANCableLinkConfig1_GetUpstreamFrequency_Request struct {} +type _WANCableLinkConfig1_GetUpstreamFrequency_Request struct{} // _WANCableLinkConfig1_GetUpstreamFrequency_Response is the XML structure for the output arguments for action GetUpstreamFrequency. type _WANCableLinkConfig1_GetUpstreamFrequency_Response struct { - NewUpstreamFrequency uint32 + NewUpstreamFrequency string } // GetUpstreamFrequency action. @@ -1133,36 +1208,39 @@ type _WANCableLinkConfig1_GetUpstreamFrequency_Response struct { // // Return values: // -// * NewUpstreamFrequency: +// * NewUpstreamFrequency: // (related state variable: UpstreamFrequency) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetUpstreamFrequency() ( NewUpstreamFrequency uint32, - err error) { - request := _WANCableLinkConfig1_GetUpstreamFrequency_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamFrequency_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamFrequency_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamFrequency", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamFrequency", &request, &response); err != nil { return } - NewUpstreamFrequency = response.NewUpstreamFrequency + // BEGIN Unmarshal arguments from response. + if NewUpstreamFrequency, err = soap.UnmarshalUi4(response.NewUpstreamFrequency); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamModulation_Request is the XML structure for the input arguments for action GetUpstreamModulation. -type _WANCableLinkConfig1_GetUpstreamModulation_Request struct {} +type _WANCableLinkConfig1_GetUpstreamModulation_Request struct{} // _WANCableLinkConfig1_GetUpstreamModulation_Response is the XML structure for the output arguments for action GetUpstreamModulation. type _WANCableLinkConfig1_GetUpstreamModulation_Response struct { @@ -1175,41 +1253,44 @@ type _WANCableLinkConfig1_GetUpstreamModulation_Response struct { // // Return values: // -// * NewUpstreamModulation: +// * NewUpstreamModulation: // (related state variable: UpstreamModulation) -// - +// - // - allowed values: // QPSK|16QAM // // func (client *WANCableLinkConfig1) GetUpstreamModulation() ( NewUpstreamModulation string, - err error) { - request := _WANCableLinkConfig1_GetUpstreamModulation_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamModulation_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamModulation_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamModulation", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamModulation", &request, &response); err != nil { return } - NewUpstreamModulation = response.NewUpstreamModulation + // BEGIN Unmarshal arguments from response. + if NewUpstreamModulation, err = soap.UnmarshalString(response.NewUpstreamModulation); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamChannelID_Request is the XML structure for the input arguments for action GetUpstreamChannelID. -type _WANCableLinkConfig1_GetUpstreamChannelID_Request struct {} +type _WANCableLinkConfig1_GetUpstreamChannelID_Request struct{} // _WANCableLinkConfig1_GetUpstreamChannelID_Response is the XML structure for the output arguments for action GetUpstreamChannelID. type _WANCableLinkConfig1_GetUpstreamChannelID_Response struct { - NewUpstreamChannelID uint32 + NewUpstreamChannelID string } // GetUpstreamChannelID action. @@ -1218,40 +1299,43 @@ type _WANCableLinkConfig1_GetUpstreamChannelID_Response struct { // // Return values: // -// * NewUpstreamChannelID: +// * NewUpstreamChannelID: // (related state variable: UpstreamChannelID) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetUpstreamChannelID() ( NewUpstreamChannelID uint32, - err error) { - request := _WANCableLinkConfig1_GetUpstreamChannelID_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamChannelID_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamChannelID_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamChannelID", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamChannelID", &request, &response); err != nil { return } - NewUpstreamChannelID = response.NewUpstreamChannelID + // BEGIN Unmarshal arguments from response. + if NewUpstreamChannelID, err = soap.UnmarshalUi4(response.NewUpstreamChannelID); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetUpstreamPowerLevel_Request is the XML structure for the input arguments for action GetUpstreamPowerLevel. -type _WANCableLinkConfig1_GetUpstreamPowerLevel_Request struct {} +type _WANCableLinkConfig1_GetUpstreamPowerLevel_Request struct{} // _WANCableLinkConfig1_GetUpstreamPowerLevel_Response is the XML structure for the output arguments for action GetUpstreamPowerLevel. type _WANCableLinkConfig1_GetUpstreamPowerLevel_Response struct { - NewUpstreamPowerLevel uint32 + NewUpstreamPowerLevel string } // GetUpstreamPowerLevel action. @@ -1260,36 +1344,39 @@ type _WANCableLinkConfig1_GetUpstreamPowerLevel_Response struct { // // Return values: // -// * NewUpstreamPowerLevel: +// * NewUpstreamPowerLevel: // (related state variable: UpstreamPowerLevel) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetUpstreamPowerLevel() ( NewUpstreamPowerLevel uint32, - err error) { - request := _WANCableLinkConfig1_GetUpstreamPowerLevel_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetUpstreamPowerLevel_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetUpstreamPowerLevel_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamPowerLevel", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetUpstreamPowerLevel", &request, &response); err != nil { return } - NewUpstreamPowerLevel = response.NewUpstreamPowerLevel + // BEGIN Unmarshal arguments from response. + if NewUpstreamPowerLevel, err = soap.UnmarshalUi4(response.NewUpstreamPowerLevel); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request is the XML structure for the input arguments for action GetBPIEncryptionEnabled. -type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request struct {} +type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request struct{} // _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response is the XML structure for the output arguments for action GetBPIEncryptionEnabled. type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response struct { @@ -1302,36 +1389,39 @@ type _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response struct { // // Return values: // -// * NewBPIEncryptionEnabled: +// * NewBPIEncryptionEnabled: // (related state variable: BPIEncryptionEnabled) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetBPIEncryptionEnabled() ( - NewBPIEncryptionEnabled string, - err error) { - request := _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request{ + NewBPIEncryptionEnabled bool, + err error, +) { + var request _WANCableLinkConfig1_GetBPIEncryptionEnabled_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetBPIEncryptionEnabled_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetBPIEncryptionEnabled", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetBPIEncryptionEnabled", &request, &response); err != nil { return } - NewBPIEncryptionEnabled = response.NewBPIEncryptionEnabled + // BEGIN Unmarshal arguments from response. + if NewBPIEncryptionEnabled, err = soap.UnmarshalBoolean(response.NewBPIEncryptionEnabled); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetConfigFile_Request is the XML structure for the input arguments for action GetConfigFile. -type _WANCableLinkConfig1_GetConfigFile_Request struct {} +type _WANCableLinkConfig1_GetConfigFile_Request struct{} // _WANCableLinkConfig1_GetConfigFile_Response is the XML structure for the output arguments for action GetConfigFile. type _WANCableLinkConfig1_GetConfigFile_Response struct { @@ -1344,36 +1434,39 @@ type _WANCableLinkConfig1_GetConfigFile_Response struct { // // Return values: // -// * NewConfigFile: +// * NewConfigFile: // (related state variable: ConfigFile) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetConfigFile() ( NewConfigFile string, - err error) { - request := _WANCableLinkConfig1_GetConfigFile_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetConfigFile_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetConfigFile_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetConfigFile", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetConfigFile", &request, &response); err != nil { return } - NewConfigFile = response.NewConfigFile + // BEGIN Unmarshal arguments from response. + if NewConfigFile, err = soap.UnmarshalString(response.NewConfigFile); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCableLinkConfig1_GetTFTPServer_Request is the XML structure for the input arguments for action GetTFTPServer. -type _WANCableLinkConfig1_GetTFTPServer_Request struct {} +type _WANCableLinkConfig1_GetTFTPServer_Request struct{} // _WANCableLinkConfig1_GetTFTPServer_Response is the XML structure for the output arguments for action GetTFTPServer. type _WANCableLinkConfig1_GetTFTPServer_Response struct { @@ -1386,88 +1479,90 @@ type _WANCableLinkConfig1_GetTFTPServer_Response struct { // // Return values: // -// * NewTFTPServer: +// * NewTFTPServer: // (related state variable: TFTPServer) -// - -// - +// - +// - // // func (client *WANCableLinkConfig1) GetTFTPServer() ( NewTFTPServer string, - err error) { - request := _WANCableLinkConfig1_GetTFTPServer_Request{ + err error, +) { + var request _WANCableLinkConfig1_GetTFTPServer_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCableLinkConfig1_GetTFTPServer_Response - err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetTFTPServer", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCableLinkConfig_1, "GetTFTPServer", &request, &response); err != nil { return } - NewTFTPServer = response.NewTFTPServer + // BEGIN Unmarshal arguments from response. + if NewTFTPServer, err = soap.UnmarshalString(response.NewTFTPServer); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANCommonInterfaceConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANCommonInterfaceConfig:1". type WANCommonInterfaceConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANCommonInterfaceConfig1_SetEnabledForInternet_Request is the XML structure for the input arguments for action SetEnabledForInternet. type _WANCommonInterfaceConfig1_SetEnabledForInternet_Request struct { NewEnabledForInternet string } // _WANCommonInterfaceConfig1_SetEnabledForInternet_Response is the XML structure for the output arguments for action SetEnabledForInternet. -type _WANCommonInterfaceConfig1_SetEnabledForInternet_Response struct {} +type _WANCommonInterfaceConfig1_SetEnabledForInternet_Response struct{} // SetEnabledForInternet action. // Arguments: // -// * NewEnabledForInternet: +// * NewEnabledForInternet: // (related state variable: EnabledForInternet) -// - -// - +// - +// - // // // // Return values: // func (client *WANCommonInterfaceConfig1) SetEnabledForInternet( - NewEnabledForInternet string, -) ( err error) { - request := _WANCommonInterfaceConfig1_SetEnabledForInternet_Request{ + NewEnabledForInternet bool, +) ( + err error, +) { + var request _WANCommonInterfaceConfig1_SetEnabledForInternet_Request + // BEGIN Marshal arguments into request. - NewEnabledForInternet: NewEnabledForInternet, - - } - var response _WANCommonInterfaceConfig1_SetEnabledForInternet_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "SetEnabledForInternet", &request, &response) - if err != nil { + if request.NewEnabledForInternet, err = soap.MarshalBoolean(NewEnabledForInternet); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANCommonInterfaceConfig1_SetEnabledForInternet_Response + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "SetEnabledForInternet", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetEnabledForInternet_Request is the XML structure for the input arguments for action GetEnabledForInternet. -type _WANCommonInterfaceConfig1_GetEnabledForInternet_Request struct {} +type _WANCommonInterfaceConfig1_GetEnabledForInternet_Request struct{} // _WANCommonInterfaceConfig1_GetEnabledForInternet_Response is the XML structure for the output arguments for action GetEnabledForInternet. type _WANCommonInterfaceConfig1_GetEnabledForInternet_Response struct { @@ -1480,44 +1575,47 @@ type _WANCommonInterfaceConfig1_GetEnabledForInternet_Response struct { // // Return values: // -// * NewEnabledForInternet: +// * NewEnabledForInternet: // (related state variable: EnabledForInternet) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetEnabledForInternet() ( - NewEnabledForInternet string, - err error) { - request := _WANCommonInterfaceConfig1_GetEnabledForInternet_Request{ + NewEnabledForInternet bool, + err error, +) { + var request _WANCommonInterfaceConfig1_GetEnabledForInternet_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetEnabledForInternet_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetEnabledForInternet", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetEnabledForInternet", &request, &response); err != nil { return } - NewEnabledForInternet = response.NewEnabledForInternet + // BEGIN Unmarshal arguments from response. + if NewEnabledForInternet, err = soap.UnmarshalBoolean(response.NewEnabledForInternet); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request is the XML structure for the input arguments for action GetCommonLinkProperties. -type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request struct {} +type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request struct{} // _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response is the XML structure for the output arguments for action GetCommonLinkProperties. type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response struct { NewWANAccessType string - NewLayer1UpstreamMaxBitRate uint32 + NewLayer1UpstreamMaxBitRate string - NewLayer1DownstreamMaxBitRate uint32 + NewLayer1DownstreamMaxBitRate string NewPhysicalLinkStatus string } @@ -1528,68 +1626,74 @@ type _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response struct { // // Return values: // -// * NewWANAccessType: +// * NewWANAccessType: // (related state variable: WANAccessType) -// - +// - // - allowed values: // DSL|POTS|Cable|Ethernet // // -// * NewLayer1UpstreamMaxBitRate: +// * NewLayer1UpstreamMaxBitRate: // (related state variable: Layer1UpstreamMaxBitRate) -// - -// - +// - +// - // // -// * NewLayer1DownstreamMaxBitRate: +// * NewLayer1DownstreamMaxBitRate: // (related state variable: Layer1DownstreamMaxBitRate) -// - -// - +// - +// - // // -// * NewPhysicalLinkStatus: +// * NewPhysicalLinkStatus: // (related state variable: PhysicalLinkStatus) -// - +// - // - allowed values: // Up|Down // // func (client *WANCommonInterfaceConfig1) GetCommonLinkProperties() ( NewWANAccessType string, - NewLayer1UpstreamMaxBitRate uint32, - NewLayer1DownstreamMaxBitRate uint32, - NewPhysicalLinkStatus string, - err error) { - request := _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetCommonLinkProperties_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetCommonLinkProperties_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetCommonLinkProperties", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetCommonLinkProperties", &request, &response); err != nil { return } - NewWANAccessType = response.NewWANAccessType + // BEGIN Unmarshal arguments from response. - NewLayer1UpstreamMaxBitRate = response.NewLayer1UpstreamMaxBitRate + if NewWANAccessType, err = soap.UnmarshalString(response.NewWANAccessType); err != nil { + return + } - NewLayer1DownstreamMaxBitRate = response.NewLayer1DownstreamMaxBitRate + if NewLayer1UpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1UpstreamMaxBitRate); err != nil { + return + } - NewPhysicalLinkStatus = response.NewPhysicalLinkStatus + if NewLayer1DownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewLayer1DownstreamMaxBitRate); err != nil { + return + } + if NewPhysicalLinkStatus, err = soap.UnmarshalString(response.NewPhysicalLinkStatus); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetWANAccessProvider_Request is the XML structure for the input arguments for action GetWANAccessProvider. -type _WANCommonInterfaceConfig1_GetWANAccessProvider_Request struct {} +type _WANCommonInterfaceConfig1_GetWANAccessProvider_Request struct{} // _WANCommonInterfaceConfig1_GetWANAccessProvider_Response is the XML structure for the output arguments for action GetWANAccessProvider. type _WANCommonInterfaceConfig1_GetWANAccessProvider_Response struct { @@ -1602,40 +1706,43 @@ type _WANCommonInterfaceConfig1_GetWANAccessProvider_Response struct { // // Return values: // -// * NewWANAccessProvider: +// * NewWANAccessProvider: // (related state variable: WANAccessProvider) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetWANAccessProvider() ( NewWANAccessProvider string, - err error) { - request := _WANCommonInterfaceConfig1_GetWANAccessProvider_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetWANAccessProvider_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetWANAccessProvider_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetWANAccessProvider", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetWANAccessProvider", &request, &response); err != nil { return } - NewWANAccessProvider = response.NewWANAccessProvider + // BEGIN Unmarshal arguments from response. + if NewWANAccessProvider, err = soap.UnmarshalString(response.NewWANAccessProvider); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request is the XML structure for the input arguments for action GetMaximumActiveConnections. -type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request struct {} +type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request struct{} // _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response is the XML structure for the output arguments for action GetMaximumActiveConnections. type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response struct { - NewMaximumActiveConnections uint16 + NewMaximumActiveConnections string } // GetMaximumActiveConnections action. @@ -1644,40 +1751,43 @@ type _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response struct { // // Return values: // -// * NewMaximumActiveConnections: +// * NewMaximumActiveConnections: // (related state variable: MaximumActiveConnections) -// - allowed range: 1 to -// - +// - allowed range: 1 to +// - // // func (client *WANCommonInterfaceConfig1) GetMaximumActiveConnections() ( NewMaximumActiveConnections uint16, - err error) { - request := _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetMaximumActiveConnections_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetMaximumActiveConnections", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetMaximumActiveConnections", &request, &response); err != nil { return } - NewMaximumActiveConnections = response.NewMaximumActiveConnections + // BEGIN Unmarshal arguments from response. + if NewMaximumActiveConnections, err = soap.UnmarshalUi2(response.NewMaximumActiveConnections); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalBytesSent_Request is the XML structure for the input arguments for action GetTotalBytesSent. -type _WANCommonInterfaceConfig1_GetTotalBytesSent_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalBytesSent_Request struct{} // _WANCommonInterfaceConfig1_GetTotalBytesSent_Response is the XML structure for the output arguments for action GetTotalBytesSent. type _WANCommonInterfaceConfig1_GetTotalBytesSent_Response struct { - NewTotalBytesSent uint32 + NewTotalBytesSent string } // GetTotalBytesSent action. @@ -1686,40 +1796,43 @@ type _WANCommonInterfaceConfig1_GetTotalBytesSent_Response struct { // // Return values: // -// * NewTotalBytesSent: +// * NewTotalBytesSent: // (related state variable: TotalBytesSent) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalBytesSent() ( NewTotalBytesSent uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalBytesSent_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalBytesSent_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalBytesSent_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesSent", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesSent", &request, &response); err != nil { return } - NewTotalBytesSent = response.NewTotalBytesSent + // BEGIN Unmarshal arguments from response. + if NewTotalBytesSent, err = soap.UnmarshalUi4(response.NewTotalBytesSent); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request is the XML structure for the input arguments for action GetTotalBytesReceived. -type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request struct{} // _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response is the XML structure for the output arguments for action GetTotalBytesReceived. type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response struct { - NewTotalBytesReceived uint32 + NewTotalBytesReceived string } // GetTotalBytesReceived action. @@ -1728,40 +1841,43 @@ type _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response struct { // // Return values: // -// * NewTotalBytesReceived: +// * NewTotalBytesReceived: // (related state variable: TotalBytesReceived) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalBytesReceived() ( NewTotalBytesReceived uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalBytesReceived_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalBytesReceived_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesReceived", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalBytesReceived", &request, &response); err != nil { return } - NewTotalBytesReceived = response.NewTotalBytesReceived + // BEGIN Unmarshal arguments from response. + if NewTotalBytesReceived, err = soap.UnmarshalUi4(response.NewTotalBytesReceived); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request is the XML structure for the input arguments for action GetTotalPacketsSent. -type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request struct{} // _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response is the XML structure for the output arguments for action GetTotalPacketsSent. type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response struct { - NewTotalPacketsSent uint32 + NewTotalPacketsSent string } // GetTotalPacketsSent action. @@ -1770,40 +1886,43 @@ type _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response struct { // // Return values: // -// * NewTotalPacketsSent: +// * NewTotalPacketsSent: // (related state variable: TotalPacketsSent) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalPacketsSent() ( NewTotalPacketsSent uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalPacketsSent_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalPacketsSent_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsSent", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsSent", &request, &response); err != nil { return } - NewTotalPacketsSent = response.NewTotalPacketsSent + // BEGIN Unmarshal arguments from response. + if NewTotalPacketsSent, err = soap.UnmarshalUi4(response.NewTotalPacketsSent); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request is the XML structure for the input arguments for action GetTotalPacketsReceived. -type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request struct {} +type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request struct{} // _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response is the XML structure for the output arguments for action GetTotalPacketsReceived. type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response struct { - NewTotalPacketsReceived uint32 + NewTotalPacketsReceived string } // GetTotalPacketsReceived action. @@ -1812,37 +1931,40 @@ type _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response struct { // // Return values: // -// * NewTotalPacketsReceived: +// * NewTotalPacketsReceived: // (related state variable: TotalPacketsReceived) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetTotalPacketsReceived() ( NewTotalPacketsReceived uint32, - err error) { - request := _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANCommonInterfaceConfig1_GetTotalPacketsReceived_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsReceived", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetTotalPacketsReceived", &request, &response); err != nil { return } - NewTotalPacketsReceived = response.NewTotalPacketsReceived + // BEGIN Unmarshal arguments from response. + if NewTotalPacketsReceived, err = soap.UnmarshalUi4(response.NewTotalPacketsReceived); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANCommonInterfaceConfig1_GetActiveConnection_Request is the XML structure for the input arguments for action GetActiveConnection. type _WANCommonInterfaceConfig1_GetActiveConnection_Request struct { - NewActiveConnectionIndex uint16 + NewActiveConnectionIndex string } // _WANCommonInterfaceConfig1_GetActiveConnection_Response is the XML structure for the output arguments for action GetActiveConnection. @@ -1855,82 +1977,83 @@ type _WANCommonInterfaceConfig1_GetActiveConnection_Response struct { // GetActiveConnection action. // Arguments: // -// * NewActiveConnectionIndex: +// * NewActiveConnectionIndex: // (related state variable: NumberOfActiveConnections) -// - -// - +// - +// - // // // // Return values: // -// * NewActiveConnDeviceContainer: +// * NewActiveConnDeviceContainer: // (related state variable: ActiveConnectionDeviceContainer) -// - -// - +// - +// - // // -// * NewActiveConnectionServiceID: +// * NewActiveConnectionServiceID: // (related state variable: ActiveConnectionServiceID) -// - -// - +// - +// - // // func (client *WANCommonInterfaceConfig1) GetActiveConnection( NewActiveConnectionIndex uint16, ) ( NewActiveConnDeviceContainer string, - NewActiveConnectionServiceID string, - err error) { - request := _WANCommonInterfaceConfig1_GetActiveConnection_Request{ + err error, +) { + var request _WANCommonInterfaceConfig1_GetActiveConnection_Request + // BEGIN Marshal arguments into request. - NewActiveConnectionIndex: NewActiveConnectionIndex, - - } - var response _WANCommonInterfaceConfig1_GetActiveConnection_Response - err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetActiveConnection", &request, &response) - if err != nil { + if request.NewActiveConnectionIndex, err = soap.MarshalUi2(NewActiveConnectionIndex); err != nil { return } - NewActiveConnDeviceContainer = response.NewActiveConnDeviceContainer + // END Marshal arguments into request. - NewActiveConnectionServiceID = response.NewActiveConnectionServiceID + // Perform the SOAP call. + var response _WANCommonInterfaceConfig1_GetActiveConnection_Response + if err = client.SOAPClient.PerformAction(URN_WANCommonInterfaceConfig_1, "GetActiveConnection", &request, &response); err != nil { + return + } + // BEGIN Unmarshal arguments from response. + + if NewActiveConnDeviceContainer, err = soap.UnmarshalString(response.NewActiveConnDeviceContainer); err != nil { + return + } + + if NewActiveConnectionServiceID, err = soap.UnmarshalString(response.NewActiveConnectionServiceID); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANDSLLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANDSLLinkConfig:1". type WANDSLLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANDSLLinkConfig1_SetDSLLinkType_Request is the XML structure for the input arguments for action SetDSLLinkType. type _WANDSLLinkConfig1_SetDSLLinkType_Request struct { NewLinkType string } // _WANDSLLinkConfig1_SetDSLLinkType_Response is the XML structure for the output arguments for action SetDSLLinkType. -type _WANDSLLinkConfig1_SetDSLLinkType_Response struct {} +type _WANDSLLinkConfig1_SetDSLLinkType_Response struct{} // SetDSLLinkType action. // Arguments: // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - -// - +// - +// - // // // @@ -1938,28 +2061,32 @@ type _WANDSLLinkConfig1_SetDSLLinkType_Response struct {} // func (client *WANDSLLinkConfig1) SetDSLLinkType( NewLinkType string, -) ( err error) { - request := _WANDSLLinkConfig1_SetDSLLinkType_Request{ +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetDSLLinkType_Request + // BEGIN Marshal arguments into request. - NewLinkType: NewLinkType, - - } - var response _WANDSLLinkConfig1_SetDSLLinkType_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDSLLinkType", &request, &response) - if err != nil { + if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetDSLLinkType_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDSLLinkType", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetDSLLinkInfo_Request is the XML structure for the input arguments for action GetDSLLinkInfo. -type _WANDSLLinkConfig1_GetDSLLinkInfo_Request struct {} +type _WANDSLLinkConfig1_GetDSLLinkInfo_Request struct{} // _WANDSLLinkConfig1_GetDSLLinkInfo_Response is the XML structure for the output arguments for action GetDSLLinkInfo. type _WANDSLLinkConfig1_GetDSLLinkInfo_Response struct { @@ -1974,47 +2101,51 @@ type _WANDSLLinkConfig1_GetDSLLinkInfo_Response struct { // // Return values: // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - -// - +// - +// - // // -// * NewLinkStatus: +// * NewLinkStatus: // (related state variable: LinkStatus) -// - +// - // - allowed values: // Up|Down // // func (client *WANDSLLinkConfig1) GetDSLLinkInfo() ( NewLinkType string, - NewLinkStatus string, - err error) { - request := _WANDSLLinkConfig1_GetDSLLinkInfo_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetDSLLinkInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetDSLLinkInfo_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDSLLinkInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDSLLinkInfo", &request, &response); err != nil { return } - NewLinkType = response.NewLinkType + // BEGIN Unmarshal arguments from response. - NewLinkStatus = response.NewLinkStatus + if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil { + return + } + if NewLinkStatus, err = soap.UnmarshalString(response.NewLinkStatus); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetAutoConfig_Request is the XML structure for the input arguments for action GetAutoConfig. -type _WANDSLLinkConfig1_GetAutoConfig_Request struct {} +type _WANDSLLinkConfig1_GetAutoConfig_Request struct{} // _WANDSLLinkConfig1_GetAutoConfig_Response is the XML structure for the output arguments for action GetAutoConfig. type _WANDSLLinkConfig1_GetAutoConfig_Response struct { @@ -2027,36 +2158,39 @@ type _WANDSLLinkConfig1_GetAutoConfig_Response struct { // // Return values: // -// * NewAutoConfig: +// * NewAutoConfig: // (related state variable: AutoConfig) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetAutoConfig() ( - NewAutoConfig string, - err error) { - request := _WANDSLLinkConfig1_GetAutoConfig_Request{ + NewAutoConfig bool, + err error, +) { + var request _WANDSLLinkConfig1_GetAutoConfig_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetAutoConfig_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetAutoConfig", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetAutoConfig", &request, &response); err != nil { return } - NewAutoConfig = response.NewAutoConfig + // BEGIN Unmarshal arguments from response. + if NewAutoConfig, err = soap.UnmarshalBoolean(response.NewAutoConfig); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetModulationType_Request is the XML structure for the input arguments for action GetModulationType. -type _WANDSLLinkConfig1_GetModulationType_Request struct {} +type _WANDSLLinkConfig1_GetModulationType_Request struct{} // _WANDSLLinkConfig1_GetModulationType_Response is the XML structure for the output arguments for action GetModulationType. type _WANDSLLinkConfig1_GetModulationType_Response struct { @@ -2069,49 +2203,52 @@ type _WANDSLLinkConfig1_GetModulationType_Response struct { // // Return values: // -// * NewModulationType: +// * NewModulationType: // (related state variable: ModulationType) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetModulationType() ( NewModulationType string, - err error) { - request := _WANDSLLinkConfig1_GetModulationType_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetModulationType_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetModulationType_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetModulationType", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetModulationType", &request, &response); err != nil { return } - NewModulationType = response.NewModulationType + // BEGIN Unmarshal arguments from response. + if NewModulationType, err = soap.UnmarshalString(response.NewModulationType); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_SetDestinationAddress_Request is the XML structure for the input arguments for action SetDestinationAddress. type _WANDSLLinkConfig1_SetDestinationAddress_Request struct { NewDestinationAddress string } // _WANDSLLinkConfig1_SetDestinationAddress_Response is the XML structure for the output arguments for action SetDestinationAddress. -type _WANDSLLinkConfig1_SetDestinationAddress_Response struct {} +type _WANDSLLinkConfig1_SetDestinationAddress_Response struct{} // SetDestinationAddress action. // Arguments: // -// * NewDestinationAddress: +// * NewDestinationAddress: // (related state variable: DestinationAddress) -// - -// - +// - +// - // // // @@ -2119,28 +2256,32 @@ type _WANDSLLinkConfig1_SetDestinationAddress_Response struct {} // func (client *WANDSLLinkConfig1) SetDestinationAddress( NewDestinationAddress string, -) ( err error) { - request := _WANDSLLinkConfig1_SetDestinationAddress_Request{ +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetDestinationAddress_Request + // BEGIN Marshal arguments into request. - NewDestinationAddress: NewDestinationAddress, - - } - var response _WANDSLLinkConfig1_SetDestinationAddress_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDestinationAddress", &request, &response) - if err != nil { + if request.NewDestinationAddress, err = soap.MarshalString(NewDestinationAddress); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetDestinationAddress_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetDestinationAddress", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetDestinationAddress_Request is the XML structure for the input arguments for action GetDestinationAddress. -type _WANDSLLinkConfig1_GetDestinationAddress_Request struct {} +type _WANDSLLinkConfig1_GetDestinationAddress_Request struct{} // _WANDSLLinkConfig1_GetDestinationAddress_Response is the XML structure for the output arguments for action GetDestinationAddress. type _WANDSLLinkConfig1_GetDestinationAddress_Response struct { @@ -2153,49 +2294,52 @@ type _WANDSLLinkConfig1_GetDestinationAddress_Response struct { // // Return values: // -// * NewDestinationAddress: +// * NewDestinationAddress: // (related state variable: DestinationAddress) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetDestinationAddress() ( NewDestinationAddress string, - err error) { - request := _WANDSLLinkConfig1_GetDestinationAddress_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetDestinationAddress_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetDestinationAddress_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDestinationAddress", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetDestinationAddress", &request, &response); err != nil { return } - NewDestinationAddress = response.NewDestinationAddress + // BEGIN Unmarshal arguments from response. + if NewDestinationAddress, err = soap.UnmarshalString(response.NewDestinationAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_SetATMEncapsulation_Request is the XML structure for the input arguments for action SetATMEncapsulation. type _WANDSLLinkConfig1_SetATMEncapsulation_Request struct { NewATMEncapsulation string } // _WANDSLLinkConfig1_SetATMEncapsulation_Response is the XML structure for the output arguments for action SetATMEncapsulation. -type _WANDSLLinkConfig1_SetATMEncapsulation_Response struct {} +type _WANDSLLinkConfig1_SetATMEncapsulation_Response struct{} // SetATMEncapsulation action. // Arguments: // -// * NewATMEncapsulation: +// * NewATMEncapsulation: // (related state variable: ATMEncapsulation) -// - -// - +// - +// - // // // @@ -2203,28 +2347,32 @@ type _WANDSLLinkConfig1_SetATMEncapsulation_Response struct {} // func (client *WANDSLLinkConfig1) SetATMEncapsulation( NewATMEncapsulation string, -) ( err error) { - request := _WANDSLLinkConfig1_SetATMEncapsulation_Request{ +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetATMEncapsulation_Request + // BEGIN Marshal arguments into request. - NewATMEncapsulation: NewATMEncapsulation, - - } - var response _WANDSLLinkConfig1_SetATMEncapsulation_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetATMEncapsulation", &request, &response) - if err != nil { + if request.NewATMEncapsulation, err = soap.MarshalString(NewATMEncapsulation); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetATMEncapsulation_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetATMEncapsulation", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetATMEncapsulation_Request is the XML structure for the input arguments for action GetATMEncapsulation. -type _WANDSLLinkConfig1_GetATMEncapsulation_Request struct {} +type _WANDSLLinkConfig1_GetATMEncapsulation_Request struct{} // _WANDSLLinkConfig1_GetATMEncapsulation_Response is the XML structure for the output arguments for action GetATMEncapsulation. type _WANDSLLinkConfig1_GetATMEncapsulation_Response struct { @@ -2237,78 +2385,85 @@ type _WANDSLLinkConfig1_GetATMEncapsulation_Response struct { // // Return values: // -// * NewATMEncapsulation: +// * NewATMEncapsulation: // (related state variable: ATMEncapsulation) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetATMEncapsulation() ( NewATMEncapsulation string, - err error) { - request := _WANDSLLinkConfig1_GetATMEncapsulation_Request{ + err error, +) { + var request _WANDSLLinkConfig1_GetATMEncapsulation_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetATMEncapsulation_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetATMEncapsulation", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetATMEncapsulation", &request, &response); err != nil { return } - NewATMEncapsulation = response.NewATMEncapsulation + // BEGIN Unmarshal arguments from response. + if NewATMEncapsulation, err = soap.UnmarshalString(response.NewATMEncapsulation); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_SetFCSPreserved_Request is the XML structure for the input arguments for action SetFCSPreserved. type _WANDSLLinkConfig1_SetFCSPreserved_Request struct { NewFCSPreserved string } // _WANDSLLinkConfig1_SetFCSPreserved_Response is the XML structure for the output arguments for action SetFCSPreserved. -type _WANDSLLinkConfig1_SetFCSPreserved_Response struct {} +type _WANDSLLinkConfig1_SetFCSPreserved_Response struct{} // SetFCSPreserved action. // Arguments: // -// * NewFCSPreserved: +// * NewFCSPreserved: // (related state variable: FCSPreserved) -// - -// - +// - +// - // // // // Return values: // func (client *WANDSLLinkConfig1) SetFCSPreserved( - NewFCSPreserved string, -) ( err error) { - request := _WANDSLLinkConfig1_SetFCSPreserved_Request{ + NewFCSPreserved bool, +) ( + err error, +) { + var request _WANDSLLinkConfig1_SetFCSPreserved_Request + // BEGIN Marshal arguments into request. - NewFCSPreserved: NewFCSPreserved, - - } - var response _WANDSLLinkConfig1_SetFCSPreserved_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetFCSPreserved", &request, &response) - if err != nil { + if request.NewFCSPreserved, err = soap.MarshalBoolean(NewFCSPreserved); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANDSLLinkConfig1_SetFCSPreserved_Response + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "SetFCSPreserved", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANDSLLinkConfig1_GetFCSPreserved_Request is the XML structure for the input arguments for action GetFCSPreserved. -type _WANDSLLinkConfig1_GetFCSPreserved_Request struct {} +type _WANDSLLinkConfig1_GetFCSPreserved_Request struct{} // _WANDSLLinkConfig1_GetFCSPreserved_Response is the XML structure for the output arguments for action GetFCSPreserved. type _WANDSLLinkConfig1_GetFCSPreserved_Response struct { @@ -2321,46 +2476,44 @@ type _WANDSLLinkConfig1_GetFCSPreserved_Response struct { // // Return values: // -// * NewFCSPreserved: +// * NewFCSPreserved: // (related state variable: FCSPreserved) -// - -// - +// - +// - // // func (client *WANDSLLinkConfig1) GetFCSPreserved() ( - NewFCSPreserved string, - err error) { - request := _WANDSLLinkConfig1_GetFCSPreserved_Request{ + NewFCSPreserved bool, + err error, +) { + var request _WANDSLLinkConfig1_GetFCSPreserved_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANDSLLinkConfig1_GetFCSPreserved_Response - err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetFCSPreserved", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANDSLLinkConfig_1, "GetFCSPreserved", &request, &response); err != nil { return } - NewFCSPreserved = response.NewFCSPreserved + // BEGIN Unmarshal arguments from response. + if NewFCSPreserved, err = soap.UnmarshalBoolean(response.NewFCSPreserved); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANEthernetLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANEthernetLinkConfig:1". type WANEthernetLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request is the XML structure for the input arguments for action GetEthernetLinkStatus. -type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request struct {} +type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request struct{} // _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response is the XML structure for the output arguments for action GetEthernetLinkStatus. type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response struct { @@ -2373,60 +2526,58 @@ type _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response struct { // // Return values: // -// * NewEthernetLinkStatus: +// * NewEthernetLinkStatus: // (related state variable: EthernetLinkStatus) -// - +// - // - allowed values: // Up|Down // // func (client *WANEthernetLinkConfig1) GetEthernetLinkStatus() ( NewEthernetLinkStatus string, - err error) { - request := _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request{ + err error, +) { + var request _WANEthernetLinkConfig1_GetEthernetLinkStatus_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANEthernetLinkConfig1_GetEthernetLinkStatus_Response - err = client.SOAPClient.PerformAction(URN_WANEthernetLinkConfig_1, "GetEthernetLinkStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANEthernetLinkConfig_1, "GetEthernetLinkStatus", &request, &response); err != nil { return } - NewEthernetLinkStatus = response.NewEthernetLinkStatus + // BEGIN Unmarshal arguments from response. + if NewEthernetLinkStatus, err = soap.UnmarshalString(response.NewEthernetLinkStatus); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANIPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:1". type WANIPConnection1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANIPConnection1_SetConnectionType_Request is the XML structure for the input arguments for action SetConnectionType. type _WANIPConnection1_SetConnectionType_Request struct { NewConnectionType string } // _WANIPConnection1_SetConnectionType_Response is the XML structure for the output arguments for action SetConnectionType. -type _WANIPConnection1_SetConnectionType_Response struct {} +type _WANIPConnection1_SetConnectionType_Response struct{} // SetConnectionType action. // Arguments: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // // @@ -2434,28 +2585,32 @@ type _WANIPConnection1_SetConnectionType_Response struct {} // func (client *WANIPConnection1) SetConnectionType( NewConnectionType string, -) ( err error) { - request := _WANIPConnection1_SetConnectionType_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetConnectionType_Request + // BEGIN Marshal arguments into request. - NewConnectionType: NewConnectionType, - - } - var response _WANIPConnection1_SetConnectionType_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetConnectionType", &request, &response) - if err != nil { + if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetConnectionType_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetConnectionType", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetConnectionTypeInfo_Request is the XML structure for the input arguments for action GetConnectionTypeInfo. -type _WANIPConnection1_GetConnectionTypeInfo_Request struct {} +type _WANIPConnection1_GetConnectionTypeInfo_Request struct{} // _WANIPConnection1_GetConnectionTypeInfo_Response is the XML structure for the output arguments for action GetConnectionTypeInfo. type _WANIPConnection1_GetConnectionTypeInfo_Response struct { @@ -2470,50 +2625,54 @@ type _WANIPConnection1_GetConnectionTypeInfo_Response struct { // // Return values: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // -// * NewPossibleConnectionTypes: +// * NewPossibleConnectionTypes: // (related state variable: PossibleConnectionTypes) -// - +// - // - allowed values: // Unconfigured|IP_Routed|IP_Bridged // // func (client *WANIPConnection1) GetConnectionTypeInfo() ( NewConnectionType string, - NewPossibleConnectionTypes string, - err error) { - request := _WANIPConnection1_GetConnectionTypeInfo_Request{ + err error, +) { + var request _WANIPConnection1_GetConnectionTypeInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetConnectionTypeInfo_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetConnectionTypeInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetConnectionTypeInfo", &request, &response); err != nil { return } - NewConnectionType = response.NewConnectionType + // BEGIN Unmarshal arguments from response. - NewPossibleConnectionTypes = response.NewPossibleConnectionTypes + if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil { + return + } + if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_RequestConnection_Request is the XML structure for the input arguments for action RequestConnection. -type _WANIPConnection1_RequestConnection_Request struct {} +type _WANIPConnection1_RequestConnection_Request struct{} // _WANIPConnection1_RequestConnection_Response is the XML structure for the output arguments for action RequestConnection. -type _WANIPConnection1_RequestConnection_Response struct {} +type _WANIPConnection1_RequestConnection_Response struct{} // RequestConnection action. // Arguments: @@ -2521,29 +2680,31 @@ type _WANIPConnection1_RequestConnection_Response struct {} // // Return values: // -func (client *WANIPConnection1) RequestConnection() ( err error) { - request := _WANIPConnection1_RequestConnection_Request{ +func (client *WANIPConnection1) RequestConnection() ( + err error, +) { + var request _WANIPConnection1_RequestConnection_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_RequestConnection_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestConnection", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestConnection", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_RequestTermination_Request is the XML structure for the input arguments for action RequestTermination. -type _WANIPConnection1_RequestTermination_Request struct {} +type _WANIPConnection1_RequestTermination_Request struct{} // _WANIPConnection1_RequestTermination_Response is the XML structure for the output arguments for action RequestTermination. -type _WANIPConnection1_RequestTermination_Response struct {} +type _WANIPConnection1_RequestTermination_Response struct{} // RequestTermination action. // Arguments: @@ -2551,29 +2712,31 @@ type _WANIPConnection1_RequestTermination_Response struct {} // // Return values: // -func (client *WANIPConnection1) RequestTermination() ( err error) { - request := _WANIPConnection1_RequestTermination_Request{ +func (client *WANIPConnection1) RequestTermination() ( + err error, +) { + var request _WANIPConnection1_RequestTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_RequestTermination_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "RequestTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_ForceTermination_Request is the XML structure for the input arguments for action ForceTermination. -type _WANIPConnection1_ForceTermination_Request struct {} +type _WANIPConnection1_ForceTermination_Request struct{} // _WANIPConnection1_ForceTermination_Response is the XML structure for the output arguments for action ForceTermination. -type _WANIPConnection1_ForceTermination_Response struct {} +type _WANIPConnection1_ForceTermination_Response struct{} // ForceTermination action. // Arguments: @@ -2581,39 +2744,41 @@ type _WANIPConnection1_ForceTermination_Response struct {} // // Return values: // -func (client *WANIPConnection1) ForceTermination() ( err error) { - request := _WANIPConnection1_ForceTermination_Request{ +func (client *WANIPConnection1) ForceTermination() ( + err error, +) { + var request _WANIPConnection1_ForceTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_ForceTermination_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "ForceTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "ForceTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_SetAutoDisconnectTime_Request is the XML structure for the input arguments for action SetAutoDisconnectTime. type _WANIPConnection1_SetAutoDisconnectTime_Request struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // _WANIPConnection1_SetAutoDisconnectTime_Response is the XML structure for the output arguments for action SetAutoDisconnectTime. -type _WANIPConnection1_SetAutoDisconnectTime_Response struct {} +type _WANIPConnection1_SetAutoDisconnectTime_Response struct{} // SetAutoDisconnectTime action. // Arguments: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // // @@ -2621,41 +2786,45 @@ type _WANIPConnection1_SetAutoDisconnectTime_Response struct {} // func (client *WANIPConnection1) SetAutoDisconnectTime( NewAutoDisconnectTime uint32, -) ( err error) { - request := _WANIPConnection1_SetAutoDisconnectTime_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewAutoDisconnectTime: NewAutoDisconnectTime, - - } - var response _WANIPConnection1_SetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetAutoDisconnectTime", &request, &response) - if err != nil { + if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetAutoDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetAutoDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_SetIdleDisconnectTime_Request is the XML structure for the input arguments for action SetIdleDisconnectTime. type _WANIPConnection1_SetIdleDisconnectTime_Request struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // _WANIPConnection1_SetIdleDisconnectTime_Response is the XML structure for the output arguments for action SetIdleDisconnectTime. -type _WANIPConnection1_SetIdleDisconnectTime_Response struct {} +type _WANIPConnection1_SetIdleDisconnectTime_Response struct{} // SetIdleDisconnectTime action. // Arguments: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // // @@ -2663,41 +2832,45 @@ type _WANIPConnection1_SetIdleDisconnectTime_Response struct {} // func (client *WANIPConnection1) SetIdleDisconnectTime( NewIdleDisconnectTime uint32, -) ( err error) { - request := _WANIPConnection1_SetIdleDisconnectTime_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewIdleDisconnectTime: NewIdleDisconnectTime, - - } - var response _WANIPConnection1_SetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetIdleDisconnectTime", &request, &response) - if err != nil { + if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetIdleDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetIdleDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_SetWarnDisconnectDelay_Request is the XML structure for the input arguments for action SetWarnDisconnectDelay. type _WANIPConnection1_SetWarnDisconnectDelay_Request struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // _WANIPConnection1_SetWarnDisconnectDelay_Response is the XML structure for the output arguments for action SetWarnDisconnectDelay. -type _WANIPConnection1_SetWarnDisconnectDelay_Response struct {} +type _WANIPConnection1_SetWarnDisconnectDelay_Response struct{} // SetWarnDisconnectDelay action. // Arguments: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // // @@ -2705,28 +2878,32 @@ type _WANIPConnection1_SetWarnDisconnectDelay_Response struct {} // func (client *WANIPConnection1) SetWarnDisconnectDelay( NewWarnDisconnectDelay uint32, -) ( err error) { - request := _WANIPConnection1_SetWarnDisconnectDelay_Request{ +) ( + err error, +) { + var request _WANIPConnection1_SetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - NewWarnDisconnectDelay: NewWarnDisconnectDelay, - - } - var response _WANIPConnection1_SetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetWarnDisconnectDelay", &request, &response) - if err != nil { + if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_SetWarnDisconnectDelay_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "SetWarnDisconnectDelay", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetStatusInfo_Request is the XML structure for the input arguments for action GetStatusInfo. -type _WANIPConnection1_GetStatusInfo_Request struct {} +type _WANIPConnection1_GetStatusInfo_Request struct{} // _WANIPConnection1_GetStatusInfo_Response is the XML structure for the output arguments for action GetStatusInfo. type _WANIPConnection1_GetStatusInfo_Response struct { @@ -2734,7 +2911,7 @@ type _WANIPConnection1_GetStatusInfo_Response struct { NewLastConnectionError string - NewUptime uint32 + NewUptime string } // GetStatusInfo action. @@ -2743,62 +2920,67 @@ type _WANIPConnection1_GetStatusInfo_Response struct { // // Return values: // -// * NewConnectionStatus: +// * NewConnectionStatus: // (related state variable: ConnectionStatus) -// - +// - // - allowed values: // Unconfigured|Connected|Disconnected // // -// * NewLastConnectionError: +// * NewLastConnectionError: // (related state variable: LastConnectionError) -// - +// - // - allowed values: // ERROR_NONE // // -// * NewUptime: +// * NewUptime: // (related state variable: Uptime) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetStatusInfo() ( NewConnectionStatus string, - NewLastConnectionError string, - NewUptime uint32, - err error) { - request := _WANIPConnection1_GetStatusInfo_Request{ + err error, +) { + var request _WANIPConnection1_GetStatusInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetStatusInfo_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetStatusInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetStatusInfo", &request, &response); err != nil { return } - NewConnectionStatus = response.NewConnectionStatus + // BEGIN Unmarshal arguments from response. - NewLastConnectionError = response.NewLastConnectionError + if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil { + return + } - NewUptime = response.NewUptime + if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil { + return + } + if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetAutoDisconnectTime_Request is the XML structure for the input arguments for action GetAutoDisconnectTime. -type _WANIPConnection1_GetAutoDisconnectTime_Request struct {} +type _WANIPConnection1_GetAutoDisconnectTime_Request struct{} // _WANIPConnection1_GetAutoDisconnectTime_Response is the XML structure for the output arguments for action GetAutoDisconnectTime. type _WANIPConnection1_GetAutoDisconnectTime_Response struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // GetAutoDisconnectTime action. @@ -2807,40 +2989,43 @@ type _WANIPConnection1_GetAutoDisconnectTime_Response struct { // // Return values: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetAutoDisconnectTime() ( NewAutoDisconnectTime uint32, - err error) { - request := _WANIPConnection1_GetAutoDisconnectTime_Request{ + err error, +) { + var request _WANIPConnection1_GetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetAutoDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetAutoDisconnectTime", &request, &response); err != nil { return } - NewAutoDisconnectTime = response.NewAutoDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetIdleDisconnectTime_Request is the XML structure for the input arguments for action GetIdleDisconnectTime. -type _WANIPConnection1_GetIdleDisconnectTime_Request struct {} +type _WANIPConnection1_GetIdleDisconnectTime_Request struct{} // _WANIPConnection1_GetIdleDisconnectTime_Response is the XML structure for the output arguments for action GetIdleDisconnectTime. type _WANIPConnection1_GetIdleDisconnectTime_Response struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // GetIdleDisconnectTime action. @@ -2849,40 +3034,43 @@ type _WANIPConnection1_GetIdleDisconnectTime_Response struct { // // Return values: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetIdleDisconnectTime() ( NewIdleDisconnectTime uint32, - err error) { - request := _WANIPConnection1_GetIdleDisconnectTime_Request{ + err error, +) { + var request _WANIPConnection1_GetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetIdleDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetIdleDisconnectTime", &request, &response); err != nil { return } - NewIdleDisconnectTime = response.NewIdleDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetWarnDisconnectDelay_Request is the XML structure for the input arguments for action GetWarnDisconnectDelay. -type _WANIPConnection1_GetWarnDisconnectDelay_Request struct {} +type _WANIPConnection1_GetWarnDisconnectDelay_Request struct{} // _WANIPConnection1_GetWarnDisconnectDelay_Response is the XML structure for the output arguments for action GetWarnDisconnectDelay. type _WANIPConnection1_GetWarnDisconnectDelay_Response struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // GetWarnDisconnectDelay action. @@ -2891,36 +3079,39 @@ type _WANIPConnection1_GetWarnDisconnectDelay_Response struct { // // Return values: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetWarnDisconnectDelay() ( NewWarnDisconnectDelay uint32, - err error) { - request := _WANIPConnection1_GetWarnDisconnectDelay_Request{ + err error, +) { + var request _WANIPConnection1_GetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetWarnDisconnectDelay", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetWarnDisconnectDelay", &request, &response); err != nil { return } - NewWarnDisconnectDelay = response.NewWarnDisconnectDelay + // BEGIN Unmarshal arguments from response. + if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetNATRSIPStatus_Request is the XML structure for the input arguments for action GetNATRSIPStatus. -type _WANIPConnection1_GetNATRSIPStatus_Request struct {} +type _WANIPConnection1_GetNATRSIPStatus_Request struct{} // _WANIPConnection1_GetNATRSIPStatus_Response is the XML structure for the output arguments for action GetNATRSIPStatus. type _WANIPConnection1_GetNATRSIPStatus_Response struct { @@ -2935,58 +3126,62 @@ type _WANIPConnection1_GetNATRSIPStatus_Response struct { // // Return values: // -// * NewRSIPAvailable: +// * NewRSIPAvailable: // (related state variable: RSIPAvailable) -// - -// - +// - +// - // // -// * NewNATEnabled: +// * NewNATEnabled: // (related state variable: NATEnabled) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetNATRSIPStatus() ( - NewRSIPAvailable string, + NewRSIPAvailable bool, + NewNATEnabled bool, + err error, +) { + var request _WANIPConnection1_GetNATRSIPStatus_Request + // BEGIN Marshal arguments into request. - NewNATEnabled string, - err error) { - request := _WANIPConnection1_GetNATRSIPStatus_Request{ + // END Marshal arguments into request. - } + // Perform the SOAP call. var response _WANIPConnection1_GetNATRSIPStatus_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetNATRSIPStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetNATRSIPStatus", &request, &response); err != nil { return } - NewRSIPAvailable = response.NewRSIPAvailable + // BEGIN Unmarshal arguments from response. - NewNATEnabled = response.NewNATEnabled + if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil { + return + } + if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetGenericPortMappingEntry_Request is the XML structure for the input arguments for action GetGenericPortMappingEntry. type _WANIPConnection1_GetGenericPortMappingEntry_Request struct { - NewPortMappingIndex uint16 + NewPortMappingIndex string } // _WANIPConnection1_GetGenericPortMappingEntry_Response is the XML structure for the output arguments for action GetGenericPortMappingEntry. type _WANIPConnection1_GetGenericPortMappingEntry_Response struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -2994,136 +3189,148 @@ type _WANIPConnection1_GetGenericPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetGenericPortMappingEntry action. // Arguments: // -// * NewPortMappingIndex: +// * NewPortMappingIndex: // (related state variable: PortMappingNumberOfEntries) -// - -// - +// - +// - // // // // Return values: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetGenericPortMappingEntry( NewPortMappingIndex uint16, ) ( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANIPConnection1_GetGenericPortMappingEntry_Request{ + err error, +) { + var request _WANIPConnection1_GetGenericPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewPortMappingIndex: NewPortMappingIndex, - - } - var response _WANIPConnection1_GetGenericPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetGenericPortMappingEntry", &request, &response) - if err != nil { + if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil { return } - NewRemoteHost = response.NewRemoteHost + // END Marshal arguments into request. - NewExternalPort = response.NewExternalPort + // Perform the SOAP call. + var response _WANIPConnection1_GetGenericPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetGenericPortMappingEntry", &request, &response); err != nil { + return + } - NewProtocol = response.NewProtocol + // BEGIN Unmarshal arguments from response. - NewInternalPort = response.NewInternalPort + if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil { + return + } - NewEnabled = response.NewEnabled + if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil { + return + } - NewPortMappingDescription = response.NewPortMappingDescription + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetSpecificPortMappingEntry_Request is the XML structure for the input arguments for action GetSpecificPortMappingEntry. type _WANIPConnection1_GetSpecificPortMappingEntry_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANIPConnection1_GetSpecificPortMappingEntry_Response is the XML structure for the output arguments for action GetSpecificPortMappingEntry. type _WANIPConnection1_GetSpecificPortMappingEntry_Response struct { - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -3131,27 +3338,27 @@ type _WANIPConnection1_GetSpecificPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetSpecificPortMappingEntry action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -3159,95 +3366,106 @@ type _WANIPConnection1_GetSpecificPortMappingEntry_Response struct { // // Return values: // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetSpecificPortMappingEntry( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, ) ( NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANIPConnection1_GetSpecificPortMappingEntry_Request{ + err error, +) { + var request _WANIPConnection1_GetSpecificPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANIPConnection1_GetSpecificPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetSpecificPortMappingEntry", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } - NewInternalPort = response.NewInternalPort + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } - NewEnabled = response.NewEnabled + // END Marshal arguments into request. - NewPortMappingDescription = response.NewPortMappingDescription + // Perform the SOAP call. + var response _WANIPConnection1_GetSpecificPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetSpecificPortMappingEntry", &request, &response); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + // BEGIN Unmarshal arguments from response. + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } + + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_AddPortMapping_Request is the XML structure for the input arguments for action AddPortMapping. type _WANIPConnection1_AddPortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -3255,62 +3473,62 @@ type _WANIPConnection1_AddPortMapping_Request struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // _WANIPConnection1_AddPortMapping_Response is the XML structure for the output arguments for action AddPortMapping. -type _WANIPConnection1_AddPortMapping_Response struct {} +type _WANIPConnection1_AddPortMapping_Response struct{} // AddPortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // // @@ -3318,84 +3536,95 @@ type _WANIPConnection1_AddPortMapping_Response struct {} // func (client *WANIPConnection1) AddPortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, -) ( err error) { - request := _WANIPConnection1_AddPortMapping_Request{ +) ( + err error, +) { + var request _WANIPConnection1_AddPortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - NewInternalPort: NewInternalPort, - - NewInternalClient: NewInternalClient, - - NewEnabled: NewEnabled, - - NewPortMappingDescription: NewPortMappingDescription, - - NewLeaseDuration: NewLeaseDuration, - - } - var response _WANIPConnection1_AddPortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "AddPortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil { + return + } + + if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil { + return + } + + if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil { + return + } + + if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil { + return + } + + if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_AddPortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "AddPortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_DeletePortMapping_Request is the XML structure for the input arguments for action DeletePortMapping. type _WANIPConnection1_DeletePortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANIPConnection1_DeletePortMapping_Response is the XML structure for the output arguments for action DeletePortMapping. -type _WANIPConnection1_DeletePortMapping_Response struct {} +type _WANIPConnection1_DeletePortMapping_Response struct{} // DeletePortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -3405,36 +3634,42 @@ type _WANIPConnection1_DeletePortMapping_Response struct {} // func (client *WANIPConnection1) DeletePortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, -) ( err error) { - request := _WANIPConnection1_DeletePortMapping_Request{ +) ( + err error, +) { + var request _WANIPConnection1_DeletePortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANIPConnection1_DeletePortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "DeletePortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection1_DeletePortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "DeletePortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection1_GetExternalIPAddress_Request is the XML structure for the input arguments for action GetExternalIPAddress. -type _WANIPConnection1_GetExternalIPAddress_Request struct {} +type _WANIPConnection1_GetExternalIPAddress_Request struct{} // _WANIPConnection1_GetExternalIPAddress_Response is the XML structure for the output arguments for action GetExternalIPAddress. type _WANIPConnection1_GetExternalIPAddress_Response struct { @@ -3447,58 +3682,56 @@ type _WANIPConnection1_GetExternalIPAddress_Response struct { // // Return values: // -// * NewExternalIPAddress: +// * NewExternalIPAddress: // (related state variable: ExternalIPAddress) -// - -// - +// - +// - // // func (client *WANIPConnection1) GetExternalIPAddress() ( NewExternalIPAddress string, - err error) { - request := _WANIPConnection1_GetExternalIPAddress_Request{ + err error, +) { + var request _WANIPConnection1_GetExternalIPAddress_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection1_GetExternalIPAddress_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetExternalIPAddress", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_1, "GetExternalIPAddress", &request, &response); err != nil { return } - NewExternalIPAddress = response.NewExternalIPAddress + // BEGIN Unmarshal arguments from response. + if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANIPConnection2 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPConnection:2". type WANIPConnection2 struct { SOAPClient soap.SOAPClient } - - - - - // _WANIPConnection2_SetConnectionType_Request is the XML structure for the input arguments for action SetConnectionType. type _WANIPConnection2_SetConnectionType_Request struct { NewConnectionType string } // _WANIPConnection2_SetConnectionType_Response is the XML structure for the output arguments for action SetConnectionType. -type _WANIPConnection2_SetConnectionType_Response struct {} +type _WANIPConnection2_SetConnectionType_Response struct{} // SetConnectionType action. // Arguments: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - +// - // - allowed values: // Unconfigured|IP_Routed|IP_Bridged // @@ -3508,28 +3741,32 @@ type _WANIPConnection2_SetConnectionType_Response struct {} // func (client *WANIPConnection2) SetConnectionType( NewConnectionType string, -) ( err error) { - request := _WANIPConnection2_SetConnectionType_Request{ +) ( + err error, +) { + var request _WANIPConnection2_SetConnectionType_Request + // BEGIN Marshal arguments into request. - NewConnectionType: NewConnectionType, - - } - var response _WANIPConnection2_SetConnectionType_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetConnectionType", &request, &response) - if err != nil { + if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_SetConnectionType_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetConnectionType", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetConnectionTypeInfo_Request is the XML structure for the input arguments for action GetConnectionTypeInfo. -type _WANIPConnection2_GetConnectionTypeInfo_Request struct {} +type _WANIPConnection2_GetConnectionTypeInfo_Request struct{} // _WANIPConnection2_GetConnectionTypeInfo_Response is the XML structure for the output arguments for action GetConnectionTypeInfo. type _WANIPConnection2_GetConnectionTypeInfo_Response struct { @@ -3544,50 +3781,54 @@ type _WANIPConnection2_GetConnectionTypeInfo_Response struct { // // Return values: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - +// - // - allowed values: // Unconfigured|IP_Routed|IP_Bridged // // -// * NewPossibleConnectionTypes: +// * NewPossibleConnectionTypes: // (related state variable: PossibleConnectionTypes) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetConnectionTypeInfo() ( NewConnectionType string, - NewPossibleConnectionTypes string, - err error) { - request := _WANIPConnection2_GetConnectionTypeInfo_Request{ + err error, +) { + var request _WANIPConnection2_GetConnectionTypeInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_GetConnectionTypeInfo_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetConnectionTypeInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetConnectionTypeInfo", &request, &response); err != nil { return } - NewConnectionType = response.NewConnectionType + // BEGIN Unmarshal arguments from response. - NewPossibleConnectionTypes = response.NewPossibleConnectionTypes + if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil { + return + } + if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_RequestConnection_Request is the XML structure for the input arguments for action RequestConnection. -type _WANIPConnection2_RequestConnection_Request struct {} +type _WANIPConnection2_RequestConnection_Request struct{} // _WANIPConnection2_RequestConnection_Response is the XML structure for the output arguments for action RequestConnection. -type _WANIPConnection2_RequestConnection_Response struct {} +type _WANIPConnection2_RequestConnection_Response struct{} // RequestConnection action. // Arguments: @@ -3595,29 +3836,31 @@ type _WANIPConnection2_RequestConnection_Response struct {} // // Return values: // -func (client *WANIPConnection2) RequestConnection() ( err error) { - request := _WANIPConnection2_RequestConnection_Request{ +func (client *WANIPConnection2) RequestConnection() ( + err error, +) { + var request _WANIPConnection2_RequestConnection_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_RequestConnection_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "RequestConnection", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "RequestConnection", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_RequestTermination_Request is the XML structure for the input arguments for action RequestTermination. -type _WANIPConnection2_RequestTermination_Request struct {} +type _WANIPConnection2_RequestTermination_Request struct{} // _WANIPConnection2_RequestTermination_Response is the XML structure for the output arguments for action RequestTermination. -type _WANIPConnection2_RequestTermination_Response struct {} +type _WANIPConnection2_RequestTermination_Response struct{} // RequestTermination action. // Arguments: @@ -3625,29 +3868,31 @@ type _WANIPConnection2_RequestTermination_Response struct {} // // Return values: // -func (client *WANIPConnection2) RequestTermination() ( err error) { - request := _WANIPConnection2_RequestTermination_Request{ +func (client *WANIPConnection2) RequestTermination() ( + err error, +) { + var request _WANIPConnection2_RequestTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_RequestTermination_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "RequestTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "RequestTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_ForceTermination_Request is the XML structure for the input arguments for action ForceTermination. -type _WANIPConnection2_ForceTermination_Request struct {} +type _WANIPConnection2_ForceTermination_Request struct{} // _WANIPConnection2_ForceTermination_Response is the XML structure for the output arguments for action ForceTermination. -type _WANIPConnection2_ForceTermination_Response struct {} +type _WANIPConnection2_ForceTermination_Response struct{} // ForceTermination action. // Arguments: @@ -3655,39 +3900,41 @@ type _WANIPConnection2_ForceTermination_Response struct {} // // Return values: // -func (client *WANIPConnection2) ForceTermination() ( err error) { - request := _WANIPConnection2_ForceTermination_Request{ +func (client *WANIPConnection2) ForceTermination() ( + err error, +) { + var request _WANIPConnection2_ForceTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_ForceTermination_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "ForceTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "ForceTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_SetAutoDisconnectTime_Request is the XML structure for the input arguments for action SetAutoDisconnectTime. type _WANIPConnection2_SetAutoDisconnectTime_Request struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // _WANIPConnection2_SetAutoDisconnectTime_Response is the XML structure for the output arguments for action SetAutoDisconnectTime. -type _WANIPConnection2_SetAutoDisconnectTime_Response struct {} +type _WANIPConnection2_SetAutoDisconnectTime_Response struct{} // SetAutoDisconnectTime action. // Arguments: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // // @@ -3695,41 +3942,45 @@ type _WANIPConnection2_SetAutoDisconnectTime_Response struct {} // func (client *WANIPConnection2) SetAutoDisconnectTime( NewAutoDisconnectTime uint32, -) ( err error) { - request := _WANIPConnection2_SetAutoDisconnectTime_Request{ +) ( + err error, +) { + var request _WANIPConnection2_SetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewAutoDisconnectTime: NewAutoDisconnectTime, - - } - var response _WANIPConnection2_SetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetAutoDisconnectTime", &request, &response) - if err != nil { + if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_SetAutoDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetAutoDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_SetIdleDisconnectTime_Request is the XML structure for the input arguments for action SetIdleDisconnectTime. type _WANIPConnection2_SetIdleDisconnectTime_Request struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // _WANIPConnection2_SetIdleDisconnectTime_Response is the XML structure for the output arguments for action SetIdleDisconnectTime. -type _WANIPConnection2_SetIdleDisconnectTime_Response struct {} +type _WANIPConnection2_SetIdleDisconnectTime_Response struct{} // SetIdleDisconnectTime action. // Arguments: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // // @@ -3737,41 +3988,45 @@ type _WANIPConnection2_SetIdleDisconnectTime_Response struct {} // func (client *WANIPConnection2) SetIdleDisconnectTime( NewIdleDisconnectTime uint32, -) ( err error) { - request := _WANIPConnection2_SetIdleDisconnectTime_Request{ +) ( + err error, +) { + var request _WANIPConnection2_SetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewIdleDisconnectTime: NewIdleDisconnectTime, - - } - var response _WANIPConnection2_SetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetIdleDisconnectTime", &request, &response) - if err != nil { + if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_SetIdleDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetIdleDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_SetWarnDisconnectDelay_Request is the XML structure for the input arguments for action SetWarnDisconnectDelay. type _WANIPConnection2_SetWarnDisconnectDelay_Request struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // _WANIPConnection2_SetWarnDisconnectDelay_Response is the XML structure for the output arguments for action SetWarnDisconnectDelay. -type _WANIPConnection2_SetWarnDisconnectDelay_Response struct {} +type _WANIPConnection2_SetWarnDisconnectDelay_Response struct{} // SetWarnDisconnectDelay action. // Arguments: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // // @@ -3779,28 +4034,32 @@ type _WANIPConnection2_SetWarnDisconnectDelay_Response struct {} // func (client *WANIPConnection2) SetWarnDisconnectDelay( NewWarnDisconnectDelay uint32, -) ( err error) { - request := _WANIPConnection2_SetWarnDisconnectDelay_Request{ +) ( + err error, +) { + var request _WANIPConnection2_SetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - NewWarnDisconnectDelay: NewWarnDisconnectDelay, - - } - var response _WANIPConnection2_SetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetWarnDisconnectDelay", &request, &response) - if err != nil { + if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_SetWarnDisconnectDelay_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "SetWarnDisconnectDelay", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetStatusInfo_Request is the XML structure for the input arguments for action GetStatusInfo. -type _WANIPConnection2_GetStatusInfo_Request struct {} +type _WANIPConnection2_GetStatusInfo_Request struct{} // _WANIPConnection2_GetStatusInfo_Response is the XML structure for the output arguments for action GetStatusInfo. type _WANIPConnection2_GetStatusInfo_Response struct { @@ -3808,7 +4067,7 @@ type _WANIPConnection2_GetStatusInfo_Response struct { NewLastConnectionError string - NewUptime uint32 + NewUptime string } // GetStatusInfo action. @@ -3817,62 +4076,67 @@ type _WANIPConnection2_GetStatusInfo_Response struct { // // Return values: // -// * NewConnectionStatus: +// * NewConnectionStatus: // (related state variable: ConnectionStatus) -// - +// - // - allowed values: // Unconfigured|Connected|Disconnected // // -// * NewLastConnectionError: +// * NewLastConnectionError: // (related state variable: LastConnectionError) -// - +// - // - allowed values: // ERROR_NONE // // -// * NewUptime: +// * NewUptime: // (related state variable: Uptime) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetStatusInfo() ( NewConnectionStatus string, - NewLastConnectionError string, - NewUptime uint32, - err error) { - request := _WANIPConnection2_GetStatusInfo_Request{ + err error, +) { + var request _WANIPConnection2_GetStatusInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_GetStatusInfo_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetStatusInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetStatusInfo", &request, &response); err != nil { return } - NewConnectionStatus = response.NewConnectionStatus + // BEGIN Unmarshal arguments from response. - NewLastConnectionError = response.NewLastConnectionError + if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil { + return + } - NewUptime = response.NewUptime + if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil { + return + } + if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetAutoDisconnectTime_Request is the XML structure for the input arguments for action GetAutoDisconnectTime. -type _WANIPConnection2_GetAutoDisconnectTime_Request struct {} +type _WANIPConnection2_GetAutoDisconnectTime_Request struct{} // _WANIPConnection2_GetAutoDisconnectTime_Response is the XML structure for the output arguments for action GetAutoDisconnectTime. type _WANIPConnection2_GetAutoDisconnectTime_Response struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // GetAutoDisconnectTime action. @@ -3881,40 +4145,43 @@ type _WANIPConnection2_GetAutoDisconnectTime_Response struct { // // Return values: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetAutoDisconnectTime() ( NewAutoDisconnectTime uint32, - err error) { - request := _WANIPConnection2_GetAutoDisconnectTime_Request{ + err error, +) { + var request _WANIPConnection2_GetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_GetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetAutoDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetAutoDisconnectTime", &request, &response); err != nil { return } - NewAutoDisconnectTime = response.NewAutoDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetIdleDisconnectTime_Request is the XML structure for the input arguments for action GetIdleDisconnectTime. -type _WANIPConnection2_GetIdleDisconnectTime_Request struct {} +type _WANIPConnection2_GetIdleDisconnectTime_Request struct{} // _WANIPConnection2_GetIdleDisconnectTime_Response is the XML structure for the output arguments for action GetIdleDisconnectTime. type _WANIPConnection2_GetIdleDisconnectTime_Response struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // GetIdleDisconnectTime action. @@ -3923,40 +4190,43 @@ type _WANIPConnection2_GetIdleDisconnectTime_Response struct { // // Return values: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetIdleDisconnectTime() ( NewIdleDisconnectTime uint32, - err error) { - request := _WANIPConnection2_GetIdleDisconnectTime_Request{ + err error, +) { + var request _WANIPConnection2_GetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_GetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetIdleDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetIdleDisconnectTime", &request, &response); err != nil { return } - NewIdleDisconnectTime = response.NewIdleDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetWarnDisconnectDelay_Request is the XML structure for the input arguments for action GetWarnDisconnectDelay. -type _WANIPConnection2_GetWarnDisconnectDelay_Request struct {} +type _WANIPConnection2_GetWarnDisconnectDelay_Request struct{} // _WANIPConnection2_GetWarnDisconnectDelay_Response is the XML structure for the output arguments for action GetWarnDisconnectDelay. type _WANIPConnection2_GetWarnDisconnectDelay_Response struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // GetWarnDisconnectDelay action. @@ -3965,36 +4235,39 @@ type _WANIPConnection2_GetWarnDisconnectDelay_Response struct { // // Return values: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetWarnDisconnectDelay() ( NewWarnDisconnectDelay uint32, - err error) { - request := _WANIPConnection2_GetWarnDisconnectDelay_Request{ + err error, +) { + var request _WANIPConnection2_GetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_GetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetWarnDisconnectDelay", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetWarnDisconnectDelay", &request, &response); err != nil { return } - NewWarnDisconnectDelay = response.NewWarnDisconnectDelay + // BEGIN Unmarshal arguments from response. + if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetNATRSIPStatus_Request is the XML structure for the input arguments for action GetNATRSIPStatus. -type _WANIPConnection2_GetNATRSIPStatus_Request struct {} +type _WANIPConnection2_GetNATRSIPStatus_Request struct{} // _WANIPConnection2_GetNATRSIPStatus_Response is the XML structure for the output arguments for action GetNATRSIPStatus. type _WANIPConnection2_GetNATRSIPStatus_Response struct { @@ -4009,58 +4282,62 @@ type _WANIPConnection2_GetNATRSIPStatus_Response struct { // // Return values: // -// * NewRSIPAvailable: +// * NewRSIPAvailable: // (related state variable: RSIPAvailable) -// - -// - +// - +// - // // -// * NewNATEnabled: +// * NewNATEnabled: // (related state variable: NATEnabled) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetNATRSIPStatus() ( - NewRSIPAvailable string, + NewRSIPAvailable bool, + NewNATEnabled bool, + err error, +) { + var request _WANIPConnection2_GetNATRSIPStatus_Request + // BEGIN Marshal arguments into request. - NewNATEnabled string, - err error) { - request := _WANIPConnection2_GetNATRSIPStatus_Request{ + // END Marshal arguments into request. - } + // Perform the SOAP call. var response _WANIPConnection2_GetNATRSIPStatus_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetNATRSIPStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetNATRSIPStatus", &request, &response); err != nil { return } - NewRSIPAvailable = response.NewRSIPAvailable + // BEGIN Unmarshal arguments from response. - NewNATEnabled = response.NewNATEnabled + if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil { + return + } + if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetGenericPortMappingEntry_Request is the XML structure for the input arguments for action GetGenericPortMappingEntry. type _WANIPConnection2_GetGenericPortMappingEntry_Request struct { - NewPortMappingIndex uint16 + NewPortMappingIndex string } // _WANIPConnection2_GetGenericPortMappingEntry_Response is the XML structure for the output arguments for action GetGenericPortMappingEntry. type _WANIPConnection2_GetGenericPortMappingEntry_Response struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -4068,136 +4345,148 @@ type _WANIPConnection2_GetGenericPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetGenericPortMappingEntry action. // Arguments: // -// * NewPortMappingIndex: +// * NewPortMappingIndex: // (related state variable: PortMappingNumberOfEntries) -// - -// - +// - +// - // // // // Return values: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) // - allowed range: 1 to 65535 -// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) // - allowed range: 0 to 604800 -// - +// - // // func (client *WANIPConnection2) GetGenericPortMappingEntry( NewPortMappingIndex uint16, ) ( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANIPConnection2_GetGenericPortMappingEntry_Request{ + err error, +) { + var request _WANIPConnection2_GetGenericPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewPortMappingIndex: NewPortMappingIndex, - - } - var response _WANIPConnection2_GetGenericPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetGenericPortMappingEntry", &request, &response) - if err != nil { + if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil { return } - NewRemoteHost = response.NewRemoteHost + // END Marshal arguments into request. - NewExternalPort = response.NewExternalPort + // Perform the SOAP call. + var response _WANIPConnection2_GetGenericPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetGenericPortMappingEntry", &request, &response); err != nil { + return + } - NewProtocol = response.NewProtocol + // BEGIN Unmarshal arguments from response. - NewInternalPort = response.NewInternalPort + if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil { + return + } - NewEnabled = response.NewEnabled + if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil { + return + } - NewPortMappingDescription = response.NewPortMappingDescription + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetSpecificPortMappingEntry_Request is the XML structure for the input arguments for action GetSpecificPortMappingEntry. type _WANIPConnection2_GetSpecificPortMappingEntry_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANIPConnection2_GetSpecificPortMappingEntry_Response is the XML structure for the output arguments for action GetSpecificPortMappingEntry. type _WANIPConnection2_GetSpecificPortMappingEntry_Response struct { - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -4205,27 +4494,27 @@ type _WANIPConnection2_GetSpecificPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetSpecificPortMappingEntry action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -4233,95 +4522,106 @@ type _WANIPConnection2_GetSpecificPortMappingEntry_Response struct { // // Return values: // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) // - allowed range: 1 to 65535 -// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) // - allowed range: 0 to 604800 -// - +// - // // func (client *WANIPConnection2) GetSpecificPortMappingEntry( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, ) ( NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANIPConnection2_GetSpecificPortMappingEntry_Request{ + err error, +) { + var request _WANIPConnection2_GetSpecificPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANIPConnection2_GetSpecificPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetSpecificPortMappingEntry", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } - NewInternalPort = response.NewInternalPort + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } - NewEnabled = response.NewEnabled + // END Marshal arguments into request. - NewPortMappingDescription = response.NewPortMappingDescription + // Perform the SOAP call. + var response _WANIPConnection2_GetSpecificPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetSpecificPortMappingEntry", &request, &response); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + // BEGIN Unmarshal arguments from response. + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } + + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_AddPortMapping_Request is the XML structure for the input arguments for action AddPortMapping. type _WANIPConnection2_AddPortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -4329,62 +4629,62 @@ type _WANIPConnection2_AddPortMapping_Request struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // _WANIPConnection2_AddPortMapping_Response is the XML structure for the output arguments for action AddPortMapping. -type _WANIPConnection2_AddPortMapping_Response struct {} +type _WANIPConnection2_AddPortMapping_Response struct{} // AddPortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) // - allowed range: 1 to 65535 -// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) // - allowed range: 0 to 604800 -// - +// - // // // @@ -4392,84 +4692,95 @@ type _WANIPConnection2_AddPortMapping_Response struct {} // func (client *WANIPConnection2) AddPortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, -) ( err error) { - request := _WANIPConnection2_AddPortMapping_Request{ +) ( + err error, +) { + var request _WANIPConnection2_AddPortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - NewInternalPort: NewInternalPort, - - NewInternalClient: NewInternalClient, - - NewEnabled: NewEnabled, - - NewPortMappingDescription: NewPortMappingDescription, - - NewLeaseDuration: NewLeaseDuration, - - } - var response _WANIPConnection2_AddPortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "AddPortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil { + return + } + + if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil { + return + } + + if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil { + return + } + + if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil { + return + } + + if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_AddPortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "AddPortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_DeletePortMapping_Request is the XML structure for the input arguments for action DeletePortMapping. type _WANIPConnection2_DeletePortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANIPConnection2_DeletePortMapping_Response is the XML structure for the output arguments for action DeletePortMapping. -type _WANIPConnection2_DeletePortMapping_Response struct {} +type _WANIPConnection2_DeletePortMapping_Response struct{} // DeletePortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -4479,39 +4790,45 @@ type _WANIPConnection2_DeletePortMapping_Response struct {} // func (client *WANIPConnection2) DeletePortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, -) ( err error) { - request := _WANIPConnection2_DeletePortMapping_Request{ +) ( + err error, +) { + var request _WANIPConnection2_DeletePortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANIPConnection2_DeletePortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "DeletePortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_DeletePortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "DeletePortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_DeletePortMappingRange_Request is the XML structure for the input arguments for action DeletePortMappingRange. type _WANIPConnection2_DeletePortMappingRange_Request struct { - NewStartPort uint16 + NewStartPort string - NewEndPort uint16 + NewEndPort string NewProtocol string @@ -4519,34 +4836,34 @@ type _WANIPConnection2_DeletePortMappingRange_Request struct { } // _WANIPConnection2_DeletePortMappingRange_Response is the XML structure for the output arguments for action DeletePortMappingRange. -type _WANIPConnection2_DeletePortMappingRange_Response struct {} +type _WANIPConnection2_DeletePortMappingRange_Response struct{} // DeletePortMappingRange action. // Arguments: // -// * NewStartPort: +// * NewStartPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewEndPort: +// * NewEndPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewManage: +// * NewManage: // (related state variable: A_ARG_TYPE_Manage) -// - -// - +// - +// - // // // @@ -4554,40 +4871,47 @@ type _WANIPConnection2_DeletePortMappingRange_Response struct {} // func (client *WANIPConnection2) DeletePortMappingRange( NewStartPort uint16, - NewEndPort uint16, - NewProtocol string, + NewManage bool, +) ( + err error, +) { + var request _WANIPConnection2_DeletePortMappingRange_Request + // BEGIN Marshal arguments into request. - NewManage string, -) ( err error) { - request := _WANIPConnection2_DeletePortMappingRange_Request{ - - NewStartPort: NewStartPort, - - NewEndPort: NewEndPort, - - NewProtocol: NewProtocol, - - NewManage: NewManage, - - } - var response _WANIPConnection2_DeletePortMappingRange_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "DeletePortMappingRange", &request, &response) - if err != nil { + if request.NewStartPort, err = soap.MarshalUi2(NewStartPort); err != nil { return } + if request.NewEndPort, err = soap.MarshalUi2(NewEndPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewManage, err = soap.MarshalBoolean(NewManage); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_DeletePortMappingRange_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "DeletePortMappingRange", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetExternalIPAddress_Request is the XML structure for the input arguments for action GetExternalIPAddress. -type _WANIPConnection2_GetExternalIPAddress_Request struct {} +type _WANIPConnection2_GetExternalIPAddress_Request struct{} // _WANIPConnection2_GetExternalIPAddress_Response is the XML structure for the output arguments for action GetExternalIPAddress. type _WANIPConnection2_GetExternalIPAddress_Response struct { @@ -4600,45 +4924,48 @@ type _WANIPConnection2_GetExternalIPAddress_Response struct { // // Return values: // -// * NewExternalIPAddress: +// * NewExternalIPAddress: // (related state variable: ExternalIPAddress) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetExternalIPAddress() ( NewExternalIPAddress string, - err error) { - request := _WANIPConnection2_GetExternalIPAddress_Request{ + err error, +) { + var request _WANIPConnection2_GetExternalIPAddress_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANIPConnection2_GetExternalIPAddress_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetExternalIPAddress", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetExternalIPAddress", &request, &response); err != nil { return } - NewExternalIPAddress = response.NewExternalIPAddress + // BEGIN Unmarshal arguments from response. + if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_GetListOfPortMappings_Request is the XML structure for the input arguments for action GetListOfPortMappings. type _WANIPConnection2_GetListOfPortMappings_Request struct { - NewStartPort uint16 + NewStartPort string - NewEndPort uint16 + NewEndPort string NewProtocol string NewManage string - NewNumberOfPorts uint16 + NewNumberOfPorts string } // _WANIPConnection2_GetListOfPortMappings_Response is the XML structure for the output arguments for action GetListOfPortMappings. @@ -4649,97 +4976,106 @@ type _WANIPConnection2_GetListOfPortMappings_Response struct { // GetListOfPortMappings action. // Arguments: // -// * NewStartPort: +// * NewStartPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewEndPort: +// * NewEndPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewManage: +// * NewManage: // (related state variable: A_ARG_TYPE_Manage) -// - -// - +// - +// - // // -// * NewNumberOfPorts: +// * NewNumberOfPorts: // (related state variable: PortMappingNumberOfEntries) -// - -// - +// - +// - // // // // Return values: // -// * NewPortListing: +// * NewPortListing: // (related state variable: A_ARG_TYPE_PortListing) -// - -// - +// - +// - // // func (client *WANIPConnection2) GetListOfPortMappings( NewStartPort uint16, - NewEndPort uint16, - NewProtocol string, - - NewManage string, - + NewManage bool, NewNumberOfPorts uint16, ) ( NewPortListing string, - err error) { - request := _WANIPConnection2_GetListOfPortMappings_Request{ + err error, +) { + var request _WANIPConnection2_GetListOfPortMappings_Request + // BEGIN Marshal arguments into request. - NewStartPort: NewStartPort, - - NewEndPort: NewEndPort, - - NewProtocol: NewProtocol, - - NewManage: NewManage, - - NewNumberOfPorts: NewNumberOfPorts, - - } - var response _WANIPConnection2_GetListOfPortMappings_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetListOfPortMappings", &request, &response) - if err != nil { + if request.NewStartPort, err = soap.MarshalUi2(NewStartPort); err != nil { return } - NewPortListing = response.NewPortListing + if request.NewEndPort, err = soap.MarshalUi2(NewEndPort); err != nil { + return + } + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewManage, err = soap.MarshalBoolean(NewManage); err != nil { + return + } + + if request.NewNumberOfPorts, err = soap.MarshalUi2(NewNumberOfPorts); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_GetListOfPortMappings_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "GetListOfPortMappings", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + if NewPortListing, err = soap.UnmarshalString(response.NewPortListing); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPConnection2_AddAnyPortMapping_Request is the XML structure for the input arguments for action AddAnyPortMapping. type _WANIPConnection2_AddAnyPortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -4747,141 +5083,148 @@ type _WANIPConnection2_AddAnyPortMapping_Request struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // _WANIPConnection2_AddAnyPortMapping_Response is the XML structure for the output arguments for action AddAnyPortMapping. type _WANIPConnection2_AddAnyPortMapping_Response struct { - NewReservedPort uint16 + NewReservedPort string } // AddAnyPortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) // - allowed range: 1 to 65535 -// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) // - allowed range: 0 to 604800 -// - +// - // // // // Return values: // -// * NewReservedPort: +// * NewReservedPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // func (client *WANIPConnection2) AddAnyPortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, ) ( NewReservedPort uint16, - err error) { - request := _WANIPConnection2_AddAnyPortMapping_Request{ + err error, +) { + var request _WANIPConnection2_AddAnyPortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - NewInternalPort: NewInternalPort, - - NewInternalClient: NewInternalClient, - - NewEnabled: NewEnabled, - - NewPortMappingDescription: NewPortMappingDescription, - - NewLeaseDuration: NewLeaseDuration, - - } - var response _WANIPConnection2_AddAnyPortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "AddAnyPortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } - NewReservedPort = response.NewReservedPort + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil { + return + } + + if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil { + return + } + + if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil { + return + } + + if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil { + return + } + + if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPConnection2_AddAnyPortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANIPConnection_2, "AddAnyPortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + if NewReservedPort, err = soap.UnmarshalUi2(response.NewReservedPort); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANIPv6FirewallControl1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANIPv6FirewallControl:1". type WANIPv6FirewallControl1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANIPv6FirewallControl1_GetFirewallStatus_Request is the XML structure for the input arguments for action GetFirewallStatus. -type _WANIPv6FirewallControl1_GetFirewallStatus_Request struct {} +type _WANIPv6FirewallControl1_GetFirewallStatus_Request struct{} // _WANIPv6FirewallControl1_GetFirewallStatus_Response is the XML structure for the output arguments for action GetFirewallStatus. type _WANIPv6FirewallControl1_GetFirewallStatus_Response struct { @@ -4896,283 +5239,306 @@ type _WANIPv6FirewallControl1_GetFirewallStatus_Response struct { // // Return values: // -// * FirewallEnabled: +// * FirewallEnabled: // (related state variable: FirewallEnabled) -// - -// - +// - +// - // // -// * InboundPinholeAllowed: +// * InboundPinholeAllowed: // (related state variable: InboundPinholeAllowed) -// - -// - +// - +// - // // func (client *WANIPv6FirewallControl1) GetFirewallStatus() ( - FirewallEnabled string, + FirewallEnabled bool, + InboundPinholeAllowed bool, + err error, +) { + var request _WANIPv6FirewallControl1_GetFirewallStatus_Request + // BEGIN Marshal arguments into request. - InboundPinholeAllowed string, - err error) { - request := _WANIPv6FirewallControl1_GetFirewallStatus_Request{ + // END Marshal arguments into request. - } + // Perform the SOAP call. var response _WANIPv6FirewallControl1_GetFirewallStatus_Response - err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetFirewallStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetFirewallStatus", &request, &response); err != nil { return } - FirewallEnabled = response.FirewallEnabled + // BEGIN Unmarshal arguments from response. - InboundPinholeAllowed = response.InboundPinholeAllowed + if FirewallEnabled, err = soap.UnmarshalBoolean(response.FirewallEnabled); err != nil { + return + } + if InboundPinholeAllowed, err = soap.UnmarshalBoolean(response.InboundPinholeAllowed); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Request is the XML structure for the input arguments for action GetOutboundPinholeTimeout. type _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Request struct { RemoteHost string - RemotePort uint16 + RemotePort string InternalClient string - InternalPort uint16 + InternalPort string - Protocol uint16 + Protocol string } // _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Response is the XML structure for the output arguments for action GetOutboundPinholeTimeout. type _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Response struct { - OutboundPinholeTimeout uint32 + OutboundPinholeTimeout string } // GetOutboundPinholeTimeout action. // Arguments: // -// * RemoteHost: +// * RemoteHost: // (related state variable: A_ARG_TYPE_IPv6Address) -// - -// - +// - +// - // // -// * RemotePort: +// * RemotePort: // (related state variable: A_ARG_TYPE_Port) -// - -// - +// - +// - // // -// * InternalClient: +// * InternalClient: // (related state variable: A_ARG_TYPE_IPv6Address) -// - -// - +// - +// - // // -// * InternalPort: +// * InternalPort: // (related state variable: A_ARG_TYPE_Port) -// - -// - +// - +// - // // -// * Protocol: +// * Protocol: // (related state variable: A_ARG_TYPE_Protocol) -// - -// - +// - +// - // // // // Return values: // -// * OutboundPinholeTimeout: +// * OutboundPinholeTimeout: // (related state variable: A_ARG_TYPE_OutboundPinholeTimeout) -// - -// - +// - +// - // // func (client *WANIPv6FirewallControl1) GetOutboundPinholeTimeout( RemoteHost string, - RemotePort uint16, - InternalClient string, - InternalPort uint16, - Protocol uint16, ) ( OutboundPinholeTimeout uint32, - err error) { - request := _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Request{ + err error, +) { + var request _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Request + // BEGIN Marshal arguments into request. - RemoteHost: RemoteHost, - - RemotePort: RemotePort, - - InternalClient: InternalClient, - - InternalPort: InternalPort, - - Protocol: Protocol, - - } - var response _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Response - err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetOutboundPinholeTimeout", &request, &response) - if err != nil { + if request.RemoteHost, err = soap.MarshalString(RemoteHost); err != nil { return } - OutboundPinholeTimeout = response.OutboundPinholeTimeout + if request.RemotePort, err = soap.MarshalUi2(RemotePort); err != nil { + return + } + if request.InternalClient, err = soap.MarshalString(InternalClient); err != nil { + return + } + + if request.InternalPort, err = soap.MarshalUi2(InternalPort); err != nil { + return + } + + if request.Protocol, err = soap.MarshalUi2(Protocol); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPv6FirewallControl1_GetOutboundPinholeTimeout_Response + if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetOutboundPinholeTimeout", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + if OutboundPinholeTimeout, err = soap.UnmarshalUi4(response.OutboundPinholeTimeout); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPv6FirewallControl1_AddPinhole_Request is the XML structure for the input arguments for action AddPinhole. type _WANIPv6FirewallControl1_AddPinhole_Request struct { RemoteHost string - RemotePort uint16 + RemotePort string InternalClient string - InternalPort uint16 + InternalPort string - Protocol uint16 + Protocol string - LeaseTime uint32 + LeaseTime string } // _WANIPv6FirewallControl1_AddPinhole_Response is the XML structure for the output arguments for action AddPinhole. type _WANIPv6FirewallControl1_AddPinhole_Response struct { - UniqueID uint16 + UniqueID string } // AddPinhole action. // Arguments: // -// * RemoteHost: +// * RemoteHost: // (related state variable: A_ARG_TYPE_IPv6Address) -// - -// - +// - +// - // // -// * RemotePort: +// * RemotePort: // (related state variable: A_ARG_TYPE_Port) -// - -// - +// - +// - // // -// * InternalClient: +// * InternalClient: // (related state variable: A_ARG_TYPE_IPv6Address) -// - -// - +// - +// - // // -// * InternalPort: +// * InternalPort: // (related state variable: A_ARG_TYPE_Port) -// - -// - +// - +// - // // -// * Protocol: +// * Protocol: // (related state variable: A_ARG_TYPE_Protocol) -// - -// - +// - +// - // // -// * LeaseTime: +// * LeaseTime: // (related state variable: A_ARG_TYPE_LeaseTime) // - allowed range: 1 to 86400 -// - +// - // // // // Return values: // -// * UniqueID: +// * UniqueID: // (related state variable: A_ARG_TYPE_UniqueID) -// - -// - +// - +// - // // func (client *WANIPv6FirewallControl1) AddPinhole( RemoteHost string, - RemotePort uint16, - InternalClient string, - InternalPort uint16, - Protocol uint16, - LeaseTime uint32, ) ( UniqueID uint16, - err error) { - request := _WANIPv6FirewallControl1_AddPinhole_Request{ + err error, +) { + var request _WANIPv6FirewallControl1_AddPinhole_Request + // BEGIN Marshal arguments into request. - RemoteHost: RemoteHost, - - RemotePort: RemotePort, - - InternalClient: InternalClient, - - InternalPort: InternalPort, - - Protocol: Protocol, - - LeaseTime: LeaseTime, - - } - var response _WANIPv6FirewallControl1_AddPinhole_Response - err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "AddPinhole", &request, &response) - if err != nil { + if request.RemoteHost, err = soap.MarshalString(RemoteHost); err != nil { return } - UniqueID = response.UniqueID + if request.RemotePort, err = soap.MarshalUi2(RemotePort); err != nil { + return + } + if request.InternalClient, err = soap.MarshalString(InternalClient); err != nil { + return + } + + if request.InternalPort, err = soap.MarshalUi2(InternalPort); err != nil { + return + } + + if request.Protocol, err = soap.MarshalUi2(Protocol); err != nil { + return + } + + if request.LeaseTime, err = soap.MarshalUi4(LeaseTime); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPv6FirewallControl1_AddPinhole_Response + if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "AddPinhole", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + if UniqueID, err = soap.UnmarshalUi2(response.UniqueID); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPv6FirewallControl1_UpdatePinhole_Request is the XML structure for the input arguments for action UpdatePinhole. type _WANIPv6FirewallControl1_UpdatePinhole_Request struct { - UniqueID uint16 + UniqueID string - NewLeaseTime uint32 + NewLeaseTime string } // _WANIPv6FirewallControl1_UpdatePinhole_Response is the XML structure for the output arguments for action UpdatePinhole. -type _WANIPv6FirewallControl1_UpdatePinhole_Response struct {} +type _WANIPv6FirewallControl1_UpdatePinhole_Response struct{} // UpdatePinhole action. // Arguments: // -// * UniqueID: +// * UniqueID: // (related state variable: A_ARG_TYPE_UniqueID) -// - -// - +// - +// - // // -// * NewLeaseTime: +// * NewLeaseTime: // (related state variable: A_ARG_TYPE_LeaseTime) // - allowed range: 1 to 86400 -// - +// - // // // @@ -5180,45 +5546,50 @@ type _WANIPv6FirewallControl1_UpdatePinhole_Response struct {} // func (client *WANIPv6FirewallControl1) UpdatePinhole( UniqueID uint16, - NewLeaseTime uint32, -) ( err error) { - request := _WANIPv6FirewallControl1_UpdatePinhole_Request{ +) ( + err error, +) { + var request _WANIPv6FirewallControl1_UpdatePinhole_Request + // BEGIN Marshal arguments into request. - UniqueID: UniqueID, - - NewLeaseTime: NewLeaseTime, - - } - var response _WANIPv6FirewallControl1_UpdatePinhole_Response - err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "UpdatePinhole", &request, &response) - if err != nil { + if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil { return } + if request.NewLeaseTime, err = soap.MarshalUi4(NewLeaseTime); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPv6FirewallControl1_UpdatePinhole_Response + if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "UpdatePinhole", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPv6FirewallControl1_DeletePinhole_Request is the XML structure for the input arguments for action DeletePinhole. type _WANIPv6FirewallControl1_DeletePinhole_Request struct { - UniqueID uint16 + UniqueID string } // _WANIPv6FirewallControl1_DeletePinhole_Response is the XML structure for the output arguments for action DeletePinhole. -type _WANIPv6FirewallControl1_DeletePinhole_Response struct {} +type _WANIPv6FirewallControl1_DeletePinhole_Response struct{} // DeletePinhole action. // Arguments: // -// * UniqueID: +// * UniqueID: // (related state variable: A_ARG_TYPE_UniqueID) -// - -// - +// - +// - // // // @@ -5226,83 +5597,92 @@ type _WANIPv6FirewallControl1_DeletePinhole_Response struct {} // func (client *WANIPv6FirewallControl1) DeletePinhole( UniqueID uint16, -) ( err error) { - request := _WANIPv6FirewallControl1_DeletePinhole_Request{ +) ( + err error, +) { + var request _WANIPv6FirewallControl1_DeletePinhole_Request + // BEGIN Marshal arguments into request. - UniqueID: UniqueID, - - } - var response _WANIPv6FirewallControl1_DeletePinhole_Response - err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "DeletePinhole", &request, &response) - if err != nil { + if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANIPv6FirewallControl1_DeletePinhole_Response + if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "DeletePinhole", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANIPv6FirewallControl1_GetPinholePackets_Request is the XML structure for the input arguments for action GetPinholePackets. type _WANIPv6FirewallControl1_GetPinholePackets_Request struct { - UniqueID uint16 + UniqueID string } // _WANIPv6FirewallControl1_GetPinholePackets_Response is the XML structure for the output arguments for action GetPinholePackets. type _WANIPv6FirewallControl1_GetPinholePackets_Response struct { - PinholePackets uint32 + PinholePackets string } // GetPinholePackets action. // Arguments: // -// * UniqueID: +// * UniqueID: // (related state variable: A_ARG_TYPE_UniqueID) -// - -// - +// - +// - // // // // Return values: // -// * PinholePackets: +// * PinholePackets: // (related state variable: A_ARG_TYPE_PinholePackets) -// - -// - +// - +// - // // func (client *WANIPv6FirewallControl1) GetPinholePackets( UniqueID uint16, ) ( PinholePackets uint32, - err error) { - request := _WANIPv6FirewallControl1_GetPinholePackets_Request{ + err error, +) { + var request _WANIPv6FirewallControl1_GetPinholePackets_Request + // BEGIN Marshal arguments into request. - UniqueID: UniqueID, - - } - var response _WANIPv6FirewallControl1_GetPinholePackets_Response - err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetPinholePackets", &request, &response) - if err != nil { + if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil { return } - PinholePackets = response.PinholePackets + // END Marshal arguments into request. + // Perform the SOAP call. + var response _WANIPv6FirewallControl1_GetPinholePackets_Response + if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "GetPinholePackets", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + if PinholePackets, err = soap.UnmarshalUi4(response.PinholePackets); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANIPv6FirewallControl1_CheckPinholeWorking_Request is the XML structure for the input arguments for action CheckPinholeWorking. type _WANIPv6FirewallControl1_CheckPinholeWorking_Request struct { - UniqueID uint16 + UniqueID string } // _WANIPv6FirewallControl1_CheckPinholeWorking_Response is the XML structure for the output arguments for action CheckPinholeWorking. @@ -5313,57 +5693,57 @@ type _WANIPv6FirewallControl1_CheckPinholeWorking_Response struct { // CheckPinholeWorking action. // Arguments: // -// * UniqueID: +// * UniqueID: // (related state variable: A_ARG_TYPE_UniqueID) -// - -// - +// - +// - // // // // Return values: // -// * IsWorking: +// * IsWorking: // (related state variable: A_ARG_TYPE_Boolean) -// - -// - +// - +// - // // func (client *WANIPv6FirewallControl1) CheckPinholeWorking( UniqueID uint16, ) ( - IsWorking string, - err error) { - request := _WANIPv6FirewallControl1_CheckPinholeWorking_Request{ + IsWorking bool, + err error, +) { + var request _WANIPv6FirewallControl1_CheckPinholeWorking_Request + // BEGIN Marshal arguments into request. - UniqueID: UniqueID, - - } - var response _WANIPv6FirewallControl1_CheckPinholeWorking_Response - err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "CheckPinholeWorking", &request, &response) - if err != nil { + if request.UniqueID, err = soap.MarshalUi2(UniqueID); err != nil { return } - IsWorking = response.IsWorking + // END Marshal arguments into request. + // Perform the SOAP call. + var response _WANIPv6FirewallControl1_CheckPinholeWorking_Response + if err = client.SOAPClient.PerformAction(URN_WANIPv6FirewallControl_1, "CheckPinholeWorking", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + if IsWorking, err = soap.UnmarshalBoolean(response.IsWorking); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANPOTSLinkConfig1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPOTSLinkConfig:1". type WANPOTSLinkConfig1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANPOTSLinkConfig1_SetISPInfo_Request is the XML structure for the input arguments for action SetISPInfo. type _WANPOTSLinkConfig1_SetISPInfo_Request struct { NewISPPhoneNumber string @@ -5374,26 +5754,26 @@ type _WANPOTSLinkConfig1_SetISPInfo_Request struct { } // _WANPOTSLinkConfig1_SetISPInfo_Response is the XML structure for the output arguments for action SetISPInfo. -type _WANPOTSLinkConfig1_SetISPInfo_Response struct {} +type _WANPOTSLinkConfig1_SetISPInfo_Response struct{} // SetISPInfo action. // Arguments: // -// * NewISPPhoneNumber: +// * NewISPPhoneNumber: // (related state variable: ISPPhoneNumber) -// - -// - +// - +// - // // -// * NewISPInfo: +// * NewISPInfo: // (related state variable: ISPInfo) -// - -// - +// - +// - // // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - +// - // - allowed values: // PPP_Dialup // @@ -5403,57 +5783,63 @@ type _WANPOTSLinkConfig1_SetISPInfo_Response struct {} // func (client *WANPOTSLinkConfig1) SetISPInfo( NewISPPhoneNumber string, - NewISPInfo string, - NewLinkType string, -) ( err error) { - request := _WANPOTSLinkConfig1_SetISPInfo_Request{ +) ( + err error, +) { + var request _WANPOTSLinkConfig1_SetISPInfo_Request + // BEGIN Marshal arguments into request. - NewISPPhoneNumber: NewISPPhoneNumber, - - NewISPInfo: NewISPInfo, - - NewLinkType: NewLinkType, - - } - var response _WANPOTSLinkConfig1_SetISPInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetISPInfo", &request, &response) - if err != nil { + if request.NewISPPhoneNumber, err = soap.MarshalString(NewISPPhoneNumber); err != nil { return } + if request.NewISPInfo, err = soap.MarshalString(NewISPInfo); err != nil { + return + } + + if request.NewLinkType, err = soap.MarshalString(NewLinkType); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPOTSLinkConfig1_SetISPInfo_Response + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetISPInfo", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_SetCallRetryInfo_Request is the XML structure for the input arguments for action SetCallRetryInfo. type _WANPOTSLinkConfig1_SetCallRetryInfo_Request struct { - NewNumberOfRetries uint32 + NewNumberOfRetries string - NewDelayBetweenRetries uint32 + NewDelayBetweenRetries string } // _WANPOTSLinkConfig1_SetCallRetryInfo_Response is the XML structure for the output arguments for action SetCallRetryInfo. -type _WANPOTSLinkConfig1_SetCallRetryInfo_Response struct {} +type _WANPOTSLinkConfig1_SetCallRetryInfo_Response struct{} // SetCallRetryInfo action. // Arguments: // -// * NewNumberOfRetries: +// * NewNumberOfRetries: // (related state variable: NumberOfRetries) -// - -// - +// - +// - // // -// * NewDelayBetweenRetries: +// * NewDelayBetweenRetries: // (related state variable: DelayBetweenRetries) -// - -// - +// - +// - // // // @@ -5461,32 +5847,37 @@ type _WANPOTSLinkConfig1_SetCallRetryInfo_Response struct {} // func (client *WANPOTSLinkConfig1) SetCallRetryInfo( NewNumberOfRetries uint32, - NewDelayBetweenRetries uint32, -) ( err error) { - request := _WANPOTSLinkConfig1_SetCallRetryInfo_Request{ +) ( + err error, +) { + var request _WANPOTSLinkConfig1_SetCallRetryInfo_Request + // BEGIN Marshal arguments into request. - NewNumberOfRetries: NewNumberOfRetries, - - NewDelayBetweenRetries: NewDelayBetweenRetries, - - } - var response _WANPOTSLinkConfig1_SetCallRetryInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetCallRetryInfo", &request, &response) - if err != nil { + if request.NewNumberOfRetries, err = soap.MarshalUi4(NewNumberOfRetries); err != nil { return } + if request.NewDelayBetweenRetries, err = soap.MarshalUi4(NewDelayBetweenRetries); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPOTSLinkConfig1_SetCallRetryInfo_Response + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "SetCallRetryInfo", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetISPInfo_Request is the XML structure for the input arguments for action GetISPInfo. -type _WANPOTSLinkConfig1_GetISPInfo_Request struct {} +type _WANPOTSLinkConfig1_GetISPInfo_Request struct{} // _WANPOTSLinkConfig1_GetISPInfo_Response is the XML structure for the output arguments for action GetISPInfo. type _WANPOTSLinkConfig1_GetISPInfo_Response struct { @@ -5503,63 +5894,68 @@ type _WANPOTSLinkConfig1_GetISPInfo_Response struct { // // Return values: // -// * NewISPPhoneNumber: +// * NewISPPhoneNumber: // (related state variable: ISPPhoneNumber) -// - -// - +// - +// - // // -// * NewISPInfo: +// * NewISPInfo: // (related state variable: ISPInfo) -// - -// - +// - +// - // // -// * NewLinkType: +// * NewLinkType: // (related state variable: LinkType) -// - +// - // - allowed values: // PPP_Dialup // // func (client *WANPOTSLinkConfig1) GetISPInfo() ( NewISPPhoneNumber string, - NewISPInfo string, - NewLinkType string, - err error) { - request := _WANPOTSLinkConfig1_GetISPInfo_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetISPInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetISPInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetISPInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetISPInfo", &request, &response); err != nil { return } - NewISPPhoneNumber = response.NewISPPhoneNumber + // BEGIN Unmarshal arguments from response. - NewISPInfo = response.NewISPInfo + if NewISPPhoneNumber, err = soap.UnmarshalString(response.NewISPPhoneNumber); err != nil { + return + } - NewLinkType = response.NewLinkType + if NewISPInfo, err = soap.UnmarshalString(response.NewISPInfo); err != nil { + return + } + if NewLinkType, err = soap.UnmarshalString(response.NewLinkType); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetCallRetryInfo_Request is the XML structure for the input arguments for action GetCallRetryInfo. -type _WANPOTSLinkConfig1_GetCallRetryInfo_Request struct {} +type _WANPOTSLinkConfig1_GetCallRetryInfo_Request struct{} // _WANPOTSLinkConfig1_GetCallRetryInfo_Response is the XML structure for the output arguments for action GetCallRetryInfo. type _WANPOTSLinkConfig1_GetCallRetryInfo_Response struct { - NewNumberOfRetries uint32 + NewNumberOfRetries string - NewDelayBetweenRetries uint32 + NewDelayBetweenRetries string } // GetCallRetryInfo action. @@ -5568,46 +5964,50 @@ type _WANPOTSLinkConfig1_GetCallRetryInfo_Response struct { // // Return values: // -// * NewNumberOfRetries: +// * NewNumberOfRetries: // (related state variable: NumberOfRetries) -// - -// - +// - +// - // // -// * NewDelayBetweenRetries: +// * NewDelayBetweenRetries: // (related state variable: DelayBetweenRetries) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetCallRetryInfo() ( NewNumberOfRetries uint32, - NewDelayBetweenRetries uint32, - err error) { - request := _WANPOTSLinkConfig1_GetCallRetryInfo_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetCallRetryInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetCallRetryInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetCallRetryInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetCallRetryInfo", &request, &response); err != nil { return } - NewNumberOfRetries = response.NewNumberOfRetries + // BEGIN Unmarshal arguments from response. - NewDelayBetweenRetries = response.NewDelayBetweenRetries + if NewNumberOfRetries, err = soap.UnmarshalUi4(response.NewNumberOfRetries); err != nil { + return + } + if NewDelayBetweenRetries, err = soap.UnmarshalUi4(response.NewDelayBetweenRetries); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetFclass_Request is the XML structure for the input arguments for action GetFclass. -type _WANPOTSLinkConfig1_GetFclass_Request struct {} +type _WANPOTSLinkConfig1_GetFclass_Request struct{} // _WANPOTSLinkConfig1_GetFclass_Response is the XML structure for the output arguments for action GetFclass. type _WANPOTSLinkConfig1_GetFclass_Response struct { @@ -5620,36 +6020,39 @@ type _WANPOTSLinkConfig1_GetFclass_Response struct { // // Return values: // -// * NewFclass: +// * NewFclass: // (related state variable: Fclass) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetFclass() ( NewFclass string, - err error) { - request := _WANPOTSLinkConfig1_GetFclass_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetFclass_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetFclass_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetFclass", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetFclass", &request, &response); err != nil { return } - NewFclass = response.NewFclass + // BEGIN Unmarshal arguments from response. + if NewFclass, err = soap.UnmarshalString(response.NewFclass); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetDataModulationSupported_Request is the XML structure for the input arguments for action GetDataModulationSupported. -type _WANPOTSLinkConfig1_GetDataModulationSupported_Request struct {} +type _WANPOTSLinkConfig1_GetDataModulationSupported_Request struct{} // _WANPOTSLinkConfig1_GetDataModulationSupported_Response is the XML structure for the output arguments for action GetDataModulationSupported. type _WANPOTSLinkConfig1_GetDataModulationSupported_Response struct { @@ -5662,36 +6065,39 @@ type _WANPOTSLinkConfig1_GetDataModulationSupported_Response struct { // // Return values: // -// * NewDataModulationSupported: +// * NewDataModulationSupported: // (related state variable: DataModulationSupported) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetDataModulationSupported() ( NewDataModulationSupported string, - err error) { - request := _WANPOTSLinkConfig1_GetDataModulationSupported_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetDataModulationSupported_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetDataModulationSupported_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataModulationSupported", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataModulationSupported", &request, &response); err != nil { return } - NewDataModulationSupported = response.NewDataModulationSupported + // BEGIN Unmarshal arguments from response. + if NewDataModulationSupported, err = soap.UnmarshalString(response.NewDataModulationSupported); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetDataProtocol_Request is the XML structure for the input arguments for action GetDataProtocol. -type _WANPOTSLinkConfig1_GetDataProtocol_Request struct {} +type _WANPOTSLinkConfig1_GetDataProtocol_Request struct{} // _WANPOTSLinkConfig1_GetDataProtocol_Response is the XML structure for the output arguments for action GetDataProtocol. type _WANPOTSLinkConfig1_GetDataProtocol_Response struct { @@ -5704,36 +6110,39 @@ type _WANPOTSLinkConfig1_GetDataProtocol_Response struct { // // Return values: // -// * NewDataProtocol: +// * NewDataProtocol: // (related state variable: DataProtocol) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetDataProtocol() ( NewDataProtocol string, - err error) { - request := _WANPOTSLinkConfig1_GetDataProtocol_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetDataProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetDataProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataProtocol", &request, &response); err != nil { return } - NewDataProtocol = response.NewDataProtocol + // BEGIN Unmarshal arguments from response. + if NewDataProtocol, err = soap.UnmarshalString(response.NewDataProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetDataCompression_Request is the XML structure for the input arguments for action GetDataCompression. -type _WANPOTSLinkConfig1_GetDataCompression_Request struct {} +type _WANPOTSLinkConfig1_GetDataCompression_Request struct{} // _WANPOTSLinkConfig1_GetDataCompression_Response is the XML structure for the output arguments for action GetDataCompression. type _WANPOTSLinkConfig1_GetDataCompression_Response struct { @@ -5746,36 +6155,39 @@ type _WANPOTSLinkConfig1_GetDataCompression_Response struct { // // Return values: // -// * NewDataCompression: +// * NewDataCompression: // (related state variable: DataCompression) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetDataCompression() ( NewDataCompression string, - err error) { - request := _WANPOTSLinkConfig1_GetDataCompression_Request{ + err error, +) { + var request _WANPOTSLinkConfig1_GetDataCompression_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetDataCompression_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataCompression", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetDataCompression", &request, &response); err != nil { return } - NewDataCompression = response.NewDataCompression + // BEGIN Unmarshal arguments from response. + if NewDataCompression, err = soap.UnmarshalString(response.NewDataCompression); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request is the XML structure for the input arguments for action GetPlusVTRCommandSupported. -type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request struct {} +type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request struct{} // _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response is the XML structure for the output arguments for action GetPlusVTRCommandSupported. type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response struct { @@ -5788,59 +6200,57 @@ type _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response struct { // // Return values: // -// * NewPlusVTRCommandSupported: +// * NewPlusVTRCommandSupported: // (related state variable: PlusVTRCommandSupported) -// - -// - +// - +// - // // func (client *WANPOTSLinkConfig1) GetPlusVTRCommandSupported() ( - NewPlusVTRCommandSupported string, - err error) { - request := _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request{ + NewPlusVTRCommandSupported bool, + err error, +) { + var request _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPOTSLinkConfig1_GetPlusVTRCommandSupported_Response - err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetPlusVTRCommandSupported", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPOTSLinkConfig_1, "GetPlusVTRCommandSupported", &request, &response); err != nil { return } - NewPlusVTRCommandSupported = response.NewPlusVTRCommandSupported + // BEGIN Unmarshal arguments from response. + if NewPlusVTRCommandSupported, err = soap.UnmarshalBoolean(response.NewPlusVTRCommandSupported); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // WANPPPConnection1 is a client for UPnP SOAP service with URN "urn:schemas-upnp-org:service:WANPPPConnection:1". type WANPPPConnection1 struct { SOAPClient soap.SOAPClient } - - - - - // _WANPPPConnection1_SetConnectionType_Request is the XML structure for the input arguments for action SetConnectionType. type _WANPPPConnection1_SetConnectionType_Request struct { NewConnectionType string } // _WANPPPConnection1_SetConnectionType_Response is the XML structure for the output arguments for action SetConnectionType. -type _WANPPPConnection1_SetConnectionType_Response struct {} +type _WANPPPConnection1_SetConnectionType_Response struct{} // SetConnectionType action. // Arguments: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // // @@ -5848,28 +6258,32 @@ type _WANPPPConnection1_SetConnectionType_Response struct {} // func (client *WANPPPConnection1) SetConnectionType( NewConnectionType string, -) ( err error) { - request := _WANPPPConnection1_SetConnectionType_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetConnectionType_Request + // BEGIN Marshal arguments into request. - NewConnectionType: NewConnectionType, - - } - var response _WANPPPConnection1_SetConnectionType_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetConnectionType", &request, &response) - if err != nil { + if request.NewConnectionType, err = soap.MarshalString(NewConnectionType); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetConnectionType_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetConnectionType", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetConnectionTypeInfo_Request is the XML structure for the input arguments for action GetConnectionTypeInfo. -type _WANPPPConnection1_GetConnectionTypeInfo_Request struct {} +type _WANPPPConnection1_GetConnectionTypeInfo_Request struct{} // _WANPPPConnection1_GetConnectionTypeInfo_Response is the XML structure for the output arguments for action GetConnectionTypeInfo. type _WANPPPConnection1_GetConnectionTypeInfo_Response struct { @@ -5884,45 +6298,49 @@ type _WANPPPConnection1_GetConnectionTypeInfo_Response struct { // // Return values: // -// * NewConnectionType: +// * NewConnectionType: // (related state variable: ConnectionType) -// - -// - +// - +// - // // -// * NewPossibleConnectionTypes: +// * NewPossibleConnectionTypes: // (related state variable: PossibleConnectionTypes) -// - +// - // - allowed values: // Unconfigured|IP_Routed|DHCP_Spoofed|PPPoE_Bridged|PPTP_Relay|L2TP_Relay|PPPoE_Relay // // func (client *WANPPPConnection1) GetConnectionTypeInfo() ( NewConnectionType string, - NewPossibleConnectionTypes string, - err error) { - request := _WANPPPConnection1_GetConnectionTypeInfo_Request{ + err error, +) { + var request _WANPPPConnection1_GetConnectionTypeInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetConnectionTypeInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetConnectionTypeInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetConnectionTypeInfo", &request, &response); err != nil { return } - NewConnectionType = response.NewConnectionType + // BEGIN Unmarshal arguments from response. - NewPossibleConnectionTypes = response.NewPossibleConnectionTypes + if NewConnectionType, err = soap.UnmarshalString(response.NewConnectionType); err != nil { + return + } + if NewPossibleConnectionTypes, err = soap.UnmarshalString(response.NewPossibleConnectionTypes); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_ConfigureConnection_Request is the XML structure for the input arguments for action ConfigureConnection. type _WANPPPConnection1_ConfigureConnection_Request struct { NewUserName string @@ -5931,21 +6349,21 @@ type _WANPPPConnection1_ConfigureConnection_Request struct { } // _WANPPPConnection1_ConfigureConnection_Response is the XML structure for the output arguments for action ConfigureConnection. -type _WANPPPConnection1_ConfigureConnection_Response struct {} +type _WANPPPConnection1_ConfigureConnection_Response struct{} // ConfigureConnection action. // Arguments: // -// * NewUserName: +// * NewUserName: // (related state variable: UserName) -// - -// - +// - +// - // // -// * NewPassword: +// * NewPassword: // (related state variable: Password) -// - -// - +// - +// - // // // @@ -5953,35 +6371,40 @@ type _WANPPPConnection1_ConfigureConnection_Response struct {} // func (client *WANPPPConnection1) ConfigureConnection( NewUserName string, - NewPassword string, -) ( err error) { - request := _WANPPPConnection1_ConfigureConnection_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_ConfigureConnection_Request + // BEGIN Marshal arguments into request. - NewUserName: NewUserName, - - NewPassword: NewPassword, - - } - var response _WANPPPConnection1_ConfigureConnection_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ConfigureConnection", &request, &response) - if err != nil { + if request.NewUserName, err = soap.MarshalString(NewUserName); err != nil { return } + if request.NewPassword, err = soap.MarshalString(NewPassword); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_ConfigureConnection_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ConfigureConnection", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_RequestConnection_Request is the XML structure for the input arguments for action RequestConnection. -type _WANPPPConnection1_RequestConnection_Request struct {} +type _WANPPPConnection1_RequestConnection_Request struct{} // _WANPPPConnection1_RequestConnection_Response is the XML structure for the output arguments for action RequestConnection. -type _WANPPPConnection1_RequestConnection_Response struct {} +type _WANPPPConnection1_RequestConnection_Response struct{} // RequestConnection action. // Arguments: @@ -5989,29 +6412,31 @@ type _WANPPPConnection1_RequestConnection_Response struct {} // // Return values: // -func (client *WANPPPConnection1) RequestConnection() ( err error) { - request := _WANPPPConnection1_RequestConnection_Request{ +func (client *WANPPPConnection1) RequestConnection() ( + err error, +) { + var request _WANPPPConnection1_RequestConnection_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_RequestConnection_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestConnection", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestConnection", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_RequestTermination_Request is the XML structure for the input arguments for action RequestTermination. -type _WANPPPConnection1_RequestTermination_Request struct {} +type _WANPPPConnection1_RequestTermination_Request struct{} // _WANPPPConnection1_RequestTermination_Response is the XML structure for the output arguments for action RequestTermination. -type _WANPPPConnection1_RequestTermination_Response struct {} +type _WANPPPConnection1_RequestTermination_Response struct{} // RequestTermination action. // Arguments: @@ -6019,29 +6444,31 @@ type _WANPPPConnection1_RequestTermination_Response struct {} // // Return values: // -func (client *WANPPPConnection1) RequestTermination() ( err error) { - request := _WANPPPConnection1_RequestTermination_Request{ +func (client *WANPPPConnection1) RequestTermination() ( + err error, +) { + var request _WANPPPConnection1_RequestTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_RequestTermination_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "RequestTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_ForceTermination_Request is the XML structure for the input arguments for action ForceTermination. -type _WANPPPConnection1_ForceTermination_Request struct {} +type _WANPPPConnection1_ForceTermination_Request struct{} // _WANPPPConnection1_ForceTermination_Response is the XML structure for the output arguments for action ForceTermination. -type _WANPPPConnection1_ForceTermination_Response struct {} +type _WANPPPConnection1_ForceTermination_Response struct{} // ForceTermination action. // Arguments: @@ -6049,39 +6476,41 @@ type _WANPPPConnection1_ForceTermination_Response struct {} // // Return values: // -func (client *WANPPPConnection1) ForceTermination() ( err error) { - request := _WANPPPConnection1_ForceTermination_Request{ +func (client *WANPPPConnection1) ForceTermination() ( + err error, +) { + var request _WANPPPConnection1_ForceTermination_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_ForceTermination_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ForceTermination", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "ForceTermination", &request, &response); err != nil { return } + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_SetAutoDisconnectTime_Request is the XML structure for the input arguments for action SetAutoDisconnectTime. type _WANPPPConnection1_SetAutoDisconnectTime_Request struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // _WANPPPConnection1_SetAutoDisconnectTime_Response is the XML structure for the output arguments for action SetAutoDisconnectTime. -type _WANPPPConnection1_SetAutoDisconnectTime_Response struct {} +type _WANPPPConnection1_SetAutoDisconnectTime_Response struct{} // SetAutoDisconnectTime action. // Arguments: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // // @@ -6089,41 +6518,45 @@ type _WANPPPConnection1_SetAutoDisconnectTime_Response struct {} // func (client *WANPPPConnection1) SetAutoDisconnectTime( NewAutoDisconnectTime uint32, -) ( err error) { - request := _WANPPPConnection1_SetAutoDisconnectTime_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewAutoDisconnectTime: NewAutoDisconnectTime, - - } - var response _WANPPPConnection1_SetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetAutoDisconnectTime", &request, &response) - if err != nil { + if request.NewAutoDisconnectTime, err = soap.MarshalUi4(NewAutoDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetAutoDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetAutoDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_SetIdleDisconnectTime_Request is the XML structure for the input arguments for action SetIdleDisconnectTime. type _WANPPPConnection1_SetIdleDisconnectTime_Request struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // _WANPPPConnection1_SetIdleDisconnectTime_Response is the XML structure for the output arguments for action SetIdleDisconnectTime. -type _WANPPPConnection1_SetIdleDisconnectTime_Response struct {} +type _WANPPPConnection1_SetIdleDisconnectTime_Response struct{} // SetIdleDisconnectTime action. // Arguments: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // // @@ -6131,41 +6564,45 @@ type _WANPPPConnection1_SetIdleDisconnectTime_Response struct {} // func (client *WANPPPConnection1) SetIdleDisconnectTime( NewIdleDisconnectTime uint32, -) ( err error) { - request := _WANPPPConnection1_SetIdleDisconnectTime_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - NewIdleDisconnectTime: NewIdleDisconnectTime, - - } - var response _WANPPPConnection1_SetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetIdleDisconnectTime", &request, &response) - if err != nil { + if request.NewIdleDisconnectTime, err = soap.MarshalUi4(NewIdleDisconnectTime); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetIdleDisconnectTime_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetIdleDisconnectTime", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_SetWarnDisconnectDelay_Request is the XML structure for the input arguments for action SetWarnDisconnectDelay. type _WANPPPConnection1_SetWarnDisconnectDelay_Request struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // _WANPPPConnection1_SetWarnDisconnectDelay_Response is the XML structure for the output arguments for action SetWarnDisconnectDelay. -type _WANPPPConnection1_SetWarnDisconnectDelay_Response struct {} +type _WANPPPConnection1_SetWarnDisconnectDelay_Response struct{} // SetWarnDisconnectDelay action. // Arguments: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // // @@ -6173,28 +6610,32 @@ type _WANPPPConnection1_SetWarnDisconnectDelay_Response struct {} // func (client *WANPPPConnection1) SetWarnDisconnectDelay( NewWarnDisconnectDelay uint32, -) ( err error) { - request := _WANPPPConnection1_SetWarnDisconnectDelay_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_SetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - NewWarnDisconnectDelay: NewWarnDisconnectDelay, - - } - var response _WANPPPConnection1_SetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetWarnDisconnectDelay", &request, &response) - if err != nil { + if request.NewWarnDisconnectDelay, err = soap.MarshalUi4(NewWarnDisconnectDelay); err != nil { return } + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_SetWarnDisconnectDelay_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "SetWarnDisconnectDelay", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetStatusInfo_Request is the XML structure for the input arguments for action GetStatusInfo. -type _WANPPPConnection1_GetStatusInfo_Request struct {} +type _WANPPPConnection1_GetStatusInfo_Request struct{} // _WANPPPConnection1_GetStatusInfo_Response is the XML structure for the output arguments for action GetStatusInfo. type _WANPPPConnection1_GetStatusInfo_Response struct { @@ -6202,7 +6643,7 @@ type _WANPPPConnection1_GetStatusInfo_Response struct { NewLastConnectionError string - NewUptime uint32 + NewUptime string } // GetStatusInfo action. @@ -6211,64 +6652,69 @@ type _WANPPPConnection1_GetStatusInfo_Response struct { // // Return values: // -// * NewConnectionStatus: +// * NewConnectionStatus: // (related state variable: ConnectionStatus) -// - +// - // - allowed values: // Unconfigured|Connected|Disconnected // // -// * NewLastConnectionError: +// * NewLastConnectionError: // (related state variable: LastConnectionError) -// - +// - // - allowed values: // ERROR_NONE // // -// * NewUptime: +// * NewUptime: // (related state variable: Uptime) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetStatusInfo() ( NewConnectionStatus string, - NewLastConnectionError string, - NewUptime uint32, - err error) { - request := _WANPPPConnection1_GetStatusInfo_Request{ + err error, +) { + var request _WANPPPConnection1_GetStatusInfo_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetStatusInfo_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetStatusInfo", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetStatusInfo", &request, &response); err != nil { return } - NewConnectionStatus = response.NewConnectionStatus + // BEGIN Unmarshal arguments from response. - NewLastConnectionError = response.NewLastConnectionError + if NewConnectionStatus, err = soap.UnmarshalString(response.NewConnectionStatus); err != nil { + return + } - NewUptime = response.NewUptime + if NewLastConnectionError, err = soap.UnmarshalString(response.NewLastConnectionError); err != nil { + return + } + if NewUptime, err = soap.UnmarshalUi4(response.NewUptime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetLinkLayerMaxBitRates_Request is the XML structure for the input arguments for action GetLinkLayerMaxBitRates. -type _WANPPPConnection1_GetLinkLayerMaxBitRates_Request struct {} +type _WANPPPConnection1_GetLinkLayerMaxBitRates_Request struct{} // _WANPPPConnection1_GetLinkLayerMaxBitRates_Response is the XML structure for the output arguments for action GetLinkLayerMaxBitRates. type _WANPPPConnection1_GetLinkLayerMaxBitRates_Response struct { - NewUpstreamMaxBitRate uint32 + NewUpstreamMaxBitRate string - NewDownstreamMaxBitRate uint32 + NewDownstreamMaxBitRate string } // GetLinkLayerMaxBitRates action. @@ -6277,46 +6723,50 @@ type _WANPPPConnection1_GetLinkLayerMaxBitRates_Response struct { // // Return values: // -// * NewUpstreamMaxBitRate: +// * NewUpstreamMaxBitRate: // (related state variable: UpstreamMaxBitRate) -// - -// - +// - +// - // // -// * NewDownstreamMaxBitRate: +// * NewDownstreamMaxBitRate: // (related state variable: DownstreamMaxBitRate) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetLinkLayerMaxBitRates() ( NewUpstreamMaxBitRate uint32, - NewDownstreamMaxBitRate uint32, - err error) { - request := _WANPPPConnection1_GetLinkLayerMaxBitRates_Request{ + err error, +) { + var request _WANPPPConnection1_GetLinkLayerMaxBitRates_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetLinkLayerMaxBitRates_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetLinkLayerMaxBitRates", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetLinkLayerMaxBitRates", &request, &response); err != nil { return } - NewUpstreamMaxBitRate = response.NewUpstreamMaxBitRate + // BEGIN Unmarshal arguments from response. - NewDownstreamMaxBitRate = response.NewDownstreamMaxBitRate + if NewUpstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewUpstreamMaxBitRate); err != nil { + return + } + if NewDownstreamMaxBitRate, err = soap.UnmarshalUi4(response.NewDownstreamMaxBitRate); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPPPEncryptionProtocol_Request is the XML structure for the input arguments for action GetPPPEncryptionProtocol. -type _WANPPPConnection1_GetPPPEncryptionProtocol_Request struct {} +type _WANPPPConnection1_GetPPPEncryptionProtocol_Request struct{} // _WANPPPConnection1_GetPPPEncryptionProtocol_Response is the XML structure for the output arguments for action GetPPPEncryptionProtocol. type _WANPPPConnection1_GetPPPEncryptionProtocol_Response struct { @@ -6329,36 +6779,39 @@ type _WANPPPConnection1_GetPPPEncryptionProtocol_Response struct { // // Return values: // -// * NewPPPEncryptionProtocol: +// * NewPPPEncryptionProtocol: // (related state variable: PPPEncryptionProtocol) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPPPEncryptionProtocol() ( NewPPPEncryptionProtocol string, - err error) { - request := _WANPPPConnection1_GetPPPEncryptionProtocol_Request{ + err error, +) { + var request _WANPPPConnection1_GetPPPEncryptionProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPPPEncryptionProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPEncryptionProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPEncryptionProtocol", &request, &response); err != nil { return } - NewPPPEncryptionProtocol = response.NewPPPEncryptionProtocol + // BEGIN Unmarshal arguments from response. + if NewPPPEncryptionProtocol, err = soap.UnmarshalString(response.NewPPPEncryptionProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPPPCompressionProtocol_Request is the XML structure for the input arguments for action GetPPPCompressionProtocol. -type _WANPPPConnection1_GetPPPCompressionProtocol_Request struct {} +type _WANPPPConnection1_GetPPPCompressionProtocol_Request struct{} // _WANPPPConnection1_GetPPPCompressionProtocol_Response is the XML structure for the output arguments for action GetPPPCompressionProtocol. type _WANPPPConnection1_GetPPPCompressionProtocol_Response struct { @@ -6371,36 +6824,39 @@ type _WANPPPConnection1_GetPPPCompressionProtocol_Response struct { // // Return values: // -// * NewPPPCompressionProtocol: +// * NewPPPCompressionProtocol: // (related state variable: PPPCompressionProtocol) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPPPCompressionProtocol() ( NewPPPCompressionProtocol string, - err error) { - request := _WANPPPConnection1_GetPPPCompressionProtocol_Request{ + err error, +) { + var request _WANPPPConnection1_GetPPPCompressionProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPPPCompressionProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPCompressionProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPCompressionProtocol", &request, &response); err != nil { return } - NewPPPCompressionProtocol = response.NewPPPCompressionProtocol + // BEGIN Unmarshal arguments from response. + if NewPPPCompressionProtocol, err = soap.UnmarshalString(response.NewPPPCompressionProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPPPAuthenticationProtocol_Request is the XML structure for the input arguments for action GetPPPAuthenticationProtocol. -type _WANPPPConnection1_GetPPPAuthenticationProtocol_Request struct {} +type _WANPPPConnection1_GetPPPAuthenticationProtocol_Request struct{} // _WANPPPConnection1_GetPPPAuthenticationProtocol_Response is the XML structure for the output arguments for action GetPPPAuthenticationProtocol. type _WANPPPConnection1_GetPPPAuthenticationProtocol_Response struct { @@ -6413,36 +6869,39 @@ type _WANPPPConnection1_GetPPPAuthenticationProtocol_Response struct { // // Return values: // -// * NewPPPAuthenticationProtocol: +// * NewPPPAuthenticationProtocol: // (related state variable: PPPAuthenticationProtocol) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPPPAuthenticationProtocol() ( NewPPPAuthenticationProtocol string, - err error) { - request := _WANPPPConnection1_GetPPPAuthenticationProtocol_Request{ + err error, +) { + var request _WANPPPConnection1_GetPPPAuthenticationProtocol_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPPPAuthenticationProtocol_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPAuthenticationProtocol", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPPPAuthenticationProtocol", &request, &response); err != nil { return } - NewPPPAuthenticationProtocol = response.NewPPPAuthenticationProtocol + // BEGIN Unmarshal arguments from response. + if NewPPPAuthenticationProtocol, err = soap.UnmarshalString(response.NewPPPAuthenticationProtocol); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetUserName_Request is the XML structure for the input arguments for action GetUserName. -type _WANPPPConnection1_GetUserName_Request struct {} +type _WANPPPConnection1_GetUserName_Request struct{} // _WANPPPConnection1_GetUserName_Response is the XML structure for the output arguments for action GetUserName. type _WANPPPConnection1_GetUserName_Response struct { @@ -6455,36 +6914,39 @@ type _WANPPPConnection1_GetUserName_Response struct { // // Return values: // -// * NewUserName: +// * NewUserName: // (related state variable: UserName) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetUserName() ( NewUserName string, - err error) { - request := _WANPPPConnection1_GetUserName_Request{ + err error, +) { + var request _WANPPPConnection1_GetUserName_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetUserName_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetUserName", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetUserName", &request, &response); err != nil { return } - NewUserName = response.NewUserName + // BEGIN Unmarshal arguments from response. + if NewUserName, err = soap.UnmarshalString(response.NewUserName); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetPassword_Request is the XML structure for the input arguments for action GetPassword. -type _WANPPPConnection1_GetPassword_Request struct {} +type _WANPPPConnection1_GetPassword_Request struct{} // _WANPPPConnection1_GetPassword_Response is the XML structure for the output arguments for action GetPassword. type _WANPPPConnection1_GetPassword_Response struct { @@ -6497,40 +6959,43 @@ type _WANPPPConnection1_GetPassword_Response struct { // // Return values: // -// * NewPassword: +// * NewPassword: // (related state variable: Password) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetPassword() ( NewPassword string, - err error) { - request := _WANPPPConnection1_GetPassword_Request{ + err error, +) { + var request _WANPPPConnection1_GetPassword_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetPassword_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPassword", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetPassword", &request, &response); err != nil { return } - NewPassword = response.NewPassword + // BEGIN Unmarshal arguments from response. + if NewPassword, err = soap.UnmarshalString(response.NewPassword); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetAutoDisconnectTime_Request is the XML structure for the input arguments for action GetAutoDisconnectTime. -type _WANPPPConnection1_GetAutoDisconnectTime_Request struct {} +type _WANPPPConnection1_GetAutoDisconnectTime_Request struct{} // _WANPPPConnection1_GetAutoDisconnectTime_Response is the XML structure for the output arguments for action GetAutoDisconnectTime. type _WANPPPConnection1_GetAutoDisconnectTime_Response struct { - NewAutoDisconnectTime uint32 + NewAutoDisconnectTime string } // GetAutoDisconnectTime action. @@ -6539,40 +7004,43 @@ type _WANPPPConnection1_GetAutoDisconnectTime_Response struct { // // Return values: // -// * NewAutoDisconnectTime: +// * NewAutoDisconnectTime: // (related state variable: AutoDisconnectTime) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetAutoDisconnectTime() ( NewAutoDisconnectTime uint32, - err error) { - request := _WANPPPConnection1_GetAutoDisconnectTime_Request{ + err error, +) { + var request _WANPPPConnection1_GetAutoDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetAutoDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetAutoDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetAutoDisconnectTime", &request, &response); err != nil { return } - NewAutoDisconnectTime = response.NewAutoDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewAutoDisconnectTime, err = soap.UnmarshalUi4(response.NewAutoDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetIdleDisconnectTime_Request is the XML structure for the input arguments for action GetIdleDisconnectTime. -type _WANPPPConnection1_GetIdleDisconnectTime_Request struct {} +type _WANPPPConnection1_GetIdleDisconnectTime_Request struct{} // _WANPPPConnection1_GetIdleDisconnectTime_Response is the XML structure for the output arguments for action GetIdleDisconnectTime. type _WANPPPConnection1_GetIdleDisconnectTime_Response struct { - NewIdleDisconnectTime uint32 + NewIdleDisconnectTime string } // GetIdleDisconnectTime action. @@ -6581,40 +7049,43 @@ type _WANPPPConnection1_GetIdleDisconnectTime_Response struct { // // Return values: // -// * NewIdleDisconnectTime: +// * NewIdleDisconnectTime: // (related state variable: IdleDisconnectTime) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetIdleDisconnectTime() ( NewIdleDisconnectTime uint32, - err error) { - request := _WANPPPConnection1_GetIdleDisconnectTime_Request{ + err error, +) { + var request _WANPPPConnection1_GetIdleDisconnectTime_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetIdleDisconnectTime_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetIdleDisconnectTime", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetIdleDisconnectTime", &request, &response); err != nil { return } - NewIdleDisconnectTime = response.NewIdleDisconnectTime + // BEGIN Unmarshal arguments from response. + if NewIdleDisconnectTime, err = soap.UnmarshalUi4(response.NewIdleDisconnectTime); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetWarnDisconnectDelay_Request is the XML structure for the input arguments for action GetWarnDisconnectDelay. -type _WANPPPConnection1_GetWarnDisconnectDelay_Request struct {} +type _WANPPPConnection1_GetWarnDisconnectDelay_Request struct{} // _WANPPPConnection1_GetWarnDisconnectDelay_Response is the XML structure for the output arguments for action GetWarnDisconnectDelay. type _WANPPPConnection1_GetWarnDisconnectDelay_Response struct { - NewWarnDisconnectDelay uint32 + NewWarnDisconnectDelay string } // GetWarnDisconnectDelay action. @@ -6623,36 +7094,39 @@ type _WANPPPConnection1_GetWarnDisconnectDelay_Response struct { // // Return values: // -// * NewWarnDisconnectDelay: +// * NewWarnDisconnectDelay: // (related state variable: WarnDisconnectDelay) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetWarnDisconnectDelay() ( NewWarnDisconnectDelay uint32, - err error) { - request := _WANPPPConnection1_GetWarnDisconnectDelay_Request{ + err error, +) { + var request _WANPPPConnection1_GetWarnDisconnectDelay_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetWarnDisconnectDelay_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetWarnDisconnectDelay", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetWarnDisconnectDelay", &request, &response); err != nil { return } - NewWarnDisconnectDelay = response.NewWarnDisconnectDelay + // BEGIN Unmarshal arguments from response. + if NewWarnDisconnectDelay, err = soap.UnmarshalUi4(response.NewWarnDisconnectDelay); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetNATRSIPStatus_Request is the XML structure for the input arguments for action GetNATRSIPStatus. -type _WANPPPConnection1_GetNATRSIPStatus_Request struct {} +type _WANPPPConnection1_GetNATRSIPStatus_Request struct{} // _WANPPPConnection1_GetNATRSIPStatus_Response is the XML structure for the output arguments for action GetNATRSIPStatus. type _WANPPPConnection1_GetNATRSIPStatus_Response struct { @@ -6667,58 +7141,62 @@ type _WANPPPConnection1_GetNATRSIPStatus_Response struct { // // Return values: // -// * NewRSIPAvailable: +// * NewRSIPAvailable: // (related state variable: RSIPAvailable) -// - -// - +// - +// - // // -// * NewNATEnabled: +// * NewNATEnabled: // (related state variable: NATEnabled) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetNATRSIPStatus() ( - NewRSIPAvailable string, + NewRSIPAvailable bool, + NewNATEnabled bool, + err error, +) { + var request _WANPPPConnection1_GetNATRSIPStatus_Request + // BEGIN Marshal arguments into request. - NewNATEnabled string, - err error) { - request := _WANPPPConnection1_GetNATRSIPStatus_Request{ + // END Marshal arguments into request. - } + // Perform the SOAP call. var response _WANPPPConnection1_GetNATRSIPStatus_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetNATRSIPStatus", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetNATRSIPStatus", &request, &response); err != nil { return } - NewRSIPAvailable = response.NewRSIPAvailable + // BEGIN Unmarshal arguments from response. - NewNATEnabled = response.NewNATEnabled + if NewRSIPAvailable, err = soap.UnmarshalBoolean(response.NewRSIPAvailable); err != nil { + return + } + if NewNATEnabled, err = soap.UnmarshalBoolean(response.NewNATEnabled); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetGenericPortMappingEntry_Request is the XML structure for the input arguments for action GetGenericPortMappingEntry. type _WANPPPConnection1_GetGenericPortMappingEntry_Request struct { - NewPortMappingIndex uint16 + NewPortMappingIndex string } // _WANPPPConnection1_GetGenericPortMappingEntry_Response is the XML structure for the output arguments for action GetGenericPortMappingEntry. type _WANPPPConnection1_GetGenericPortMappingEntry_Response struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -6726,136 +7204,148 @@ type _WANPPPConnection1_GetGenericPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetGenericPortMappingEntry action. // Arguments: // -// * NewPortMappingIndex: +// * NewPortMappingIndex: // (related state variable: PortMappingNumberOfEntries) -// - -// - +// - +// - // // // // Return values: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetGenericPortMappingEntry( NewPortMappingIndex uint16, ) ( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANPPPConnection1_GetGenericPortMappingEntry_Request{ + err error, +) { + var request _WANPPPConnection1_GetGenericPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewPortMappingIndex: NewPortMappingIndex, - - } - var response _WANPPPConnection1_GetGenericPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetGenericPortMappingEntry", &request, &response) - if err != nil { + if request.NewPortMappingIndex, err = soap.MarshalUi2(NewPortMappingIndex); err != nil { return } - NewRemoteHost = response.NewRemoteHost + // END Marshal arguments into request. - NewExternalPort = response.NewExternalPort + // Perform the SOAP call. + var response _WANPPPConnection1_GetGenericPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetGenericPortMappingEntry", &request, &response); err != nil { + return + } - NewProtocol = response.NewProtocol + // BEGIN Unmarshal arguments from response. - NewInternalPort = response.NewInternalPort + if NewRemoteHost, err = soap.UnmarshalString(response.NewRemoteHost); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if NewExternalPort, err = soap.UnmarshalUi2(response.NewExternalPort); err != nil { + return + } - NewEnabled = response.NewEnabled + if NewProtocol, err = soap.UnmarshalString(response.NewProtocol); err != nil { + return + } - NewPortMappingDescription = response.NewPortMappingDescription + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetSpecificPortMappingEntry_Request is the XML structure for the input arguments for action GetSpecificPortMappingEntry. type _WANPPPConnection1_GetSpecificPortMappingEntry_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANPPPConnection1_GetSpecificPortMappingEntry_Response is the XML structure for the output arguments for action GetSpecificPortMappingEntry. type _WANPPPConnection1_GetSpecificPortMappingEntry_Response struct { - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -6863,27 +7353,27 @@ type _WANPPPConnection1_GetSpecificPortMappingEntry_Response struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // GetSpecificPortMappingEntry action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -6891,95 +7381,106 @@ type _WANPPPConnection1_GetSpecificPortMappingEntry_Response struct { // // Return values: // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetSpecificPortMappingEntry( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, ) ( NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, - err error) { - request := _WANPPPConnection1_GetSpecificPortMappingEntry_Request{ + err error, +) { + var request _WANPPPConnection1_GetSpecificPortMappingEntry_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANPPPConnection1_GetSpecificPortMappingEntry_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetSpecificPortMappingEntry", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } - NewInternalPort = response.NewInternalPort + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } - NewInternalClient = response.NewInternalClient + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } - NewEnabled = response.NewEnabled + // END Marshal arguments into request. - NewPortMappingDescription = response.NewPortMappingDescription + // Perform the SOAP call. + var response _WANPPPConnection1_GetSpecificPortMappingEntry_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetSpecificPortMappingEntry", &request, &response); err != nil { + return + } - NewLeaseDuration = response.NewLeaseDuration + // BEGIN Unmarshal arguments from response. + if NewInternalPort, err = soap.UnmarshalUi2(response.NewInternalPort); err != nil { + return + } + + if NewInternalClient, err = soap.UnmarshalString(response.NewInternalClient); err != nil { + return + } + + if NewEnabled, err = soap.UnmarshalBoolean(response.NewEnabled); err != nil { + return + } + + if NewPortMappingDescription, err = soap.UnmarshalString(response.NewPortMappingDescription); err != nil { + return + } + + if NewLeaseDuration, err = soap.UnmarshalUi4(response.NewLeaseDuration); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_AddPortMapping_Request is the XML structure for the input arguments for action AddPortMapping. type _WANPPPConnection1_AddPortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string - NewInternalPort uint16 + NewInternalPort string NewInternalClient string @@ -6987,62 +7488,62 @@ type _WANPPPConnection1_AddPortMapping_Request struct { NewPortMappingDescription string - NewLeaseDuration uint32 + NewLeaseDuration string } // _WANPPPConnection1_AddPortMapping_Response is the XML structure for the output arguments for action AddPortMapping. -type _WANPPPConnection1_AddPortMapping_Response struct {} +type _WANPPPConnection1_AddPortMapping_Response struct{} // AddPortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // // -// * NewInternalPort: +// * NewInternalPort: // (related state variable: InternalPort) -// - -// - +// - +// - // // -// * NewInternalClient: +// * NewInternalClient: // (related state variable: InternalClient) -// - -// - +// - +// - // // -// * NewEnabled: +// * NewEnabled: // (related state variable: PortMappingEnabled) -// - -// - +// - +// - // // -// * NewPortMappingDescription: +// * NewPortMappingDescription: // (related state variable: PortMappingDescription) -// - -// - +// - +// - // // -// * NewLeaseDuration: +// * NewLeaseDuration: // (related state variable: PortMappingLeaseDuration) -// - -// - +// - +// - // // // @@ -7050,84 +7551,95 @@ type _WANPPPConnection1_AddPortMapping_Response struct {} // func (client *WANPPPConnection1) AddPortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, - NewInternalPort uint16, - NewInternalClient string, - - NewEnabled string, - + NewEnabled bool, NewPortMappingDescription string, - NewLeaseDuration uint32, -) ( err error) { - request := _WANPPPConnection1_AddPortMapping_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_AddPortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - NewInternalPort: NewInternalPort, - - NewInternalClient: NewInternalClient, - - NewEnabled: NewEnabled, - - NewPortMappingDescription: NewPortMappingDescription, - - NewLeaseDuration: NewLeaseDuration, - - } - var response _WANPPPConnection1_AddPortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "AddPortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + if request.NewInternalPort, err = soap.MarshalUi2(NewInternalPort); err != nil { + return + } + + if request.NewInternalClient, err = soap.MarshalString(NewInternalClient); err != nil { + return + } + + if request.NewEnabled, err = soap.MarshalBoolean(NewEnabled); err != nil { + return + } + + if request.NewPortMappingDescription, err = soap.MarshalString(NewPortMappingDescription); err != nil { + return + } + + if request.NewLeaseDuration, err = soap.MarshalUi4(NewLeaseDuration); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_AddPortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "AddPortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_DeletePortMapping_Request is the XML structure for the input arguments for action DeletePortMapping. type _WANPPPConnection1_DeletePortMapping_Request struct { NewRemoteHost string - NewExternalPort uint16 + NewExternalPort string NewProtocol string } // _WANPPPConnection1_DeletePortMapping_Response is the XML structure for the output arguments for action DeletePortMapping. -type _WANPPPConnection1_DeletePortMapping_Response struct {} +type _WANPPPConnection1_DeletePortMapping_Response struct{} // DeletePortMapping action. // Arguments: // -// * NewRemoteHost: +// * NewRemoteHost: // (related state variable: RemoteHost) -// - -// - +// - +// - // // -// * NewExternalPort: +// * NewExternalPort: // (related state variable: ExternalPort) -// - -// - +// - +// - // // -// * NewProtocol: +// * NewProtocol: // (related state variable: PortMappingProtocol) -// - +// - // - allowed values: // TCP|UDP // @@ -7137,36 +7649,42 @@ type _WANPPPConnection1_DeletePortMapping_Response struct {} // func (client *WANPPPConnection1) DeletePortMapping( NewRemoteHost string, - NewExternalPort uint16, - NewProtocol string, -) ( err error) { - request := _WANPPPConnection1_DeletePortMapping_Request{ +) ( + err error, +) { + var request _WANPPPConnection1_DeletePortMapping_Request + // BEGIN Marshal arguments into request. - NewRemoteHost: NewRemoteHost, - - NewExternalPort: NewExternalPort, - - NewProtocol: NewProtocol, - - } - var response _WANPPPConnection1_DeletePortMapping_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "DeletePortMapping", &request, &response) - if err != nil { + if request.NewRemoteHost, err = soap.MarshalString(NewRemoteHost); err != nil { return } + if request.NewExternalPort, err = soap.MarshalUi2(NewExternalPort); err != nil { + return + } + + if request.NewProtocol, err = soap.MarshalString(NewProtocol); err != nil { + return + } + + // END Marshal arguments into request. + + // Perform the SOAP call. + var response _WANPPPConnection1_DeletePortMapping_Response + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "DeletePortMapping", &request, &response); err != nil { + return + } + + // BEGIN Unmarshal arguments from response. + + // END Unmarshal arguments from response. return } - - - - - // _WANPPPConnection1_GetExternalIPAddress_Request is the XML structure for the input arguments for action GetExternalIPAddress. -type _WANPPPConnection1_GetExternalIPAddress_Request struct {} +type _WANPPPConnection1_GetExternalIPAddress_Request struct{} // _WANPPPConnection1_GetExternalIPAddress_Response is the XML structure for the output arguments for action GetExternalIPAddress. type _WANPPPConnection1_GetExternalIPAddress_Response struct { @@ -7179,28 +7697,33 @@ type _WANPPPConnection1_GetExternalIPAddress_Response struct { // // Return values: // -// * NewExternalIPAddress: +// * NewExternalIPAddress: // (related state variable: ExternalIPAddress) -// - -// - +// - +// - // // func (client *WANPPPConnection1) GetExternalIPAddress() ( NewExternalIPAddress string, - err error) { - request := _WANPPPConnection1_GetExternalIPAddress_Request{ + err error, +) { + var request _WANPPPConnection1_GetExternalIPAddress_Request + // BEGIN Marshal arguments into request. - } + // END Marshal arguments into request. + + // Perform the SOAP call. var response _WANPPPConnection1_GetExternalIPAddress_Response - err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetExternalIPAddress", &request, &response) - if err != nil { + if err = client.SOAPClient.PerformAction(URN_WANPPPConnection_1, "GetExternalIPAddress", &request, &response); err != nil { return } - NewExternalIPAddress = response.NewExternalIPAddress + // BEGIN Unmarshal arguments from response. + if NewExternalIPAddress, err = soap.UnmarshalString(response.NewExternalIPAddress); err != nil { + return + } + + // END Unmarshal arguments from response. return } - - - diff --git a/scpd/scpd.go b/scpd/scpd.go index 096c7d7..b3c2e68 100644 --- a/scpd/scpd.go +++ b/scpd/scpd.go @@ -37,31 +37,6 @@ func (scpd *SCPD) Clean() { } } -var dataTypeToGoKindName = map[string]string{ - "ui1": "byte", - "ui2": "uint16", - "ui4": "uint32", - "i1": "int8", - "i2": "int16", - "i4": "int32", - "int": "int64", - "float": "float32", - "r4": "float32", - "r8": "float64", - // "fixed.14.4" ~ "float64" - "number": "float64", - "char": "string", - "string": "string", - // "date" - // "dateTime" - // "dateTime.tz" - // "boolean" - // "bin.base64" - // "bin.hex" - // "uri" - // "uuid" -} - func (scpd *SCPD) GetStateVariable(variable string) *StateVariable { for i := range scpd.StateVariables { v := &scpd.StateVariables[i] @@ -72,21 +47,6 @@ func (scpd *SCPD) GetStateVariable(variable string) *StateVariable { return nil } -// Returns the name of the Go "kind" of type for the named state variable. If -// the state variable is unknown, returns default_. -func (scpd *SCPD) GoKindNameForVariable(variable string, default_ string) string { - v := scpd.GetStateVariable(variable) - if v == nil { - return default_ - } - - if kindName, ok := dataTypeToGoKindName[v.DataType.Name]; ok { - return kindName - } else { - return default_ - } -} - // SpecVersion is part of a SCPD document, describes the version of the // specification that the data adheres to. type SpecVersion struct { diff --git a/soap/types.go b/soap/types.go index 1c86e77..cd16510 100644 --- a/soap/types.go +++ b/soap/types.go @@ -139,6 +139,14 @@ func UnmarshalChar(s string) (rune, error) { return r, nil } +func MarshalString(v string) (string, error) { + return v, nil +} + +func UnmarshalString(v string) (string, error) { + return v, nil +} + func parseInt(s string, err *error) int { v, parseErr := strconv.ParseInt(s, 10, 64) if parseErr != nil {