Tutorials > Web services > Define an inbound Web service

< Previous | Next >


Prepare the workspace

The WebServicesRouter project contains all files that are used to define Web services. You should place all the WSDL (Web Services Description Language) and XSD (XML Schema Definition) files in this project.

To develop a new Web service or modify an existing Web service definition, use the files in the WebServiceRouter project under the WebContent folder. The WebContent folder contains wsdl and xsd folders. To reuse the schemas in other Web service definitions, separate the schema from the WSDL file.


Procedure

  1. Open WebSphere Commerce Developer.

  2. Publish the consumer direct sample store.

  3. Refresh the Stores project after the publishing has successfully completed.

    1. Open WebSphere Commerce Developer.

    2. Switch to the Enterprise Explorer view.

    3. Right-click Stores and select Refresh.

  4. Test the 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; then click Start. Or, Restart > Start if the server is running.

    3. Both the console view and the WC_INSTALL/wasprofiles/logs/server1/trace.log file show the server's status as it starts. Watch the console or examine the log to see when the WebSphere Commerce Test Server has finished its startup process. The following message indicates that the server has started:

      A WSVR0001I: Server server1 open for e-business
      

    4. In the Enterprise Explorer view, expand 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 >


+

Search Tips   |   Advanced Search