PHP Soap - Consuming Web Service problems

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

 



Hi,

This is the first time I have used PHP with SOAP as we have just upgraded
our server to PHP5.

I am trying to call the readChallenge method by consuming the PlayStream Web
service.

Here is the code I am using:

// Define test vars
$_POST['challenge'] = 'test 1';
define('P_GUID', 'test 2');

$client = new SoapClient(
"http://www.playstream.com/license/DRMLicense.asmx?wsdl";, array('trace'=>1)
);

echo 'Dumping client object:';
echo "<pre>";
var_dump($client);
echo "</pre>";

echo 'Dumping client object functions:';
echo "<pre>";
var_dump($client->__getFunctions());
echo "</pre>";

$readChallenge = $client->__soapCall( "readChallenge", array('null',
$_POST['challenge'], P_GUID) );

echo '<pre>';
var_dump($readChallenge);
echo '</pre>';

// Debugging echo "<hr><pre>\n";
echo "Request Headers:\n".
htmlspecialchars($client->__getLastRequestHeaders()) ."\n";
echo "Request:\n". htmlspecialchars($client->__getLastRequest()) ."\n";
echo "Response Headers:\n".
htmlspecialchars($client->__getLastResponseHeaders()) ."\n";
echo "Response:\n". htmlspecialchars($client->__getLastResponse())."\n";
echo "</pre>";

This gives no response apart from an empty array, any ideas what I am doing
wrong?

Many thanks.

Resources:
https://www.playstream.com/license/D...=readChallenge
http://www.playstream.com/license/DRMLicense.asmx?wsdl
http://www.playstream.com/support/dr..._custom.aspx#4
-- 
View this message in context: http://www.nabble.com/PHP-Soap---Consuming-Web-Service-problems-tf3022204.html#a8394551
Sent from the Php - Soap mailing list archive at Nabble.com.

-- 
PHP Soap Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux