|
|
Documentation Wiki > Developer Documentation > Web Service Guide > Getting Started: Developers and the ExactTarget API > Connecting to the Web Service API Using WSE 3.0 and .NET 2.0
Connecting to the Web Service API Using WSE 3.0 and .NET 2.0From $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 the WSE 3.0 standards. This information contains instructions for connecting using Visual Studio 2005 and Visual Studio 2005 Express. For Visual Studio 2008, use the instructions for connecting via WCF. Why Connect to the Web Service API using WSE 3.0/.NET 2.0You 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 WSE 3.0/.NET 2.0You must configure your development environment correctly in order to establish a connection with the web service API servers. ExactTarget Web Services use WSS 1.0 message level security to secure communications with the ExactTarget servers. This means that messages sent to the web service API servers must be encrypted at the message level. Visual Studio 2005Follow these steps to connect your Visual Studio 2005 instance to the web service API:
If you wish to enable this feature on an existing project, right-click that project and select WSE 3.0 Settings to get to a screen where you can enable WSE for the project. If you enable WSE after you've added a web reference to the ExactTarget API, you will need to update the web reference. Visual Studio 2005 ExpressUsers of Visual Studio Express editions cannot take advantage of the Visual Studio.NET/WSE integration. However, you can use the following steps to set up WSE with Visual Studio Express editions.
CodeThe sample code below demonstrates how to connect and interact with the web service API. PartnerAPIWse partnerAPI = new PartnerAPIWse(); UsernameTokenProvider utp = new UsernameTokenProvider(username, password); partnerAPI.SetClientCredential<UsernameToken>(utp.GetToken()); Policy policy = new Policy(new UsernameOverTransportAssertion()); partnerAPI.SetPolicy(policy); This page was last updated by Ryan Williams on Fri, 06 Jan 2012 21:28:24 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 |