The following operations are supported. For a formal definition, please review the Service Description.

Web Service Links

Namespace Children of ::wsdb::elements::mywebservice::MultiplyNumbersRequest

Namespace Code for ::wsdb::elements::mywebservice::MultiplyNumbersRequest

namespace eval ::wsdb::elements::mywebservice::MultiplyNumbersRequest {
    variable Children {FirstDecimal SecondDecimal}

    variable MaxOccurs
         set MaxOccurs(SecondDecimal) 1
         set MaxOccurs(FirstDecimal) 1

    variable MinOccurs
         set MinOccurs(SecondDecimal) 0
         set MinOccurs(FirstDecimal) 0
    variable facetList {form Value name MultiplyNumbersRequest}
    variable new ::wsdb::elements::mywebservice::MultiplyNumbersRequest::new
    variable validate ::wsdb::elements::mywebservice::MultiplyNumbersRequest::ValidateMultiplyNumbersRequest
    variable validate_FirstDecimal ::wsdb::elements::mywebservice::MultiplyNumbersRequest::FirstDecimal::Validate
    variable validate_SecondDecimal ::wsdb::elements::mywebservice::MultiplyNumbersRequest::SecondDecimal::Validate

}

Procedures in ::wsdb::elements::mywebservice::MultiplyNumbersRequest


proc ::wsdb::elements::mywebservice::MultiplyNumbersRequest::new {
    instanceNamespace
    childValuesList
} {

    set typeNS [::xml::element::append $instanceNamespace MultiplyNumbersRequest]
    if {[lindex $childValuesList 0] ne ""} {
        $::wsdb::elements::mywebservice::MultiplyNumbersRequest::FirstDecimal::new $typeNS [lindex $childValuesList 0]
    } else {
        $::wsdb::elements::mywebservice::MultiplyNumbersRequest::FirstDecimal::new $typeNS 0.0
    }
    if {[lindex $childValuesList 1] ne ""} {
        $::wsdb::elements::mywebservice::MultiplyNumbersRequest::SecondDecimal::new $typeNS [lindex $childValuesList 1]
    } else {
        $::wsdb::elements::mywebservice::MultiplyNumbersRequest::SecondDecimal::new $typeNS 0.0
    }
    return $typeNS
}


proc ::wsdb::elements::mywebservice::MultiplyNumbersRequest::ValidateMultiplyNumbersRequest {
    namespace
} {

    variable Children
    variable MinOccurs
    variable MaxOccurs
    variable validate_FirstDecimal
    variable validate_SecondDecimal
    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 {
            FirstDecimal {
                if {![eval [linsert $validate_FirstDecimal end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 FirstDecimal $childPart]
                    incr COUNT(.INVALID)
                    break
                }
            }
            SecondDecimal {
                if {![eval [linsert $validate_SecondDecimal end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 SecondDecimal $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
    }
}