prøv med denne kode
<?php
$post_nummer = 2680;
$client = new
SoapClient("
http://aws.oio.dk/oas/2/GetAddressService.asmx?wsdl",array("trace
" => 1, "exceptions" => 1));
try
{
//
$return = $client->GetDistrictNameList($post_nummer);
$doc = new DOMDocument();
echo "<pre>\n";
echo "Request :\n".htmlentities($client->__getLastRequest()) ."\n";
echo "Response:\n".htmlentities($client->__getLastResponse())."\n";
echo "</pre>";
}
catch (SoapFault $exception)
{
echo "<pre>\n";
echo "Request :\n".htmlentities($client->__getLastRequest()) ."\n";
echo "Response:\n".htmlentities($client->__getLastResponse())."\n";
echo "</pre>";
echo $exception;
}
?>
--
Vil du lære at kode HTML, XHTML, CSS, SSI, ASP eller ASP.NET?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials