PHP
The Subscribe client library for PHP contains a ZIP file with several PHP files in the directoryVindicia/Soap. Two of those files, Vindicia.php and Const.php, are included in your source code.
The PHP client libraries have been reworked so that the various Vindicia object classes are now in a separate namespace. For example, what was previously called AutoBill is now called Vindicia\Soap\AutoBill.
The old-style PHP client libraries, which do not use the namespaces, are still available for SOAP versions through 20.0.0 at: https://secure.vindicia.com/docs/client_library/
The new PHP client libraries, with the namespaces, are available from the same page—below the other PHP libraries, in a separate section. They are available only for SOAP versions 19.0.0 and 20.0.0. If you are interested in having libraries that use the Vindicia\Soap namespace made for other SOAP versions, contact Vindicia Client Technical Support.
For any SOAP versions beyond release 20.0.0, we will only issue PHP libraries that use the Vindicia\Soap namespace.
Install the PHP client library:
- Extract the zip archive, and install it into the proper location for operating system and PHP engine and distribution.
-
Type:
Note: You must add these
require_oncestatements to every PHP source file which references the Subscribe API in any way. - Double check that you have downloaded the correct version for your site, and that the extraction of the archive was completed successfully.
Perl
Install the Perl client library on Mac OS X:-
Install the modules required by the Perl API client. Type:
-
Install the API client.
Obtain a current copy and place it in a directory.
Navigate to that directory in a terminal, and type:
The Perl client is now installed on your Mac. The default location is
/Library/Perl/perl-version, withVindicia.pmand all the other modules in the Vindicia directory. -
During development, import the Perl module into your source files. Type:
Configuring the Perl API Client
The installation process above creates the file/etc/vindicia_conf.xml, a configuration file in XML format. Note that the path name assumes a Mac setup. Path names on Windows vary according to the configuration.
- Edit the following fields in
vindicia_conf.xmlVIN_SOAP_Server: The server’s host name. For example, the name of the Staging development server issoap.staging.us-west.vindicia.com.VIN_SOAP_Version: The version of Subscribe you will call, for example,4.2.VIN_Server: This value must be0, which means that this is a Vindicia Perl client, not a server.VIN_Client_Timeout_Usec: The client timeout in milliseconds. For example, for 250 seconds, set the value to250000.
- Create a temporary directory on your computer for the client, and then specify the directory’s full path as the value for the following fields:
Specifying the First Parameter in Perl
Certain methods in Perl take a first parameter that is not specified in other languages, because the first parameter is the invoking object, such as in thefetchCreditHistorymethod. For example:
In PHP (and similarly in Java and C#):
AutoBill object, but in other languages it is provided using the invoking parameter. This is true with any method where the first parameter is an object of the class in question.
Java
The Subscribe client library for Java is in the Java archive filevindicia.jar, which bundles the Subscribe API and the underlying Apache Axis library for sending and receiving SOAP calls. The release contains two files: vindicia_java_client_version.zip and vindicia_java_client_version.docs.zip.
To set up the Java client library, unzip vindicia_java_client_version.zip and add vindicia.jar to your project’s classpath. Then, import the Vindicia classes to your source file. For example, for Subscribe 4.2:
com.vindicia.client package is usually a child of a class with an identical class name in the com.vindicia.soap.Vindicia package. Vindicia recommends that you import classes with fully qualified package names, and identify the types similarly in your Java code.
.NET With C#
The Subscribe client library for .NET is in the DLL fileVindicia.dll, which bundles the Subscribe API and the underlying SOAP stubs.
To set up the .NET client library, add a reference to the Vindicia.dll file in your project. Then, import the Vindicia namespace to your source file:

