Tutorials > Program model > Web services > Create a WebSphere Commerce service module (SOI) > Creating the Process TutorialStore service
Regenerate 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.
You can now update the data objects required for implementing the logical data model of the Process service support 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
- Update the generated TutorialStore noun:
- Open the SOITutorialStore-DataObjects/xsd/OAGIS/9.0/Overlays/MyCompany/Commerce/Resources/Nouns/TutorialStore.xsd file in a text editor.
- 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.
- Regenerate 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.
- Click Add.
- Expand the WebServicesRouter\WebContent\component-services\ecore folder.
- Select Foundation.genmodel and Oagis9.genmodel.
- Click OK.
- In the Referenced generator models area, select com.ibm.commerce.oagis9.datatypes.codelists, com.ibm.commerce.oagis9.datatypes.unqualifieddatatypes, com.ibm.commerce.oagis9.datatypes under the Oagis9 model and com.ibm.commerce.foundation.common.datatypes under the Foundation model. 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.
It may be necessary to include the WebSphereCommerceServerExtensionsData project in the build path to resolve the compilation error.