# vSphere WebServices SMS SDK JAX-WS Samples Readme

- Building and running samples
  - Linux first-time build notes
  - Using bundled sms.jar
- Samples usage

### Building and running samples

The samples contained here are compiled and built to work with JAX-WS bundled with the JDK 1.8.

The environment variable JAVAHOME must be set to the base directory of a JDK

#### Linux - build.sh, run.sh and clean.sh for Line Endings and Execute permission:

build.sh, run.sh and clean.sh have DOS-style line endings and this does not work when running these scripts on Linux.

Please run dos2unix on these before attempting to use them.

Please set Execute permission on these ".sh" files using "chmod u+awx *.sh"

#### Using the sms.jar if you use the sms.jar bundled here

JAX-WS introduces a dependency on the WSDL used to generate the stubs, and requires the WSDL be present. If -wsdlLocation is specified, then WSDL must be present in the exact location specified by -wsdlLocation when the stubs were generated.

Note: WSDL implies WSDL files and associated XSD files.

For the purpose of the SDK, the -wsdlLocation is smsService.wsdl, and, the WSDL is copied into the sms.jar so it is always available.

This can be seen in the build.bat and build.sh files that are used to build the samples.

### Samples usage

Usage information for all samples is present in javadoc for the main sample class here:

JAX-WS Samples Javadoc