Versions Compared

Key

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

...

 It is also possible to use a different file than the default WebServices.xml. Additional files can be added to the PiServiceConfigFiles folder. To use another config file in the Delft-FEWS Web Services, a configuration file an environment variable needs to be specified with the file to use. See also: 

Code Block
FEWS_WS_WEB_SERVICES_CONFIG_FILE_NAME=MyCustomWebServices.xml

Web Operator Client

In a WebServices.xml file a specific webOperatorClient configuration file can be specified. For example:

Code Block
<?xml version="1.0" encoding="utf-8"?>
<webServices xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
			 xsi:schemaLocation="http://www.wldelft.nl/fews https://fewsdocs.deltares.nl/schemas/version1.0/webServices.xsd">
	<general>
        <filters>
            <filterId>webservice</filterId>
        </filters>
        <readonlyMode>false</readonlyMode>
		<testPageEnabled>true</testPageEnabled>
	</general>
	<webOperatorClientConfiguration>
		<configFile>WebOperatorClient</configFile>
	</webOperatorClientConfiguration>
</webServices>