Menu

#26 Fix problem with circular references

closed-wont-fix
None
4
2009-05-02
2003-06-02
No

(submitted by "James Felix Black"
<jfelixbl@cisco.com>)

Reference is not encoded as an independent element:

This code:

use SOAP::Lite;

$s = SOAP::Serializer->new;
$a = {myFloat => 1.2, myInt => 3};
$a->{nested} = $a;
print $s->readable(1)->multirefinplace(0)->method(a =>
$a, $a);

generates

<SOAP-ENV:Body>
<a>
<c-gensym3 id="ref-27430908"
xsi:type="namesp1:SOAPStruct">
<myInt xsi:type="xsd:int">3</myInt>
<myFloat xsi:type="xsd:float">1.2</myFloat>
<nested href="#ref-27430908"
xsi:type="namesp1:SOAPStruct"/>
</c-gensym3>
<c-gensym5 href="#ref-27430908"
xsi:type="namesp1:SOAPStruct"/>
</a>
</SOAP-ENV:Body>

whereas the content has to be inside the second
element ("c-gensym5" in this example).

Discussion

  • Martin Kutter

    Martin Kutter - 2009-05-02

    I think this is either fixed or actually nobody uses it - nobody asked for it for years...

     
  • Martin Kutter

    Martin Kutter - 2009-05-02
    • status: open --> closed-wont-fix
     

Log in to post a comment.