Generating client proxies

Proxies can be generated using a tool of your choice.

Here is an example on how to do it using the wsimport tool that is included with the Oracle JDK 8.

Procedure

  1. Create an authentication file containing the URL of each web service, including a valid user name and password of a user that is a member of the API User group.

    Examples of authentication files:

    • http://user:password@tss.example.com:8080/spotfire/ws/pub/LibraryService?wsdl
    • http://user:password@tss.example.com:8080/spotfire/ws/pub/SecurityService?wsdl
    • http://user:password@tss.example.com:8080/spotfire/ws/pub/UserDirectoryService?wsdl
  2. Generate the proxies by running wsimport for each web service (specifying the authentication file created in the previous step).

    Examples on how to generate the proxies, using the authentication files above:

    • wsimport ‐d bin ‐s src ‐Xauthfile auth.txt http://tss.example.com:8080/spotfire/ws/pub/LibraryService?wsdl
    • wsimport ‐d bin ‐s src ‐Xauthfile auth.txt http://tss.example.com:8080/spotfire/ws/pub/SecurityService?wsdl
    • wsimport ‐d bin ‐s src ‐Xauthfile auth.txt http://tss.example.com:8080/spotfire/ws/pub/UserDirectoryService?wsdl