Yes, but when I just changed the Service Implementation, I couldn't figure
out how to access the ServiceImpl without directly grabbing a reference to
it, thereby destroying the client side wrapping. Therefore I just added the
two new signatures to the XML:DB API; the old Interface signatures work as
well. I also thought about adding a Flag as a member variable to the
ServiceImpl eg

    /** Flag to turn the NodeSource Attribute off */
   private boolean nodeSource = true;
   /** Sets the nodeSource Flag */
   public void setNodeSource(boolean flag) {
    this.nodeSource = flag;
   }
   /** Gets the nodeSource Flag */
   public boolean getNodeSource() {
    return this.nodeSource;
   }
   /** XML:DB API Interface Impl */
   public org.xmldb.api.base.ResourceSet query(String query) throws
XMLDBException {
    return query(query,this.nodeSource);
   }
   /** XML:DB API Interface Impl */
   public org.xmldb.api.base.ResourceSet queryResource (String id, String
query) throws XMLDBException {
    return queryResource(id,query,this.nodeSource);
   }

but I would still have to "enrich" the client side API by adding the new
method signature to it.

I thought it was just two sides of a square, because I couldn't imagine as a
client how to use a new server behaviour without knowing via the Interface
Definition of its existence, if you know what I mean.

Cheers
Ben
----- Original Message -----
From: "Kimbro Staken" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, February 26, 2002 5:24 PM
Subject: Re: Turning off the NodeSource Attributes in the root Node of the
Result Document


> Did you explore any ways to do this without changing the XML:DB API
> interfaces? Perhaps by using setProperty?
>
> On Tuesday, February 26, 2002, at 08:36 AM, Benjamin Hood wrote:
>
> > Hallo,
> >
> > for those that it interests (and are not really busy with the release) ,
I
> > developed a work around to turn off the NodeSource Attributes if needs
be.
> > As far as I can tell, it seems to work:
> >
> > I changed the following:
> >
> > 1. org.apache.xindice.client.corba.CollectionServant
> > 2. the Interface definition xindice.idl
> > 3. Recompiled the stubs
> > 4. org.apache.xindice.client.xmldb.services.XPathQueryServiceImpl
> > 5. org.xmldb.api.modules.XPathQueryService
> >
> > I've attached a brief description, if anybody's interested.
> >
> > Cheers Ben
> >
> Kimbro Staken - http://www.kstaken.org - http://www.xmldatabases.org
> Apache Xindice native XML database http://xml.apache.org/xindice
> XML:DB Initiative http://www.xmldb.org
> Senior Technologist (Your company name here)
>

Reply via email to