I am accessing a wsdl webservice with php. Reading out works great but parsing the result seems kinda difficult: I tried to var_dump() the result to get an idea how the result looks like. This is my PHP code I use to vardump the result:
foreach($result as $var => $value) {
var_dump($value);
echo "<br />";
}
This is what i get with it:
object(stdClass)#3 (3) {
["Successful"]=> bool(true)
["MessageId"]=> string(0) ""
["MlsMessageText"]=> string(0) ""
}
object(stdClass)#4 (3) {
["RowCount"]=> int(3)
["ColumnCount"]=> int(3)
["Columns"]=> object(stdClass)#5 (1) {
["Column"]=> array(3) {
[0]=> object(stdClass)#6 (2) {
["Name"]=> string(5) "RowID"
["Rows"]=> object(stdClass)#7 (1) {
["string"]=> array(3) {
[0]=> string(5) "12001"
[1]=> string(5) "12002"
[2]=> string(5) "12003" } } }
[1]=> object(stdClass)#8 (2) {
["Name"]=> string(8) "PersonID"
["Rows"]=> object(stdClass)#9 (1) {
["string"]=> array(3) {
[0]=> string(11) "12033310001"
[1]=> string(11) "12033310002"
[2]=> string(11) "12033310003" } } }
[2]=> object(stdClass)#10 (2) {
["Name"]=> string(10) "PersonName"
["Rows"]=> object(stdClass)#11 (1) {
["string"]=> array(3) {
[0]=> string(10) "Jack Jones"
[1]=> string(11) "Jenifer Row"
[2]=> string(12) "Marin Banker" } } }
}
}
}
Its a rather complex answer and I have no Idea how to parse it with looping. Finally i want to get a table containing the data.
Any help very apreciated :)