Através das inúmeras tentativas de visualizar as fotos através do WS SAPO Fotos, consegui o que pretendo desenvolver em Java para Android, mas em linguagem PHP.
O código deste exemplo:
<?php
// Pull in the NuSOAP code
require_once('nusoap.php');
// Create the client instance
$client = new soapclient('http://fotos.sapo.pt/soap.p
$param = array('ESBUsername' => 'xxxxxx@sapo.pt','ESBPassword' => 'xxxxxx','username' => 'xxxxxx');
// Call the SOAP method
$result = $client->call('AlbumGetListByUser', $param, 'http://services.sapo.pt/definitions/Ph
$albuns = $result["albums"];
$n_albuns = count($result);
?>
<?php
for($i=0; $i<$n_albuns;$i++)
{?>
<br />
<table border="1" bordercolor="#333333">
<tr>
<td align="center">
<?php
print_r($albuns["album"][$i]["title"]);
$param_fotos[$i] = array('ESBUsername' => 'xxxxxxx@sapo.pt','ESBPassword' => 'xxxxxxxx','username' => 'xxxxxxx', 'album'=>$albuns["album"][$i]);
// Call the SOAP method
$result_fotos[$i] = $client->call('ImageGetListByUserAlbum',
// Display the result
$n_fotos[$i] = $result_fotos[$i]["result"]["total"];
$list_fotos_info=$result_fotos[$i]["imag
for($j=0;$j<$n_fotos[$i];$j++)
{?>
<td align="center">
<?php
print_r("<br>");
$list_fotos_url=$result_fotos[$i]["image
?>
<p><img src="<?php echo $result_fotos[$i]["images"]["image"][$j]
<?php
print_r("<br>");
print_r($list_fotos_info[$j]["title"]);
?>
</td>
<?php
}
?>
</td>
</table>
<?php
}
?>
O problema agora é conseguir o mesmo resultado em Java e para Android.
. Primeira versão pronta pa...
. Protótipo Funcional - Ver...
. Webservice SAPO Fotos com...
. Mobile
. Mobile Design
. Autores
. Exemplos
. Livros
. eLearning
. Mobile
. Mobile Design
. Autores
. Exemplos
. Livros
. eLearning