Menu

#22 default namespace require?

open
SOAP (17)
5
2005-04-08
2005-04-08
Pat Thoyts
No

In the following method should the parameter be
namespaced into the given uri? Possibly the method
element should be declaring a default namespace --
check the specs and interop.

SOAP::create t -uri urn:test:test -proxy
urn:print:print -params {param1 string}

Discussion

  • Anonymous

    Anonymous - 2007-11-28

    Logged In: YES
    user_id=1983
    Originator: NO

    attached a fix, to replace around line 900 etc in SOAP.tcl

     
  • Anonymous

    Anonymous - 2007-11-28

    Logged In: YES
    user_id=1983
    Originator: NO

    Hmm... attach not enabled. Here's the raw code then:

    # insert the parameters.
    set param_no 0
    foreach {key type} $params {
    set val [lindex $args $param_no]
    if {$uri == ""} {
    # don't use a namespace prefix if we don't have a namespace.
    set d_param [dom::document createElement $cmd $key]
    } else {
    set d_param [dom::document createElement $cmd "ns:$key" ]
    dom::element setAttribute $d_param "xmlns:ns" $uri
    }
    insert_value $d_param [rpcvar $type $val]
    incr param_no
    }

     

Log in to post a comment.

Auth0 Logo