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

Web Service Links

Namespace Children of ::wsdb::elements::mywebservice::testStringResponse

Namespace Code for ::wsdb::elements::mywebservice::testStringResponse

namespace eval ::wsdb::elements::mywebservice::testStringResponse {
    variable Children {MyString ErrorForMyString MyString2 ErrorForMyString2 MyString3 ErrorForMyString3}

    variable MaxOccurs
         set MaxOccurs(MyString3) 1
         set MaxOccurs(ErrorForMyString2) 1
         set MaxOccurs(ErrorForMyString3) 1
         set MaxOccurs(MyString) 1
         set MaxOccurs(ErrorForMyString) 1
         set MaxOccurs(MyString2) 1

    variable MinOccurs
         set MinOccurs(MyString3) 1
         set MinOccurs(ErrorForMyString2) 1
         set MinOccurs(ErrorForMyString3) 1
         set MinOccurs(MyString) 1
         set MinOccurs(ErrorForMyString) 1
         set MinOccurs(MyString2) 1
    variable facetList {form Value name testStringResponse}
    variable new ::wsdb::elements::mywebservice::testStringResponse::new
    variable validate ::wsdb::elements::mywebservice::testStringResponse::ValidatetestStringResponse
    variable validate_ErrorForMyString ::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString::Validate
    variable validate_ErrorForMyString2 ::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString2::Validate
    variable validate_ErrorForMyString3 ::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString3::Validate
    variable validate_MyString ::wsdb::elements::mywebservice::testStringResponse::MyString::Validate
    variable validate_MyString2 ::wsdb::elements::mywebservice::testStringResponse::MyString2::Validate
    variable validate_MyString3 ::wsdb::elements::mywebservice::testStringResponse::MyString3::Validate

}

Procedures in ::wsdb::elements::mywebservice::testStringResponse


proc ::wsdb::elements::mywebservice::testStringResponse::ValidatetestStringResponse {
    namespace
} {

    variable Children
    variable MinOccurs
    variable MaxOccurs
    variable validate_MyString
    variable validate_ErrorForMyString
    variable validate_MyString2
    variable validate_ErrorForMyString2
    variable validate_MyString3
    variable validate_ErrorForMyString3
    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 {
            MyString {
                if {![eval [linsert $validate_MyString end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 MyString $childPart]
                    incr COUNT(.INVALID)
                    break
                }
            }
            ErrorForMyString {
                if {![eval [linsert $validate_ErrorForMyString end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 ErrorForMyString $childPart]
                    incr COUNT(.INVALID)
                    break
                }
            }
            MyString2 {
                if {![eval [linsert $validate_MyString2 end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 MyString2 $childPart]
                    incr COUNT(.INVALID)
                    break
                }
            }
            ErrorForMyString2 {
                if {![eval [linsert $validate_ErrorForMyString2 end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 ErrorForMyString2 $childPart]
                    incr COUNT(.INVALID)
                    break
                }
            }
            MyString3 {
                if {![eval [linsert $validate_MyString3 end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 MyString3 $childPart]
                    incr COUNT(.INVALID)
                    break
                }
            }
            ErrorForMyString3 {
                if {![eval [linsert $validate_ErrorForMyString3 end $childPart]]} {
                    ::wsdl::elements::noteFault $namespace [list 2 ErrorForMyString3 $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::testStringResponse::new {
    instanceNamespace
    childValuesList
} {

    set typeNS [::xml::element::append $instanceNamespace testStringResponse]
    if {[lindex $childValuesList 0] ne ""} {
        $::wsdb::elements::mywebservice::testStringResponse::MyString::new $typeNS [lindex $childValuesList 0]
    } else {
        return -code error "Missing value for required Element MyString with no default value calling $::wsdb::elements::mywebservice::testStringResponse::MyString::new"
    }
    if {[lindex $childValuesList 1] ne ""} {
        $::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString::new $typeNS [lindex $childValuesList 1]
    } else {
        return -code error "Missing value for required Element ErrorForMyString with no default value calling $::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString::new"
    }
    if {[lindex $childValuesList 2] ne ""} {
        $::wsdb::elements::mywebservice::testStringResponse::MyString2::new $typeNS [lindex $childValuesList 2]
    } else {
        return -code error "Missing value for required Element MyString2 with no default value calling $::wsdb::elements::mywebservice::testStringResponse::MyString2::new"
    }
    if {[lindex $childValuesList 3] ne ""} {
        $::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString2::new $typeNS [lindex $childValuesList 3]
    } else {
        return -code error "Missing value for required Element ErrorForMyString2 with no default value calling $::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString2::new"
    }
    if {[lindex $childValuesList 4] ne ""} {
        $::wsdb::elements::mywebservice::testStringResponse::MyString3::new $typeNS [lindex $childValuesList 4]
    } else {
        return -code error "Missing value for required Element MyString3 with no default value calling $::wsdb::elements::mywebservice::testStringResponse::MyString3::new"
    }
    if {[lindex $childValuesList 5] ne ""} {
        $::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString3::new $typeNS [lindex $childValuesList 5]
    } else {
        return -code error "Missing value for required Element ErrorForMyString3 with no default value calling $::wsdb::elements::mywebservice::testStringResponse::ErrorForMyString3::new"
    }
    return $typeNS
}