SOAP Help (1 Viewer)

jameson_uk

Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    I am trying to use Gemx's webservices for TV but it has been a while since I programmed and SOAP is bit new to me....

    Request and Response below but I can not figure out what I am missing (the service is working with Gemx's default TvServiceWebServices.asmx?op=GetChannelsInTvGroup call to group 11 so not sure what I am missing here...)

    Someone point out the error I have made?

    Code:
    POST /TvServiceWebServices.asmx HTTP/1.0
    Host: 192.168.1.3:8080
    User-Agent: NuSOAP/0.7.3 (1.114)
    Content-Type: text/xml; charset=ISO-8859-1
    SOAPAction: "http://tempuri.org/GetChannelsInTvGroup"
    Content-Length: 530
    
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" 
                         xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" 
                         xmlns:xsd="http://www.w3.org/2001/XMLSchema" 
                         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                         xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/">
      <SOAP-ENV:Body>
        <ns9347:GetChannelsInTvGroup xmlns:ns9347="http://tempuri.org">
          <idGroup xsi:type="xsd:int">11</idGroup>
        </ns9347:GetChannelsInTvGroup>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>

    And getting a respone of this (ie. no data)
    Code:
    HTTP/1.1 200 OK
    Server: Microsoft-Cassini/1.0.0.0
    Date: Sun, 24 Jan 2010 14:45:24 GMT
    X-AspNet-Version: 2.0.50727
    Cache-Control: private, max-age=0
    Content-Type: text/xml; charset=utf-8
    Content-Length: 365
    Connection: Close
    
    <?xml version="1.0" encoding="utf-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" 
                          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
                          xmlns:xsd="http://www.w3.org/2001/XMLSchema">
      <soap:Body>
        <GetChannelsInTvGroupResponse xmlns="http://tempuri.org/">
          <GetChannelsInTvGroupResult />
          </GetChannelsInTvGroupResponse>
      </soap:Body>
    </soap:Envelope>
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    Hmm, the result seems to be correct except that group 11 doesn't seem to include any channels !?

    You can easily try with your webbrowser:
    1) List all available groups: http://<your ip>:8080/TvServiceWebServices.asmx/GetTvChannelGroups
    2) List channels for group 2: http://192.168.1.20:8080/TvServiceWebServices.asmx/GetChannelsInTvGroup?idGroup=2

    Group 11 does contain data. If I use the call from TvServiceWebServices.asmx?op= GetChannelsInTvGroup or I use the HTTP GET with idGroup=11 this works :confused:
     

    jameson_uk

    Retired Team Member
  • Premium Supporter
  • January 27, 2005
    7,258
    2,528
    Birmingham
    Home Country
    United Kingdom United Kingdom
    looks like something odd with nusoap (the PHP classes I am using). I did it properly and used the WSDL and voila same call works...
     

    Users who are viewing this thread

    Top Bottom