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