Tutorial: Defining an inbound Web service >

< Previous | Next >

 

Prepare your workspace

+

Search Tips   |   Advanced Search

This section is related to preparing your workspace.

The WebServicesRouter project contains all files that are used to define Web services. You should place all your WSDL (Web Services Description Language) and XSD (XML Schema Definition) files in this project. When developing a new Web service or modifying an existing Web service definition, you can find the files in the WebServiceRouter project under the WebContent folder. The WebContent folder contains wsdl and xsd folders to hold new WSDL and XSD files respectively. In order to reuse the schemas in other Web service definitions, you should separate the schema from the WSDL file. To prepare your workspace:

  1. Open WebSphere Commerce Developer.

  2. In the Project Explorer view, ensure that the Group projects by type button is selected, as shown in the following screen capture.

    By selecting the Group projects by type button, you ensure that the view in WebSphere Commerce Developer matches the screen captures and instructions in this tutorial.

  3. Ensure that a starter store is published:

    If you published your store, refresh the Stores project after the publishing has successfully completed:

    1. Open WebSphere Commerce Developer.

    2. Switch to the Project Explorer view.

    3. Navigate to Dynamic Web Projects.

    4. Right-click Stores and select Refresh.

Test your environment to ensure that you are ready to start the tutorial:

  1. In WebSphere Commerce Developer, switch to the Server view.

  2. Right-click WebSphere Commerce Test Server and select Start if the server is stopped or Restart > Start if the server is running.

  3. Both the console view and the WC_installdir/wasprofiles/logs/server1/trace.log file should display the server's status as it starts. Watch the console or examine the log to see when the WebSphere Commerce Test Server server has finished its startup process. You will see information like this when the server has started:
    A WSVR0001I: Server server1 open for e-business

  4. In the Project Explorer view, expand...

    Dynamic Web Projects | Stores | WebContent | ConsumerDirect_name

  5. Right-click the index.jsp file and select Run on Server.If the Server Selection window opens, select Choose an existing server and click Finish.

  6. Select a product and ensure that you can purchase it successfully.

< Previous | Next >