Using cloud storage in local testing

Nov 2, 2010 at 11:26 PM
Edited Nov 2, 2010 at 11:26 PM

Hello,

 

I have been trying to use cloud storage in my local develepoment testing: accessing a queue that is on the cloud. To do that I followed the steps:

Project->Proprieties->Windows Azure->Data Storage and I selected the approrpiate fields and entered my credentials.

Then I do the following:

require_once 'Microsoft/WindowsAzure/Storage/Queue.php';

$storageClient = new Microsoft_WindowsAzure_Storage_Queue();
if( !($storageClient->queueExists('worktodo'))){
	$result=$storageClient->createQueue('worktodo');
	echo 'Created queue: ' . $result->Name."<br/>";
}else{
	echo 'worktodo queue exists'."<br/>";
}

if( !($storageClient->queueExists('workdone'))){
	$result=$storageClient->createQueue('workdone');
	echo 'Created queue: ' . $result->Name."<br/>";
}else{
	echo 'workdone queue exists'."<br/>";
}

$storageClient->putMessage('worktodo', $id.','.$name, 3600); // 3600 = time-to-live of the message, if omitted defaults to 7 days
echo($storageClient->getAccountName());

Long story short the queue are always created in DevStorage....

I must be missing something.....

Thanks