Dear all,
I am trying to present data from a webservice on my website. To do so I found
out what kind of functions the webservice supports with the following code:
<?php
$client = new SoapClient( 'http://wetten.overheid.nl/BWBIdService/BWBIdService.wsdl', array( ‘trace’=>1 ) );
print_r( $client->__getFunctions() );
print_r( $client->__getTypes() );
?>
I get the following results:
Array
(
[0] => BWBIdServiceResultaat searchByBWBId(string $bwbid)
[1] => BWBIdServiceResultaat searchByTitle(string $titel, date $datumGeldig, boolean $volledigeTitel)
[2] => BWBIdServiceResultaat searchModifiedSince(dateTime $datumGewijzigd)
)
Array
(
[0] => string NietOfficieleTitel
[1] => NietOfficieleTitel NietOfficieleTitelLijst[]
[2] => string Afkorting
[3] => Afkorting AfkortingLijst[]
[4] => struct Citeertitel {
string titel;
string status;
date InwerkingtredingsDatum;
}
[5] => Citeertitel CiteertitelLijst[]
[6] => struct RegelingInfo {
string BWBId;
date DatumLaatsteWijziging;
date VervalDatum;
string OfficieleTitel;
CiteertitelLijst CiteertitelLijst;
AfkortingLijst AfkortingLijst;
NietOfficieleTitelLijst NietOfficieleTitelLijst;
string RegelingSoort;
}
[7] => RegelingInfo RegelingInfoLijst[]
[8] => struct BWBIdServiceResultaat {
RegelingInfoLijst RegelingInfoLijst;
date GegenereerdOp;
}
)
I want to 'echo' the contents of : BWBIdServiceResultaat searchByBWBId(string $bwbid)
To do so I tried the following:
<?php
$client = new SoapClient( 'http://wetten.overheid.nl/BWBIdService/BWBIdService.wsdl', array( ‘trace’=>1 ) );
$message = new stdClass( );
$message->BWBId = 'BWBR0004287';
echo $client->searchByBWBId($message);
?>
But unfortunately I get the following error:
php soap object of class stdclass could not be converted to string
Could anyone please help me?