Page 1 of 1

Handling SOAP responses.

Posted: Fri Nov 05, 2010 6:13 pm
by magpie5212
I am a complete php novice, but experienced at a few other languages. Can anyone help me? I am using the SOAPclient and getting an object returned that looks like this (var_dump):

object(stdClass)#2 (1) {
["ValidateUserResult"]=>
object(stdClass)#3 (1) {
["any"]=>
string(112) "<MembershipNumber>1462873</MembershipNumber><MemberRoles><MemberRole>All Constituents</MemberRole></MemberRoles>"
}
}

What I'd like to get is a variable containing membershipnumber and an arrary containing a list of roles.

Can someone give a novice a clue pleas?