To create a JAX-WS service consumer project based on an existing WSDL:
-
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.
-
Click Next.
-
In the New Plug-in Project wizard window, type a name for your project in the Project name field.
- Click Next.
-
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.
- 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.
-
Click Finish.
The new Service Consumer project is visible in your workspace.