Connecting to the SOAP API Using Java and CXF

This page contains information on connecting your development environment or other systems to the Marketing Cloud SOAP API using Java via the CXF SOAP client. CXF is a SOAP client used by many Java users.

In order to use the configuration in this document, you must download and implement the CXF development environment.

Download CXF

You can use the connection to the SOAP API to test your calls and perform various tasks, such as sending email and retrieving tracking information.

Download CXFand follow the appropriate instructions at that site to install the service on your computer. You can use the sample code below to authenticate your installation and exchange information with the SOAP API servers. The code example below does not include all of the libraries and classes your environment may require to authenticate. Be sure to include all applicable libraries and classes in your code to ensure proper functionality.

Sample Authentication Code