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