This section is the documentation for the Gentics .Node PortalConnector WebService configuration. The Gentics .Node PortalConnector WebService provides access to datasources defined in Gentics Portal.Node using web services.
The web services configuration file for
Gentics .Node PortalConnector WebService
can be found at
${com.gentics.portalnode.confpath}/webservices/configuration.properties
and is in the Java properties format. When this file does not exist at the startup
of
Gentics .Node PortalConnector WebService
, a new one is created with the default settings (no access allowed).
With the general properties, the authentication type and default access can be configured.
Configuration of the access properties for web services. Web services are accessed
using URLs. Each URL is constructed as
ws-path/servicename[/additional-pathinfo]
(additional-pathinfo is optional). For
Gentics .Node PortalConnector WebService
, the servicename is
datasource
and the additional-pathinfo is the datasource id.
Overwrite the general value for
defaultAccess
to set the protection for access to the listing of all existing web services.
Set the required userrole to access the listing of all existing web services.
Overwrite the general value for
defaultAccess
to set the protection for general access to the datasource web service.
Set the required userrole for general access to the datasource web service. This
protects access to the
*.wsdl
file defining the datasource. Access to specific datasources can be configured
differently.
Overwrite the general value for
defaultAccess
. If set to
true
, the datasource is protected and only users with appropriate roles may access the
datasource. If set to
false
, the datasource is not protected and everybody may access it.
The users are configured in the file ${com.gentics.portalnode.confpath}/users.properties
.
The following example defines the user
adminuser
with password
password
and roles
admin
and
manager
. The user will have access to all three configured datasources, since two have appropriate roles and the third is unprotected.
Example 3.21. Example for ${com.gentics.portalnode.confpath}/users.properties
# user configuration user.adminuser.password=password user.adminuser.rule=admin,manager
Example 3.22. Example for ${com.gentics.portalnode.confpath}/webservices/configuration.properties
# per default everything is protected defaultProtected=true # webservice configuration # everybody may list the existing webservices webservice.protected=false # access to the .wsdl for the datasource webservice only for admins webservice.datasource.role=admin # set the protection for specific datasources webservice.datasource.protecteddatasource.role=admin webservice.datasource.unprotecteddatasource.protected=false webservice.datasource.managerdatasource.role=manager,user