views:

24

answers:

0

I'm attempting to get values from a webservice.

The responce is formated as..

<campaign Id="200"> <name> test </name> </campaign>

PHP Code

SoapClient( "WSDL");

$return = $client->GetCampaigns('Username', 'Password' );

Yet when I attempt to access the return, I get just a stdClass with the name attribute..

  public 'Campaign' => 
array
  0 => 
    object(stdClass)[46]
      public 'Name' => string 'chris test' (length=10)

Any help would be great here!