Tutorials > Program model > Web services > Create a WebSphere Commerce service module (SOI) > Creating the Get TutorialStore service
Generate the SDOs for the TutorialStore noun
In this step, you generate the data objects required for implementing the logical data model of the TutorialStore noun, which is defined in the TutorialStore.xsd file.
Before generating the data objects, set up the predefined WebSphere Commerce type constructs, and to update the JET-generated TutorialStore.xsd template with the own noun definition.
After you have updated the XSD definition file, the projects can generate the data objects for the TutorialStore noun. In Java, the data objects representing the TutorialStore noun are service data objects (SDOs) and are stored in the TutorialStore-DataObjects project. These data objects are generated directly from the TutorialStore noun using the Eclipse Modeling Framework (EMF).
Remember: You must have the Eclipse Modelling Framework (EMF) capability enabled in WebSphere Commerce Developer to complete this step of the tutorial.
Procedure
- Setup the predefined WebSphere Commerce type constructs, and update the JET-generated TutorialStore.xsd template with the own noun definition:
- Update the generated TutorialStore noun:
- Open the SOITutorialStore-DataObjects/xsd/OAGIS/9.0/Overlays/MyCompany/Commerce/Resources/Nouns/TutorialStore.xsd file in Rational Application Developer.
- Replace the generated content with the contents of TutorialStore.xsd. The file can be found in the TutorialStore.zip file, downloaded from the tutorial's prerequisites section.
You can ignore the validation error messages at this time. These errors will be resolved later in the tutorial.
- Generate the data objects for the TutorialStore noun:
- Open the SOITutorialStore-DataObjects\ecore folder.
- Right-click SOITutorialStore.genmodel and select Reload.
- Select XML Schema and click Next.
- Click Next again and click Finish.
- Open SOITutorialStore.genmodel.
- Right-click the SOITutorialStore element under the SOITutorialStore root and select Generate Model Code. This generates the SOITutorialStore-DataObjects code.
- Verify that the SOITutorialStore-DataObjects project has no compilation errors.