fmewebservices.FMENamedConnectionManager.getConnectionFromFormatSettings

FMENamedConnectionManager.getConnectionFromFormatSettings(webServiceName, readerSettings)

Returns a named connection object based on the input reader settings.

If the input readerParameters contain a connection name (found by looking for *_CONNECTION keyword), that is returned.

If the specified connection is not found, then NULL is returned.

If the input readerParameters does NOT contain a connection name, then a temporary (in memory) connection is created based on the input web service and the input parameters.

If the input web service is not found, NULL is returned.

Parameters
  • webServiceName (str) – The web service name.

  • readerSettings (list[str]) – Reader settings for this format.

Return type

Terminal subclass of FMENamedConnection or None

Raises

FMEWSException – An exception is raised if an error occurred.