One can create an account programmatically that will be used by Apache Axis. Here is an example that shows an account creation and setting the values of various account attributes:
AccountsManager manager = AccountsManagerFactory.getAccountsManager();
Account account = manager.newAccount(AccountsManager.DEFAULT_ACCOUNT);
account.setName("Echo Service Account");
//This can be set programmatically or
//If not set, the Accounts framework will prompt at runtime
When the LTPA Token authentication is expected by the server, the authentication type needs be set to J2EE-FORM
in the account and the authentication server needs to be set as well as shown below.
When authentication type is set to USERNAME_TOKEN
, it is required that the account is tied to a primary account that has authentication type of HTTP or J2EE-FORM.
//setting the primary account for a account
is the primary account and account2
is the secondary account for USERNAME_TOKEN
For more detailed API information, please refer to the Accounts API. Above gives you enough to create an account that will work with Axis.
Attachments are not supported in SOAP messages.
The Lotus® Expeditor Apache Axis runtime does not support Nonce
(randomly generated token) with Username Token authentication. The <wsse:Nonce>
elements are not generated within the <wsee:usernameToken="">
Parent topic: Creating Axis Web Services Clients: XPD622