Tutorials > Program model > Web services > Create a WebSphere Commerce service module (SOI) > Creating the Get TutorialStore service

< Previous | Next >


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

  1. Setup the predefined WebSphere Commerce type constructs, and update the JET-generated TutorialStore.xsd template with the own noun definition:

    1. Update the generated TutorialStore noun:

      1. Open the SOITutorialStore-DataObjects/xsd/OAGIS/9.0/Overlays/MyCompany/Commerce/Resources/Nouns/TutorialStore.xsd file in Rational Application Developer.

      2. 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.

  2. Generate the data objects for the TutorialStore noun:

    1. Open the SOITutorialStore-DataObjects\ecore folder.

    2. Right-click SOITutorialStore.genmodel and select Reload.

    3. Select XML Schema and click Next.

    4. Click Next again and click Finish.

    5. Open SOITutorialStore.genmodel.

    6. Right-click the SOITutorialStore element under the SOITutorialStore root and select Generate Model Code. This generates the SOITutorialStore-DataObjects code.

    7. Verify that the SOITutorialStore-DataObjects project has no compilation errors.

< Previous | Next >


+

Search Tips   |   Advanced Search