Handling SOAP responses.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
magpie5212
Forum Newbie
Posts: 1
Joined: Fri Nov 05, 2010 6:09 pm

Handling SOAP responses.

Post 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?
Post Reply