Lesson 1: Create a service managed bean

Create a service managed bean based on a public WSDL file.

StepsCreating a service managed bean

  1. If necessary, close the JSF Page Template view.

  2. Click the Data Bindings view at the bottom of the perspective window to display it.

  3. Right-click session and select New from the context menu to open the Create a Managed Bean wizard.

  4. In the Create a Managed Bean wizard, select Service Managed Bean and click Next.

  5. In the Faces-Config File page, accept the default settings and click Next.

  6. Select Input WSDL and click Next.

  7. To define the WSDL file for the service managed bean, select From URL and enter the following in the URL field:

    http://www.ripedev.com/webservices
    /LocalTime.asmx?WSDL
    
     
    
  8. Click Validate WSDL to test the validity of the WSDL file.

  9. Click OK to close the Validation box and then Next in the Service Managed Bean page to continue.

  10. On the Service Selection page, define the service and port for the service managed bean.

    Leave the Operation Name field blank and click Next.

    For this tutorial, the the managed bean is based on the port name; however, you can also create service managed beans based on operation names.

  11. In the Managed Bean Configuration page, accept the default settings and click Next.

  12. Review the Summary page, and click Finish to create the service managed bean.

    The localTimeSoap service managed bean appears in the Data Bindings view.