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