Connecting to the Web Service

PRIME Web API Documentation

ProMiles® PRIME Web Services are accessible to any platform that interact with SOAP Web Services. Every platform as different methods to connect to Web Services within their respective tools. Below are general guidelines and examples showing how to connect to the Web Services using the .NET platform.

Find the Appropriate WSDL

ProMiles® PRIME Web Services has three levels of service, Basic, Standard, and Enterprise. You should connect to the WSDL that corresponds to your service level. Your service level should have been indicated to you when you signed on. A reference to the proper WSDL can also be found on the Home page. The references to all three WSDLs are listed below:

Creating a Reference to the Web Service in .NET

To connect to the ProMiles® PRIME Web Services using the .NET platform:

Step 1

Open Visual Studio (Professional or Express Editions) and create a new project.

Step 2

Right click on the App_WebReferences folder and click Add Web Reference from the pop-up menu.

Step 3

In the Add Web Reference dialog box, type or copy and paste the url of the WSDL in to the URL box and click the Go button. The screen will refresh and list the methods appropriate to your service level and fill in the Web Reference Name field. Click the Add Reference button to complete the operation and add the Web Reference to your project.

Make Sure You Have Your Credentials

While you can create a reference to the Web Service without having an account, you will not be able to run any of the functions without having authentication credentials supplied by ProMiles®. These credentials should have been provided to you when you signed up for the service and consist of a Username, Password, and Company Code.

Every call to the system involves sending in a Credentials object where you will input these three authentication parameters.