The following operations are supported. For a formal definition,
please review the
Service Description.
Web Service Links
Namespace Children of ::wsdb::elements::datetime::AddDurationToDateTimeResponse
Namespace Code for ::wsdb::elements::datetime::AddDurationToDateTimeResponse
namespace eval ::wsdb::elements::datetime::AddDurationToDateTimeResponse {
variable Children {StartDateTime Duration EndDateTime}
variable MaxOccurs
set MaxOccurs(EndDateTime) 1
set MaxOccurs(Duration) 1
set MaxOccurs(StartDateTime) 1
variable MinOccurs
set MinOccurs(EndDateTime) 1
set MinOccurs(Duration) 1
set MinOccurs(StartDateTime) 1
variable facetList {form Value name AddDurationToDateTimeResponse}
variable new ::wsdb::elements::datetime::AddDurationToDateTimeResponse::new
variable validate ::wsdb::elements::datetime::AddDurationToDateTimeResponse::ValidateAddDurationToDateTimeResponse
variable validate_Duration ::wsdb::elements::datetime::AddDurationToDateTimeResponse::Duration::Validate
variable validate_EndDateTime ::wsdb::elements::datetime::AddDurationToDateTimeResponse::EndDateTime::Validate
variable validate_StartDateTime ::wsdb::elements::datetime::AddDurationToDateTimeResponse::StartDateTime::Validate
}
Procedures in ::wsdb::elements::datetime::AddDurationToDateTimeResponse
proc ::wsdb::elements::datetime::AddDurationToDateTimeResponse::ValidateAddDurationToDateTimeResponse {
namespace
} {
variable Children
variable MinOccurs
variable MaxOccurs
variable validate_StartDateTime
variable validate_Duration
variable validate_EndDateTime
array set COUNT [array get ${namespace}::.COUNT]
set COUNT(.INVALID) 0
set ElementNames $Children
foreach ElementName $ElementNames {
if {$MinOccurs($ElementName) > 0} {
if {![info exists COUNT($ElementName)]} {
::wsdl::elements::noteFault $namespace [list 4 $ElementName 0 $MinOccurs($ElementName)]
incr COUNT(.INVALID)
return 0
} elseif {$COUNT($ElementName) < $MinOccurs($ElementName)} {
::wsdl::elements::noteFaunt $namespace [list 4 $ElementName $COUNT($ElementName) $MinOccurs($ElementName)]
incr COUNT(.INVALID)
return 0
}
}
if {[info exists COUNT($ElementName)] && $COUNT($ElementName) > $MaxOccurs($ElementName)} {
::wsdl::elements::noteFault $namespace [list 5 $ElementName $COUNT($ElementName) $MaxOccurs($ElementName)]
incr COUNT(.INVALID)
return 0
}
}
set PARTS [set ${namespace}::.PARTS]
set COUNT(.ELEMENTS) 0
foreach PART $PARTS {
incr COUNT(.ELEMENTS)
foreach {childName prefix childPart} $PART {}
set childPart [::xml::normalizeNamespace $namespace $childPart]
switch -exact -- $childName {
StartDateTime {
if {![eval [linsert $validate_StartDateTime end $childPart]]} {
::wsdl::elements::noteFault $namespace [list 2 StartDateTime $childPart]
incr COUNT(.INVALID)
break
}
}
Duration {
if {![eval [linsert $validate_Duration end $childPart]]} {
::wsdl::elements::noteFault $namespace [list 2 Duration $childPart]
incr COUNT(.INVALID)
break
}
}
EndDateTime {
if {![eval [linsert $validate_EndDateTime end $childPart]]} {
::wsdl::elements::noteFault $namespace [list 2 EndDateTime $childPart]
incr COUNT(.INVALID)
break
}
}
default {
::wsdl::elements::noteFault $namespace [list 3 $childName $childPart]
incr COUNT(.INVALID)
}
}
}
if {$COUNT(.INVALID)} {
return 0
} else {
return 1
}
}
proc ::wsdb::elements::datetime::AddDurationToDateTimeResponse::new {
instanceNamespace
childValuesList
} {
set typeNS [::xml::element::append $instanceNamespace AddDurationToDateTimeResponse]
if {[lindex $childValuesList 0] ne ""} {
$::wsdb::elements::datetime::AddDurationToDateTimeResponse::StartDateTime::new $typeNS [lindex $childValuesList 0]
} else {
return -code error "Missing value for required Element StartDateTime with no default value calling $::wsdb::elements::datetime::AddDurationToDateTimeResponse::StartDateTime::new"
}
if {[lindex $childValuesList 1] ne ""} {
$::wsdb::elements::datetime::AddDurationToDateTimeResponse::Duration::new $typeNS [lindex $childValuesList 1]
} else {
return -code error "Missing value for required Element Duration with no default value calling $::wsdb::elements::datetime::AddDurationToDateTimeResponse::Duration::new"
}
if {[lindex $childValuesList 2] ne ""} {
$::wsdb::elements::datetime::AddDurationToDateTimeResponse::EndDateTime::new $typeNS [lindex $childValuesList 2]
} else {
return -code error "Missing value for required Element EndDateTime with no default value calling $::wsdb::elements::datetime::AddDurationToDateTimeResponse::EndDateTime::new"
}
return $typeNS
}