Return-Path: Mailing-List: contact axis-user-help@xml.apache.org; run by ezmlm Delivered-To: mailing list axis-user@xml.apache.org Received: (qmail 83242 invoked from network); 25 Mar 2002 23:40:33 -0000 Received: from unknown (HELO S1001EXM01.macromedia.com) (63.109.193.152) by daedalus.apache.org with SMTP; 25 Mar 2002 23:40:33 -0000 Received: by S1001EXM01.macromedia.com with Internet Mail Service (5.5.2653.19) id ; Mon, 25 Mar 2002 18:40:38 -0500 Message-ID: From: Glen Daniels To: "'axis-user@xml.apache.org'" Subject: RE: HREF BROKEN Date: Mon, 25 Mar 2002 18:39:11 -0500 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi Richard! Doing it the way we do it now makes for fast and easy serialization. We simply serialize on the fly, and each time we come to a non-primitive we lay down an HREF, knowing that we'll write out the actual value at the end. Doing it the way you want to do it is much more complicated, because now you need to walk the entire tree of objects and count references to each one. Essentially you'd need to have a separate "recordReferences()" method on every serializer, and call that before the serialization begins. That's doable, but kind of a pain. Why is this important to you? --Glen > -----Original Message----- > From: Richard Emberson [mailto:emberson@phc.net] > Sent: Monday, March 25, 2002 2:55 PM > To: axis-user@xml.apache.org > Subject: HREF BROKEN > > > It is my understanding that hrefs can be used in the case > when an object > > is share by more than > one other objects. With an href, the shared object can be > serialized and > > those objects that > have a reference to the shared object will be serialized with > an element > > containing the > href rather than the shared object itself. > > Turning on multiref seems to create hrefs for all non primitive types. > What I want is to have > hrefs generated only for those shared objects that actually > need them (I > > believe that the apache > soap library - axis' precursor - had this ability). How do I do it? > > > > class A { > .... > Shared s; > } > class B { > .... > Shared s; > } > class Shared { > ... > } > > > ..... > > > > ..... > > > > .... > > > > > Richard > > > >