web-WebService

WebService encapsulates access to the HTTP server as well as the servlet infrastructure used to expose custom applications over HTTP. The WebService is available in the web palette. It is also one of the default services in a station created by using the New Station tool. Only one WebService is supported in a station.

NoteIn AX-3.8, several WebService properties in a new station (via New Station tool in Workbench) have different defaults than in previous NiagaraAX releases. See New station WebService defaults in AX-3.8. In addition, any AX-3.8 station that provides “Web Workbench” to browser clients requires those browser client PCs to have Java configured with “Unlimited Strength Policy Files”. For details refer to “Additional AX-3.8 client-side Java installation” in the NiagaraAX 2013 Security Updates document.

Properties of the WebService determine the port usage and authentication methods of the station’s web server, among other things. Properties include:

New station WebService defaults in AX-3.8

By default in AX-3.8, any new station created in Workbench using the New Station tool (wizard) is created for SSL access only, including both its WebService and FoxService (the latter a container under its NiagaraNetwork component).

A “Use secure connections (recommended)” checkbox in the New Station wizard enables this. If left checked, the station’s WebService has these properties set as follows:

  • Http Enabled: false

  • Https Port: 443 (or whatever Https Port was specified in the New Station wizard).

  • Https Enabled: true

  • Https Only: true

Sometimes when using the AX-3.8 New Station wizard you may wish to uncheck secure connections, which makes a WebService (and FoxService) with different values for the properties above. You might do this when making a station to be installed in a “J9 JVM” JACE (JACE-2/4/5 series), which cannot use Foxs (Fox SSL), but could use SSL for the WebService, if you also configured it with the station-based CryptoService.

In any case, after creating a new station, you can always re-edit its WebService (and FoxService) properties offline if needed—before installing it in the target host platform. For related details New Station wizard.