Have a look at the examples below for inspiration on how to use the TDC connections.

 Aspect, Rim, Ratio Search

This is a basic implementation of a tire search by Rim, Size and Aspect Ratio page.

 Tire Size Search

This is a basic implementation of a tire search by size page.

 Search by Product Code

This is a basic implementation of a tire search by product code page.


Code Snippets

The following code snippets should help you get started with using the web services. Feel free to copy and amend as required.


// Get width, aspect and rim info from form data
$width = $_POST["width"];
$aspect = $_POST["aspect"];
$rim = $_POST["rim"];

// Replace youraccesskey, yourgrouptoken and yourconnectionID by your credentials given to you when you signed up for tiredataconnect
$input_xml = '<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="" xmlns:xsd="" xmlns:soap="">
    <GetTires xmlns="">

//set headers
$headers = array("Content-type: text/xml;charset\"=utf-8\"",
           "Accept: text/xml",
           "Cache-Control: no-cache",
           "Pragma: no-cache",
           "Content-length: ".strlen($input_xml)

$url = '';

    //use curl for soap request
    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_POST, true);
    curl_setopt($ch, CURLOPT_POSTFIELDS, $input_xml);
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    curl_setopt($ch, CURLOPT_TIMEOUT, 10);
    curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
    $data = curl_exec($ch);


    $response1 = str_replace("<soap:Body>","",$data);
    $response2 = str_replace("</soap:Body>","",$response1);

    $parser = simplexml_load_string($response2);

    //loop through result
    if ( !empty( $parser->GetTiresResponse->GetTiresResult->Tires->Tire ) ) {
        foreach($parser->GetTiresResponse->GetTiresResult->Tires->Tire as $items)
            echo "<img src=".(string) $items->PatternID . ".jpg><br>";
            echo (string) $items->ProductCode . "<br>";
            echo (string) $items->Name . "<br>";
            echo (string) $items->BuyPrice . "<br>";
            echo (string) $items->SellPrice . "<br>";
            echo (string) $items->Quantity . "<br>";
            echo (string) $items->Make . "<br>";
            echo (string) $items->Pattern . "<br>";
            echo "<img src= " .(string) $items->TireMake->ImageURL . "><br>";		
        echo "<h5>No Tires of this size in Dataset</h5>";

catch(Exception $e){
    echo "Error!";
    echo $e -> getMessage();


from suds.client import Client
client = Client('', retxml=True)
request_data = client.factory.create('tns:GetTiresOptions')

# put your own credentials here
request_data.AccessKey ="youraccesskey"
request_data.GroupToken = "yourgrouptoken"
request_data.ConnectionID ="yourconnectionid"

result = client.service.GetTires(request_data)

from bs4 import BeautifulSoup

soup = BeautifulSoup(result, 'xml')

tires = []

for tire in soup.find_all('Tire'):
    t = {
        'ProductCode': tire.ProductCode.string,
        'Name': tire.Name.string,
        'BuyPrice': tire.BuyPrice.string,
        'Quantity': tire.Quantity.string,
        'Make': tire.Make.string,
        'Pattern': tire.Pattern.string,
        'Image': "<img src =" + tire.PatternID.string + ".jpg>",
        'MakeImage': '<img src= ' + tire.TireMake.ImageURL.string + '>'


require 'savon'

# Create a client to talk to our webservices
client = Savon.client(wsdl: '',
                      endpoint: '')


# make a request using your credentials
response =, 
                       :message => { 'options' => { 'AccessKey'=> 'youraccesskey' , 'GroupToken' => 'yourgrouptoken', 'ConnectionID' => 'yourconnectionid' , 'TireSize' => 'tiresize'}})

print response.to_xml       

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
//Add service reference from wsdl file
using ConsoleApp1.ServiceReference1;

namespace ConsoleApp1
    class Example
        static void Main(string[] args)
            ServiceReference1.ConnectionsCenterProductsServiceSoapClient client = new ConnectionsCenterProductsServiceSoapClient();
            GetTiresOptions options = new GetTiresOptions();

            //enter your credentials
            options.AccessKey = "youraccesskey";
            options.GroupToken = "yourgrouptoken";
            options.ConnectionID = yourconnectionid;

            options.TireSize = "2056515";
            var response = client.GetTires(options);
Check out the Tirewire docs for more in-depth help on how to use the webservices.