• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Service Data Object (SDO)

 
Chris as
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

i need a simple sample for SDO. Yes, there are samples on the net, but the samples are generating a DataGraph manually. I need one, reading an XML Schema creating a DataGraph after that it should read a XML file and load it into the Datagraph automatically. After that, i will access every DataObject.

I found some samples which uses XMLHelper and other, but I think im too stupid for , it doesn�t work. I use the SDO API source. The compile is right! There is no HelperProviderImpl!

Allways the same exception after i compiled it.



How should this class look like? Any Ideas?

In the end, a small sample with the right API would be great! THX

Christoph
 
Chris as
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I found the answer! Its so stupid...I tried to work with EMF and SDO 2.0!


EMF only supports SDO 1.0. For that refer to the documents here:

http://www.eclipse.org/emf/docs.php#sdo

SDO 2.0 work is happening at Apache. For that go here:

http://incubator.apache.org/tuscany/
 
mukta darera
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hey, i am trying to do the same thing now, and i got stuck at exactly the same place- the class wasn't found. how did you eventually work your way around it?
 
Chris as
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don�t know, why it work, but i created the Model by EMF and got the Object by SDO and EMF. But in the end i only worked with the EMF construct. It is easier to get the objects by setter and getter classes, instead of hardcoded Strings.

Here is some Code i used to get my Project work:



After that, you are able to access the Objects by EMF or SDO.


Accessing Object:




Perhaps it helped you....
I got the Problem, that i had to cast very mutch in my function, like you can see at EMF:name.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic