Page 1 of 1

How do I get the data?

Posted: Wed Nov 09, 2011 8:36 am
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.