The following operations are supported. For a formal definition,
please review the
Service Description.
Web Service Links
Namespace Children of ::wsdb::elements::datetime::CheckDateTimeResponse
Namespace Code for ::wsdb::elements::datetime::CheckDateTimeResponse
namespace eval ::wsdb::elements::datetime::CheckDateTimeResponse {
variable Children {DateTime IsDateTime}
variable MaxOccurs
set MaxOccurs(IsDateTime) 1
set MaxOccurs(DateTime) 1
variable MinOccurs
set MinOccurs(IsDateTime) 1
set MinOccurs(DateTime) 1
variable facetList {form Value name CheckDateTimeResponse}
variable new ::wsdb::elements::datetime::CheckDateTimeResponse::new
variable validate ::wsdb::elements::datetime::CheckDateTimeResponse::ValidateCheckDateTimeResponse
variable validate_DateTime ::wsdb::elements::datetime::CheckDateTimeResponse::DateTime::Validate
variable validate_IsDateTime ::wsdb::elements::datetime::CheckDateTimeResponse::IsDateTime::Validate
}
Procedures in ::wsdb::elements::datetime::CheckDateTimeResponse
proc ::wsdb::elements::datetime::CheckDateTimeResponse::ValidateCheckDateTimeResponse {
namespace
} {
variable Children
variable MinOccurs
variable MaxOccurs
variable validate_DateTime
variable validate_IsDateTime
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 {
DateTime {
if {![eval [linsert $validate_DateTime end $childPart]]} {
::wsdl::elements::noteFault $namespace [list 2 DateTime $childPart]
incr COUNT(.INVALID)
break
}
}
IsDateTime {
if {![eval [linsert $validate_IsDateTime end $childPart]]} {
::wsdl::elements::noteFault $namespace [list 2 IsDateTime $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::CheckDateTimeResponse::new {
instanceNamespace
childValuesList
} {
set typeNS [::xml::element::append $instanceNamespace CheckDateTimeResponse]
if {[lindex $childValuesList 0] ne ""} {
$::wsdb::elements::datetime::CheckDateTimeResponse::DateTime::new $typeNS [lindex $childValuesList 0]
} else {
return -code error "Missing value for required Element DateTime with no default value calling $::wsdb::elements::datetime::CheckDateTimeResponse::DateTime::new"
}
if {[lindex $childValuesList 1] ne ""} {
$::wsdb::elements::datetime::CheckDateTimeResponse::IsDateTime::new $typeNS [lindex $childValuesList 1]
} else {
return -code error "Missing value for required Element IsDateTime with no default value calling $::wsdb::elements::datetime::CheckDateTimeResponse::IsDateTime::new"
}
return $typeNS
}