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

Web Service Links

Namespace Children of ::wsdb::elements::address::sendMail2Request

Namespace Code for ::wsdb::elements::address::sendMail2Request

namespace eval ::wsdb::elements::address::sendMail2Request {
    variable Children {envelopeId fromAddress toAddress}

    variable MaxOccurs
         set MaxOccurs(toAddress) 1
         set MaxOccurs(fromAddress) 1
         set MaxOccurs(envelopeId) 1

    variable MinOccurs
         set MinOccurs(toAddress) 1
         set MinOccurs(fromAddress) 1
         set MinOccurs(envelopeId) 1
    variable facetList {form Value name sendMail2Request}
    variable new ::wsdb::elements::address::sendMail2Request::new
    variable validate ::wsdb::elements::address::sendMail2Request::ValidatesendMail2Request
    variable validate_envelopeId ::wsdb::elements::address::sendMail2Request::envelopeId::Validate
    variable validate_fromAddress ::wsdb::elements::address::fromAddress::ValidatefromAddress
    variable validate_toAddress ::wsdb::elements::address::toAddress::ValidatetoAddress

}

Procedures in ::wsdb::elements::address::sendMail2Request


proc ::wsdb::elements::address::sendMail2Request::new {
    instanceNamespace
    childValuesList
} {

    set typeNS [::xml::element::append $instanceNamespace sendMail2Request]
    if {[lindex $childValuesList 0] ne ""} {
        $::wsdb::elements::address::sendMail2Request::envelopeId::new $typeNS [lindex $childValuesList 0]
    } else {
        $::wsdb::elements::address::sendMail2Request::envelopeId::new $typeNS 125
    }
    if {[lindex $childValuesList 1] ne ""} {
        $::wsdb::elements::address::sendMail2Request::fromAddress::new $typeNS [lindex $childValuesList 1]
    } else {
        $::wsdb::elements::address::sendMail2Request::fromAddress::new $typeNS {{1} {x} {y} {z} {a} {WA} {98198}}
    }
    if {[lindex $childValuesList 2] ne ""} {
        $::wsdb::elements::address::sendMail2Request::toAddress::new $typeNS [lindex $childValuesList 2]
    } else {
        $::wsdb::elements::address::sendMail2Request::toAddress::new $typeNS {{2} {a} {b} {c} {x} {WA} {98198-5115}}
    }
    return $typeNS
}


proc ::wsdb::elements::address::sendMail2Request::ValidatesendMail2Request {
    namespace
} {

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