Authentication object contains a SOAP user name and password, which are provided to you by Vindicia Client Services, and which vary between the production and test environments.
If you generate API calls directly through the Subscribe WSDL files without using any client libraries, you must include the Authentication object in your calls to Vindicia. By using a Vindicia client library, however, you need not do so. The client library enables you to globally configure the authentication parameters (the SOAP user name and password), automatically construct the Authentication object, and pass it in with your calls. Some libraries, such as Java and PHP, also enable you to specify authentication parameters during the process of constructing a target object on which to make calls.
The following subsections describe how authentication parameters operate in the client libraries. The concepts are illustrated through the construction of the commonly used Transaction object.
In Perl
Create a Transaction in a Perl program: Set your Vindicia user name and password variables:MyVindiciaLogin and MyVindiciaPassword are the SOAP user name and password, respectively, assigned to you by Vindicia.
In PHP
In the PHP library, edit the Const.php file in the Vindicia/Soap directory to change the values of the global constants that contain the Vindicia SOAP login and password. Change the values of the following constants:Transaction, as follows:
$txn = new Transaction();
In Java
Create a Transaction in Java:MyVindiciaLogin and MyVindiciaPassword are the SOAP user name and password, respectively, assigned to you by Vindicia.
You may also globally set the SOAP user name and password for making Subscribe API calls in the Java library. Define the constants in the com.vindicia.client.ClientConstants class as follows:
In VB
In VB, you must create an object and allocate space for it before sending the authentication information.-
To create a new
Transactionobject, type: -
After creating the
Transaction, initialize your authentication data and call theSetAuthenticationInfomethod for theTransactionobject. Type:whereMyVindiciaLoginandMyVindiciaPasswordare the SOAP user name and password, respectively, assigned to you by Vindicia.
In C#
In C#, the Vindicia namespace includes an object calledEnvironment, which enables you to set the SOAP endpoint server and authentication. For example:
MyVindiciaLogin and MyVindiciaPassword are the SOAP user name and SOAP password, respectively, assigned to you by Vindicia.
Parent topic:Support for Development
