Hi all

I have created an XML Schema with a toplevel
dataobject and a contained datagraph as specified in
the webservice sample part of the SDO 2.1 spec (page
132).

I then generated static SDO code from the XML schema
which resulted in implementations for the toplevel
dataobject and the contained datagraph.

The generated code for the static datagraph somehow
differs quite a lot from the dynamic programming model
using the commonj.sdo.DataGraph.

When I turn on logging on the generated static
datagraph, I notice that no changes are getting
recorded. It contains a partial change summary without
any changes:

<?xml version="1.0" encoding="ASCII"?>
<datagraph
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:tns="http://abc.com/services";
xsi:type="tns:MyDataGraph">
  <changeSummary logging="true" />
  <NestedType>
    <test1>test1_modified</test1>
    <test2>test2_modified</test2>
  </NestedType>
</datagraph>

Using the dynamic programming model, it contains a
full change summary with recorded changes:

<?xml version="1.0" encoding="ASCII"?>
<sdo:datagraph
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:sdo="commonj.sdo"
   
xmlns:sdo_1="http://www.apache.org/tuscany/2005/SDO";
xmlns:tns="http://abc.com/services";>
  <changeSummary xmlns=""
      logging="true">
    <objectChanges key="#//@eRootObject">
      <value xsi:type="sdo_1:ChangeSummarySetting"
featureName="test2" dataValue="test2"/>
      <value xsi:type="sdo_1:ChangeSummarySetting"
featureName="test1" dataValue="test1"/>
    </objectChanges>
  </changeSummary>
  <tns:NestedType>
    <test1>test1_modified</test1>
    <test2>test2_modified</test2>
  </tns:NestedType>
</sdo:datagraph>

Is the static approach of modelling a datagraph within
an XSD basically supported with the current TUSCANY
implementation? 

I attached a sample XSD and test implementation.

Thanks
Erich



       
____________________________________________________________________________________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car 
Finder tool.
http://autos.yahoo.com/carfinder/
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to