HPOS 4.0 technical note 3

HP Web Services for Output Server 3
Using HP Web Services for Output Server
HP Web Services for Output Server configuration
/* Get HPOSWeb Service Proxy */
HPOSGateway port = new HPOSGatewayService(endpoint, qname).getHPOSGate-
wayPort();
BindingProvider bp=(BindingProvider)port;
SOAPBinding binding = (SOAPBinding)bp.getBinding();
Map map= bp.getRequestContext();
/* Pass the User Credentials like this (sets in HTTP Headers)*/
map.put(BindingProvider.USERNAME_PROPERTY,<user>);
map.put(BindingProvider.PASSWORD_PROPERTY,<password>);
HP recommends that you consult your network administrator or security administrator to ensure the HP Web Services
for Output Server installation complies with internal security protocols. Settings on IIS and Apache servers may need
to be revised.
HP Web Services for Output Server configuration
The wsg.properties file, which contains HP Web Services for Output Server tunable parameters such as
authentication, is available in the $DAZEL_HOME/share/jboss/server/default/conf directory. By
default, authentication is set to false. You can change authentication to true to authenticate users with a login and
password at the Web Services for Output Server level. You must restart JBoss server after making changes to the
wsg.properties file.
HP Web Services for Output Server helps you create JAAS login modules and plug them into the system. The
wsg.properties file can be used to configure modules such as LDAP. The login modules are part of
login-config.xml file, which is located at $DAZEL_HOME/share/jboss/server/default/conf.
Example
LOGIN_MODULE_NAME=WSGRealm
NOTE: For more details on the login module configuration, see “SSL” on page 45.
If you make changes to the login-config.xml file, you must restart the JBoss server.
Viewing log file details
Details of all the operations performed through HP Web Services for Output Server are logged in the hpomws.log
file in the
/$DAZEL_HOME/var/log directory.
The JBoss installer uses param name=MaxBackupIndex parameter with a default value of 5. If the maximum
number of files exceeds the default value, the oldest file gets removed.
You can set the MaxBackupIndex parameter to 20 and the default file size to 10 MB.