Modifying the TutorialStore Web service module projects

In this step, you reuse the Java Emitter Template (JET) to modify the base code for your 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.
      <_pattern: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

    Run As, Input for JET Transformation

    The pattern is applied. The message Successful Execution is displayed.
    Note: In some TutorialStore service projects, there are compilation errors. These errors are corrected later in the tutorial and can safely be ignored.