发送短信是可以成功的,但是调用获取发送短信状态和回复的短信,返回的是空值,不知道是因为我传递的参数格式问题还是接口的问题。代码如下:          //发送短信,这个是正常的。           public function send($recordid, $SEND_TIME, $FROM_ID, $PHONE, $CONTENT) {
$arr = array ('ApplicationID' => $this->_config ['aid'],'DestinationAddresses' => 'tel:' . $PHONE,'Message' => iconv ( 'GBK', 'UTF-8//IGNORE', $CONTENT ),'MessageFormat' => 'GB2312','SendMethod' => 'Long','DeliveryResultRequest' => true );
try {
$r = $this->_soap->sendSms ( $arr );
if (isset ( $r->RequestIdentifier ) && strlen ( ( string ) $r->RequestIdentifier ) > 20) {
return $r->RequestIdentifier;
}

} catch ( Exception $e ) {
//
}

return false;
} //以下两个一样的传递参数,返回为空对象。
//获取消息发送状态
public function getStatus ( $requestIdentifier ) {
$arr = array ('ApplicationID' => $this->_config ['aid'], 'RequestIdentifier' => $requestIdentifier ); $r = $this->_soap->GetSmsDeliveryStatus ($arr);
if (isset ( $r->DeliveryStatus ) ) {
return '成功';
}else{
return '失败';
}
}

//获取回复信息
public function getReceiveSms() {
$arr = array ('ApplicationID' => (string)$this->_config ['aid']);
return $this->_soap->GetReceivedSms ($arr);
}