<?xml version="1.0" encoding="utf-8"?>
<wsdl:definitions xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:tns="http://worldstreamtv.com/apps/api" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tm="http://microsoft.com/wsdl/mime/textMatching/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" targetNamespace="http://worldstreamtv.com/apps/api" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
  <wsdl:types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://worldstreamtv.com/apps/api">
      <s:element name="GetSessionID">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="login" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="pass" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="apikey" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetSessionIDResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetSessionIDResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="UserAuth">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="login" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="pass" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="apikey" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="UserAuthResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="UserAuthResult" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetTVRProgramsByChannel">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="channel" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="pday" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetTVRProgramsByChannelResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetTVRProgramsByChannelResult">
              <s:complexType>
                <s:sequence>
                  <s:element ref="s:schema" />
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetNowOnTV">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="channel" type="s:string" />
            <s:element minOccurs="1" maxOccurs="1" name="type" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetNowOnTVResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetNowOnTVResult">
              <s:complexType>
                <s:sequence>
                  <s:element ref="s:schema" />
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="AddUserError">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="username" type="s:string" />
            <s:element minOccurs="0" maxOccurs="1" name="errormessage" type="s:string" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="AddUserErrorResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="AddUserErrorResult" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetProgramDetailById">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="1" maxOccurs="1" name="programid" type="s:int" />
          </s:sequence>
        </s:complexType>
      </s:element>
      <s:element name="GetProgramDetailByIdResponse">
        <s:complexType>
          <s:sequence>
            <s:element minOccurs="0" maxOccurs="1" name="GetProgramDetailByIdResult">
              <s:complexType>
                <s:sequence>
                  <s:element ref="s:schema" />
                  <s:any />
                </s:sequence>
              </s:complexType>
            </s:element>
          </s:sequence>
        </s:complexType>
      </s:element>
    </s:schema>
  </wsdl:types>
  <wsdl:message name="GetSessionIDSoapIn">
    <wsdl:part name="parameters" element="tns:GetSessionID" />
  </wsdl:message>
  <wsdl:message name="GetSessionIDSoapOut">
    <wsdl:part name="parameters" element="tns:GetSessionIDResponse" />
  </wsdl:message>
  <wsdl:message name="UserAuthSoapIn">
    <wsdl:part name="parameters" element="tns:UserAuth" />
  </wsdl:message>
  <wsdl:message name="UserAuthSoapOut">
    <wsdl:part name="parameters" element="tns:UserAuthResponse" />
  </wsdl:message>
  <wsdl:message name="GetTVRProgramsByChannelSoapIn">
    <wsdl:part name="parameters" element="tns:GetTVRProgramsByChannel" />
  </wsdl:message>
  <wsdl:message name="GetTVRProgramsByChannelSoapOut">
    <wsdl:part name="parameters" element="tns:GetTVRProgramsByChannelResponse" />
  </wsdl:message>
  <wsdl:message name="GetNowOnTVSoapIn">
    <wsdl:part name="parameters" element="tns:GetNowOnTV" />
  </wsdl:message>
  <wsdl:message name="GetNowOnTVSoapOut">
    <wsdl:part name="parameters" element="tns:GetNowOnTVResponse" />
  </wsdl:message>
  <wsdl:message name="AddUserErrorSoapIn">
    <wsdl:part name="parameters" element="tns:AddUserError" />
  </wsdl:message>
  <wsdl:message name="AddUserErrorSoapOut">
    <wsdl:part name="parameters" element="tns:AddUserErrorResponse" />
  </wsdl:message>
  <wsdl:message name="GetProgramDetailByIdSoapIn">
    <wsdl:part name="parameters" element="tns:GetProgramDetailById" />
  </wsdl:message>
  <wsdl:message name="GetProgramDetailByIdSoapOut">
    <wsdl:part name="parameters" element="tns:GetProgramDetailByIdResponse" />
  </wsdl:message>
  <wsdl:portType name="PublicServicesSoap">
    <wsdl:operation name="GetSessionID">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get SessionID</wsdl:documentation>
      <wsdl:input message="tns:GetSessionIDSoapIn" />
      <wsdl:output message="tns:GetSessionIDSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="UserAuth">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get SessionID and SubscriptionId</wsdl:documentation>
      <wsdl:input message="tns:UserAuthSoapIn" />
      <wsdl:output message="tns:UserAuthSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetTVRProgramsByChannel">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get TVR Programs per Day by Channel: pday - string day format MM/dd/yyyyy : Returnes DateTime as String</wsdl:documentation>
      <wsdl:input message="tns:GetTVRProgramsByChannelSoapIn" />
      <wsdl:output message="tns:GetTVRProgramsByChannelSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetNowOnTV">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Now on TV for specific time zone : Returns DateTime as String</wsdl:documentation>
      <wsdl:input message="tns:GetNowOnTVSoapIn" />
      <wsdl:output message="tns:GetNowOnTVSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="AddUserError">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Add User's error message to the system</wsdl:documentation>
      <wsdl:input message="tns:AddUserErrorSoapIn" />
      <wsdl:output message="tns:AddUserErrorSoapOut" />
    </wsdl:operation>
    <wsdl:operation name="GetProgramDetailById">
      <wsdl:documentation xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">Get Program Details by ProgramID : Returns DateTime as String</wsdl:documentation>
      <wsdl:input message="tns:GetProgramDetailByIdSoapIn" />
      <wsdl:output message="tns:GetProgramDetailByIdSoapOut" />
    </wsdl:operation>
  </wsdl:portType>
  <wsdl:binding name="PublicServicesSoap" type="tns:PublicServicesSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetSessionID">
      <soap:operation soapAction="http://worldstreamtv.com/apps/api/GetSessionID" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="UserAuth">
      <soap:operation soapAction="http://worldstreamtv.com/apps/api/UserAuth" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetTVRProgramsByChannel">
      <soap:operation soapAction="http://worldstreamtv.com/apps/api/GetTVRProgramsByChannel" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetNowOnTV">
      <soap:operation soapAction="http://worldstreamtv.com/apps/api/GetNowOnTV" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AddUserError">
      <soap:operation soapAction="http://worldstreamtv.com/apps/api/AddUserError" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetProgramDetailById">
      <soap:operation soapAction="http://worldstreamtv.com/apps/api/GetProgramDetailById" style="document" />
      <wsdl:input>
        <soap:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:binding name="PublicServicesSoap12" type="tns:PublicServicesSoap">
    <soap12:binding transport="http://schemas.xmlsoap.org/soap/http" />
    <wsdl:operation name="GetSessionID">
      <soap12:operation soapAction="http://worldstreamtv.com/apps/api/GetSessionID" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="UserAuth">
      <soap12:operation soapAction="http://worldstreamtv.com/apps/api/UserAuth" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetTVRProgramsByChannel">
      <soap12:operation soapAction="http://worldstreamtv.com/apps/api/GetTVRProgramsByChannel" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetNowOnTV">
      <soap12:operation soapAction="http://worldstreamtv.com/apps/api/GetNowOnTV" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="AddUserError">
      <soap12:operation soapAction="http://worldstreamtv.com/apps/api/AddUserError" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="GetProgramDetailById">
      <soap12:operation soapAction="http://worldstreamtv.com/apps/api/GetProgramDetailById" style="document" />
      <wsdl:input>
        <soap12:body use="literal" />
      </wsdl:input>
      <wsdl:output>
        <soap12:body use="literal" />
      </wsdl:output>
    </wsdl:operation>
  </wsdl:binding>
  <wsdl:service name="PublicServices">
    <wsdl:port name="PublicServicesSoap" binding="tns:PublicServicesSoap">
      <soap:address location="http://worldstreamtv.com/apps/soapapi.asmx" />
    </wsdl:port>
    <wsdl:port name="PublicServicesSoap12" binding="tns:PublicServicesSoap12">
      <soap12:address location="http://worldstreamtv.com/apps/soapapi.asmx" />
    </wsdl:port>
  </wsdl:service>
</wsdl:definitions>