|
|
Documentation Wiki > Developer Documentation > Web Service Guide > Getting Started: Developers and the ExactTarget API > Connecting to the API using Java and Axis2
Connecting to the API using Java and Axis2From $1(Click the banner to go to the related Docs.Code.ExactTarget.com page.)
This document contains conceptual and procedural information on connecting your development environment or other systems to the ExactTarget web service API using Java via the Axis2 SOAP client. Axis2 is a SOAP client preferred by many Java users. PrerequisitesIn order to use the configuration in this document, you must use the following tools:
Why Connect to the Web Service API using Java and Axis2You can use the connection to the web service API to test your calls and perform various tasks, such as sending email and retrieving tracking information. How To Connect to the Web Service API using Java and Axis2Download Apache Axis2 at http://ws.apache.org/axis2 and 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 web service API servers. Keep these steps in mind when connecting to the API via Axis2:
Review the Axis2 .ZIP file attached at the bottom of this page for a sample configuration. In that .ZIP file, the ETClient.java file sample file has both a Retrieve and a Create method. Use the PropertiesUtil.java file to read properties from the props.xml file located in class-path. Use the PWCBHandler.java file to define the password handler class; this file is required by Axis2 engine to handle authentication. Conduct the build using the Ant file and it will generate the ETClient.jar file. The command Java -jar ETClient.jar executes the ETClient.java file. Additional DataUse the information below to round out your knowledge of using Java with the web service API. Passing credentials using WS-Security headersExamples for C# and Java http://www.adobe.com/devnet/livecycle/articles/passing_credentials.html Troubleshooting
Eclipse Development EnvironmentYou can use the linked Eclipse development environment to aid your connection to and efforts working with the ExactTarget SOAP API. This environment includes all the necessary information to use Axis2 Java with the SOAP API. Find more information about the Eclipse development environment here. NOTE: This link does not imply any preference or endorsement of the Eclipse development environment. This information is presented only as an example and aid for your development efforts. This page was last updated by Ryan Williams on Tue, 17 Jan 2012 16:59:21 GMT. If you require assistance with the ExactTarget application, please contact Global Support. If you wish to send Ryan direct feedback, fill out the form below:
Tags: (Edit tags)
|
|
Powered by MindTouch 2010 |