How to get data from SOAP using PHP

I have this page:

I need to get the data of the first "ARTIST" and "TITLE" tags:


Can anybody help me?


I've completely revised my earlier answer, because I didn't realize you could not get back real data from the web service. You can access it with a SOAP client. Optional parameters can be passed to the client function, like this:


...but, I don't really know what this web service is for and I couldn't figure out any parameter to send. Anyway, the following gets a response:

// service description

// send request
$client = new SoapClient("");
$result = $client->GetNowPlaying();

// get array of items
$arr = $result->GetNowPlayingResult->PlayerItem;

// iterate and access the artist property of the item
foreach ($arr as $i) {
    echo $i->Artist . "\n";

// examine what the SOAP response contains
echo var_dump($client);
echo var_dump($client->__getFunctions());
echo var_dump($result);

Need Your Help

Javascript - adding variables into a form submit

javascript jquery html forms

I have a bit of javascript that finds an existing id and replaces it with a form.

Is there any lib for crossplatform Camera like devices streams parsing?

c++ stream capture device

C\C++ lib for cross-platform device streams capturing (It shall find all devices in system and be able to give me their streams for encoding or filtering or any thing else). I want it to be cross-