[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Multiple Listings problem



Hi, I stumbled upon this resource a few days ago and have been
developing a script in php, but I have a problem.

I can get one channels listing but as soon as I try to get more than one
channel in one go it fails.

Here is the XML request I script is producing:

<?xml version="1.0" encoding="UTF-8"?>

<SOAP-ENV:Envelope
xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:ns1="http://www.nodetraveller.com/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:ns2="http://www.nodetraveller.com";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/";
SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/";>
<SOAP-ENV:Body>
<ns1:getChannelListings>
<channels SOAP-ENC:arrayType="xsd:string[2]" xsi:type="ns2:stringArray">
<item xsi:type="xsd:string">
bbc1</item>
<item xsi:type="xsd:string">
bbc2</item>
</channels>
<date xsi:type="xsd:string">
27/02/2005</date>
<timeSlots xsi:type="xsd:string">
ALL</timeSlots>
</ns1:getChannelListings>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

And here is the response I get:

<?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/";
xmlns:si="http://soapinterop.org/xsd";
xmlns:tns="http://www.nodetraveller.com";>
<SOAP-ENV:Body>
<ns1:getChannelListingsResponse
xmlns:ns1="http://www.nodetraveller.com/";>
<return xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:Listing[1]">
<item xsi:type="SOAP-ENC:Array" SOAP-ENC:arrayType="tns:Programme[0]">
</item>
</return>
</ns1:getChannelListingsResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Yet I can get just BBC fine.

Heres the PHP:

$soapclient = new
soapclient('http://www.nodetraveller.com/webservices/tvGuide/tvGuideServ
ice.php?wsdl', array('trace' => 1));
$todaysdate = date("d/m/Y");
$var1 =
$soapclient->__soapCall("getChannelListings",array(array("bbc1","bbc2"),
$todaysdate,"ALL"));

I have tried to include all the details people will need to help me, and
any help given will be much appreciated.

Thanks in advance

Rick