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

< Previous | Next >


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

  1. Update the generated TutorialStore noun:

    1. Open the SOITutorialStore-DataObjects/xsd/OAGIS/9.0/Overlays/MyCompany/Commerce/Resources/Nouns/TutorialStore.xsd file in a text editor.

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

    5. Click Add.

    6. Expand the WebServicesRouter\WebContent\component-services\ecore folder.

    7. Select Foundation.genmodel and Oagis9.genmodel.

    8. Click OK.

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

    10. Open SOITutorialStore.genmodel.

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

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

< Previous | Next >


+

Search Tips   |   Advanced Search