Create a new post in wordpress with XML-RPC with the correct GUID?

This is an annoying problem, but there is a way to get the correct link if I do:

$my_page_ask = array( 'link', 'guid' );
$params = array(0,$username,$password,$my_page_id, $my_page_ask);
$clientresult = $client->query('wp.getPost', $params);
$post = $client->getResponse();

The string link contains the correct permalink if:

$my_page["post_status"] = "publish";

It doesn’t work on draft and the string guid still contains the wrong value.