Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • a.  Under Java Applications -> main tab
    • i.  Set main class to: org.apache.axis.wsdl.WSDL2Java
    • ii.  Set Project to whatever project you created
    • iii.  Set name to whatever name you want.
  • b.  Under Java Applications -> arguments tab
  • c.  Under Java Applications -> classpath tab
    • i.  Add in latest jars for:
      • activation.jar
      • axis.jar
      • commons-discovery.jar
      • commons-logging.jar
      • commons-net.jar
      • jaxrpc.jar
      • jaxrpc-api.jar
      • mail.jar
      • saaj.jar
      • wsdl4j.jar
        • (also add these jars to the buildpath, these jars are available in the misint -> holidayWebService repository in the HolidayServiceClient Project)

* NOTE: When creating a client for the test server it is required that you add the test site's certificate to the keystore as described here, and then run the project with VM arguments (In Eclipse the VM arguments are in the Arguments tab of your project's run configuration):
                            -Djavax.net.ssl.trustStore=/path/to/keystore
                            -Djavax.net.ssl.trustStorePassword=changeit (default password is changeit)

3.  Ensure the web service is running, and then run the project. This should generate the necessary files for creating a client.

PKIX path building error:
IF there is a PKIX path building failed: SunCertPathBuilderException then most likely the web services security certificate has not been added to Java's cacerts file (file of trusted websites).
The workaround is described in the below website.http://magicmonster.com/kb/prg/java/ssl/pkix_path_building_failed.htmlThis error seems to come about because of an invalid SSL certificate, if the hostname has a valid certificate signed by a CA then this shouldn't be an issueThis is required as our test servers are using a self-signed certificate which is not viewed as a valid certificate by Java.
Adding the certificate can be done as described here.

4.  Create a main method

...