Creating a JAX-WS Service Consumer Project from WSDL

To create a JAX-WS service consumer project based on an existing WSDL:
  1. Do one of the following:
    • Click File > New > Project... > Swordfish > JAX-WS Service Consumer from WSDL.
    • Click File > Import... > Swordfish > JAX-WS Service Consumer from WSDL.
    • Right-click the WSDL in your workspace and click Import... > Swordfish > JAX-WS Service Consumer from WSDL.
  2. Click Next.
  3. In the New Plug-in Project wizard window, type a name for your project in the Project name field.
  4. Click Next.
  5. In the Plug-in Content wizard window, we recommend that you clear the Generate an activator, a Java class that controls the plug-in's lifecycle check box because initialization using the Spring framework is preferred in Swordfish.

    If you have started this wizard using the context menu option on a WSDL in your workspace, click Finish. Otherwise click Next.

  6. In the Generate sources from WSDL window, you can:
    • Select the WSDL from your workspace, file system or Service Registry.
    • Select the Generate static endpoint radio button to generate a static endpoint or select the Use dynamic endpoint lookup radio button to use dynamic lookup.
    • Select the Generate example code check box to create an example invoker.
  7. Click Finish. The new Service Consumer project is visible in your workspace.