Checkout the Screen Cast of WSClient++ for Java

WSClient++ is a code generation application designed by NeuroSpeech. It writes code for different platforms which can access Web Services from existing WSDL code. Given below is a step by step guide that will explain how to use this application to generate JAR libraries for Java platforms using WSClient++.

  1. Run Eclipse.
  2. Select and expand the project.
  3. Right-click the “src” folder.
  4. Expand the “New” option, and select “Package”.
  5. Enter the name of the new package and click “Finish”.

    This will create a new package within your Java project.

  6. Now run the installed WSClient++ application.
  7. Paste the WSDL Url in the “WSDL Urls:” field.

    WSClient++ will read your Web Service information from this WSDL Url and generate the necessary code.

  8. Make sure to select “Java” as your “Client Type”.
  9. Select the target as required.
  10. Specify the name of the package that was created earlier in step 5 in the “Package” field.
  11. Copy the path information of the package created in step 5 in the “Folder to store” field. This information can be obtained by right-clicking the package and selecting properties.
  12. Click “Generate” to generate the code.

    WSClient++ will now generate the Web Service code required for the application in Java to communicate with your Web Service for your application. This code will be provided in the .JAR file which needs to be added to your application’s Java Build Path.

  13. Now click the “Source and Library” button in the WSClient++ application. That will open a windows explorer window listing the WSClient.jar library.
  14. Copy the WSClient.jar library from this location.
  15. Open Eclipse, select the project, right-click, and paste the library into the project.
  16. Refresh the project.

    Now the library needs to be added to the Java Build Path for the project.

  17. Select and right-click the project.
  18. Select the “Properties” menu option.
  19. Select the “Java Build Path” option in the left menu.
  20. Select the “Libraries” tab.
  21. Click the “Add JARs” button.
  22. In the JAR selection window that appears, expand the project and select the WSClient.jar library that was copied and pasted earlier in steps 14 and 15.
  23. Click “OK” to close the JAR Selection window, and then click “OK” to close the “Properties” window.
  24. When the eclipse window appears, all the errors in the project should appear resolved.

    The WSClient++ settings for this particular project can be saved for use later as well.

  25. Open the WSClient++ window and click “Save Settings”.
  26. Provide the appropriate path information, provide a name for the settings, and click “Save”.