How do I get the data?

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
dgmufasa
Forum Newbie
Posts: 1
Joined: Wed Nov 09, 2011 8:27 am

How do I get the data?

Post by dgmufasa »

Hello all,
I have written the following code. It returns data (which is listed in the picture attached). I need to get the values highlighted in red: IDAssigned, ReturnCode, ReturnMessage.

How can I do this? What PHP code can I write?

TIA

Code: Select all

	function __construct( )
	{
		try {

			//from: https://bugs.php.net/bug.php?id=47492
			$this ->wmclient= new SoapClient( $this -> soap_location, array('features' => SOAP_USE_XSI_ARRAY_TYPE + SOAP_SINGLE_ELEMENT_ARRAYS  ));

		} catch (SoapFault $e) {
			echo "<br /> => Caught A SOAP Fault" . $this ->wmclient ->__getLastResponse();
			die( '<br /> => SOAP Error DOMAIN RECORDS: '.$e->getMessage());
		}
	}


	$parameters = [ ... ] < - clipped this out

	$ret = $this -> wmclient ->__soapCall("CreateHeadquartersUser", $parameters);

The results are in the picture attached.
Attachments
PICTURE.png
Last edited by Benjamin on Wed Nov 09, 2011 5:49 pm, edited 1 time in total.
Reason: Added [syntax=php|sql|css|javascript] and/or [text] tags.
Post Reply