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