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

< Previous | Next >


Modify the TutorialStore service module projects

In this step, you reuse the Java Emitter Template (JET) to modify the base code for the Get TutorialStore component and introduce the support for Process. Your existing Get TutorialStore service logic remains unchanged.


Procedure

  1. Start WebSphere Commerce Developer.

  2. Open the Java EE perspective.

  3. Modify the application definition file to update the base code for the TutorialStore component and enable the Process pattern.

    1. Go to the WebSphereCommerceServerExtensionsLogic project and expand the ServiceModuleDefinition directory.

    2. Right-click the SOITutorialStore.xml file; then click Open.

    3. Update the XML file to enable the Process pattern option. Search for the TutorialStore noun. Set the value of the process attribute to true.

      <noun name="TutorialStore" get="true" process="true" change="false" sync="false" />
      

    4. Save the file.

  4. Right-click the SOITutorialStore.xml file; then click Run As > Input for JET Transformation

  5. In the Transformation section, select com.ibm.commerce.toolkit.internal.pattern.componentprojects; then click OK. The pattern is applied. The message Successful Execution is displayed.

    In some TutorialStore service projects, there are compilation errors. These errors are corrected later in the tutorial and can safely be ignored.

< Previous | Next >


+

Search Tips   |   Advanced Search