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