XML

  <function name="rpcf_get_account_external_id" id="0x2039">
    <input>
      <integer name="aid"/>
    </input>
    <output>
      <string name="external_id"/>
    </output>
  </function>

PHP

	function rpcf_get_account_external_id($account_id) { //0x2039
		$ret=array();
		if (!$this->connection->urfa_call(0x2039)) {
			print "Error calling function ". __FUNCTION__ ."\n";
			return FALSE;
		}
		$packet = $this->connection->getPacket();
		$packet->DataSetInt($account_id);
		$this->connection->urfa_send_param($packet);
		if ($x = $this->connection->urfa_get_data()) {
			$external_id = $x->DataGetString();
		}
//		$this->connection->urfa_get_data();
		return $external_id;
	}