Adding a Service-Driven Component to a Web Application

After you create a Web application, you can add a service-driven component. You must enable SOAP service component support in your Web application project. SOAP service component support adds libraries that enable the generation of service-managed beans during design time and invokes the service at runtime.

The following workflow guides you through the development process. For assistance in performing these tasks, launch the Adding a Service-Driven Component to a Web Application cheat sheet.

  1. Do one of:
    • Add the service-driven component to an existing Web Application project.

    • Create a new Web Application project.

      In the New Web Application Project wizard, select Sybase service support as your configuration to create a blank project and add SOAP service support.

  2. Do one of:
    • Import a service.

    • Select a service using the Service Explorer.

    • Select a service using the Service Container.

    • Select a service using the UDDI registry.

    • Enter the WSDL URL.

  3. Create a service-managed bean.
  4. Create a Web page.
    1. Add a control from the Palette to the Web page.
    2. Define property values for the control.
    3. (Optional) Change the appearance of the control.
    4. Add the service object to the Web page.
    5. Review and edit the Service properties.
    6. Bind the Service managed bean to the Service object in the Web page.
    7. (Optional) Preview the Web page.
    8. Save the Web page.
    9. Test the Web page.
    10. Repeat step 4 a-i to create additional Web pages.
  5. Complete the faces-config xml file configuration.
  6. Complete the web.xml file configuration.
  7. Create a Web application navigation flow.
  8. Deploy the Web application.
Related tasks
Adding a Data-Driven Component to a Web Application
Building a Web Page Using a Managed Bean

Send your feedback on this help topic to Sybase Technical Publications: pubs@sybase.com

Your comments will be sent to the technical publications staff at Sybase, Inc. For product-related issues or technical support, contact Sybase Technical Support at 1-800-8SYBASE.