Menu

#17 braces missing for first element

open
SOAP (17)
5
2004-08-04
2004-08-04
No

During some test with TclSOAP, I got the strange result

name1 value1 name2 value2 {name1 value1 name2 value2}
{name1 value1 name2 value2}

when I rather expected something like

{name1 value1 name2 value2} {name1 value1 name2 value2}
{name1 value1 name2 value2}

The missing braces result from a call to "set" on the
first array element, thus breaking the structure of
$result in ::SOAP::parse_soap_response (SOAP.tcl). It
would be better to use "lappend", as it is done for
arrays in ::SOAP::Utils::decomposeSoap (utils.tcl)

Discussion

  • Christian Schuster

    Patch

     
  • Kim Brennan

    Kim Brennan - 2009-03-09

    In SOAP.tcl, line 1038 (line 55 of proc ::SOAP::parse_soap_response, and if statement exists, which causes this. The quick fix is to eliminate the if statement and just make that line "lappend result $r".

    Is there any reason known NOT to do this?

     

Log in to post a comment.

Auth0 Logo