Setting up your environment (Java)

Here is what you need and where you can get it:

If you install JWSDP 2.0, you don't need any web container, so just choose "No container". A "typical" installation is OK.

When the JDK and JWSDP is installed and Ant is unpacked, make sure your path is set to include JDK's and Ant's "bin" directory and JWSDP's "jwsdp-shared/bin" directory. Also the "JAVA_HOME" environment variable should point to the JDK directory.

Now create a project directory anywhere you want, let's call it "jplagTutorial", and unpack the tutorial archive into it. Note: The archive includes files and sources to compile the sample applications, but it can also be used as a basic framework for your own client. Inside the "jplagTutorial" directory create a folder called "clientLibs", where you have to put the following libraries from the JWSDP 2.0 directory and the SAAJ package (just the JAR files, not the directory structure):

  • fastinfoset/lib:
  • jaxrpc/lib:
    • jaxrpc-api.jar
    • jaxrpc-imp.jar
    • jaxrpc-spi.jar
  • jwsdp-shared/lib:
    • activation.jar
    • mail.jar
  • sjsxp/lib:
    • jsr173_api.jar
    • sjsxp.jar
  • <SAAJ package>/saaj/lib:
    • saaj-api.jar
    • saaj-impl.jar

Note: If you want to share your client online, you will have to provide these libraries in order to make your client work on other systems.

Now copy or rename the "" to "" and set the value of the "clientlibs" property to the path of your "clientLibs" folder.

If you are going to use a versioning system, you should use a copy which you don't include into your repository to allow better multi user handling.

Next: Generating the Client Stub

Last modified 5 years ago Last modified on Dec 7, 2012 10:29:50 AM