2012-02-28 50 views

回答

0

你將不得不使用從我可以告訴的光標(加載一切)。

<?php 

/* $this is a class that extends SoapClient using the groupwise.wsdl */ 
$q = (object)[ 
    'folderType' => 'Mailbox', 
    'view' => 'count unreadCount' 
]; 

$folder = $this->getFolderRequest($q); 

$q = (object)[ 
    'container' => $folder->folder->id, 
    'view' => 'subject peek noDownload' 
]; 

$cursor = $this->createCursorRequest($q); 

$q = (object)[ 
    'container' => $data->folder->id, 
    'cursor' => $cursor->cursor, 
    'position' => 'end', 
    'count' => 20, 
    'forward' => TRUE 
]; 

$msgs = $this->readCursorRequest($q); 

var_dump($msgs); 

/* You could also throw readCursorRequest() in a loop and track offset + position for more intensive purposes */ 
?> 

更多閱讀:https://www.novell.com/documentation/developer/groupwise_sdk/gwsdk_gwwebservices/data/b7m3i3x.html

+0

糟糕!對不起,我誤解了,我認爲這是針對Web服務的。 – thinice 2015-02-12 22:49:50