<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions name="ListingServiceSoap" targetNamespace="http://api.tradera.com" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsap="http://schemas.xmlsoap.org/ws/2004/08/addressing/policy" xmlns:wsa10="http://www.w3.org/2005/08/addressing" xmlns:wsaw="http://www.w3.org/2006/05/addressing/wsdl" xmlns:wsam="http://www.w3.org/2007/05/addressing/metadata" xmlns:wsx="http://schemas.xmlsoap.org/ws/2004/09/mex" xmlns:msc="http://schemas.microsoft.com/ws/2005/12/wsdl/contract" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://api.tradera.com">
  <wsdl:types>
    <xs:schema elementFormDefault="qualified" targetNamespace="http://api.tradera.com" xmlns:xs="http://www.w3.org/2001/XMLSchema">
      <xs:element name="GetItemRestarts">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="1" maxOccurs="1" name="itemId" type="xs:int" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="AuthenticationHeader" type="tns:AuthenticationHeader" />
      <xs:complexType name="AuthenticationHeader">
        <xs:sequence>
          <xs:element minOccurs="1" maxOccurs="1" name="AppId" type="xs:int" />
          <xs:element minOccurs="0" maxOccurs="1" name="AppKey" type="xs:string" />
        </xs:sequence>
      </xs:complexType>
      <xs:element name="ConfigurationHeader" type="tns:ConfigurationHeader" />
      <xs:complexType name="ConfigurationHeader">
        <xs:sequence>
          <xs:element minOccurs="1" maxOccurs="1" name="Sandbox" type="xs:int" />
          <xs:element minOccurs="1" maxOccurs="1" name="MaxResultAge" type="xs:int" />
        </xs:sequence>
      </xs:complexType>
      <xs:element name="GetItemRestartsResponse">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" maxOccurs="1" name="GetItemRestartsResult" type="tns:ItemRestarts" />
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:complexType name="ItemRestarts">
        <xs:sequence>
          <xs:element minOccurs="1" maxOccurs="1" name="LastRestartedItemId" type="xs:int" />
          <xs:element minOccurs="1" maxOccurs="1" name="AncestorItemId" type="xs:int" />
          <xs:element minOccurs="0" maxOccurs="1" name="RestartedItems" type="tns:ArrayOfRestartedItem" />
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="ArrayOfRestartedItem">
        <xs:sequence>
          <xs:element minOccurs="0" maxOccurs="unbounded" name="RestartedItem" nillable="true" type="tns:RestartedItem" />
        </xs:sequence>
      </xs:complexType>
      <xs:complexType name="RestartedItem">
        <xs:sequence>
          <xs:element minOccurs="1" maxOccurs="1" name="RestartedItemId" type="xs:int" />
          <xs:element minOccurs="1" maxOccurs="1" name="RestartedAsItemId" type="xs:int" />
          <xs:element minOccurs="1" maxOccurs="1" name="RestartedDate" type="xs:dateTime" />
        </xs:sequence>
      </xs:complexType>
    </xs:schema>
  </wsdl:types>
  <wsdl:message name="GetItemRestartsSoapRequest">
    <wsdl:part name="parameters" element="tns:GetItemRestarts" />
  </wsdl:message>
  <wsdl:message name="GetItemRestartsSoapRequest_Headers">
    <wsdl:part name="AuthenticationHeader" element="tns:AuthenticationHeader" />
    <wsdl:part name="ConfigurationHeader" element="tns:ConfigurationHeader" />
  </wsdl:message>
  <wsdl:message name="GetItemRestartsSoapResponse">
    <wsdl:part name="parameters" element="tns:GetItemRestartsResponse" />
  </wsdl:message>
  <wsdl:portType name="ListingServiceSoap">
    <wsdl:operation name="GetItemRestarts">
      <wsdl:documentation>Returns Restart information for the specified item.</wsdl:documentation>
      <wsdl:input wsaw:Action="http://api.tradera.com/GetItemRestarts" name="GetItemRestartsSoapRequest" message="tns:GetItemRestartsSoapRequest" />
      <wsdl:output wsaw:Action="http://api.tradera.com/GetItemRestartsResponse" name="GetItemRestartsSoapResponse" message="tns:GetItemRestartsSoapResponse" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="ListingServiceSoap" type="tns:ListingServiceSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetItemRestarts">
      <soap:operation soapAction="http://api.tradera.com/GetItemRestarts" style="document" />
      <wsdl:input name="GetItemRestartsSoapRequest">
        <soap:header message="tns:GetItemRestartsSoapRequest_Headers" part="AuthenticationHeader" use="literal" />
        <soap:header message="tns:GetItemRestartsSoapRequest_Headers" part="ConfigurationHeader" use="literal" />
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output name="GetItemRestartsSoapResponse">
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="ListingServiceSoap12" type="tns:ListingServiceSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetItemRestarts">
      <soap12:operation soapAction="http://api.tradera.com/GetItemRestarts" style="document" />
      <wsdl:input name="GetItemRestartsSoapRequest">
        <soap12:header message="tns:GetItemRestartsSoapRequest_Headers" part="AuthenticationHeader" use="literal" />
        <soap12:header message="tns:GetItemRestartsSoapRequest_Headers" part="ConfigurationHeader" use="literal" />
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output name="GetItemRestartsSoapResponse">
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="ListingServiceSoap">
    <wsdl:port name="ListingServiceSoap" binding="tns:ListingServiceSoap">
      <soap:address location="https://api.tradera.com/v3/ListingService.asmx" />
    </wsdl:port>
    <wsdl:port name="ListingServiceSoap12" binding="tns:ListingServiceSoap12">
      <soap12:address location="https://api.tradera.com/v3/ListingService.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>