PHP 5 AckMessage

Acknowledging a poll of a message is successful hence removing the message item form the message queue.

Response AckMessage(string $sessionId,int $msgId)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
404Object not found

AckMessage request

PropertyDescription
sessionIdExample: o58t9fjgw9bjarp6q7byv13e
msgIdExample: 1

AckMessageResponse

Property
AckMessageResult

PHP 5 example

<?php
$wsdl = "https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl";
//$wsdl = "https://aws.ascio.com/2012/01/01/AscioService.wsdl";
$client = new SoapClient($wsdl,array( "trace" => 1 ));

//AckMessage

$ackMessage= array(
	"sessionId" => env.getSessionId(),
	"msgId" => 1
);
try{	
    $result = $client->ackMessage($ackMessage);
    echo "ResultCode : ".$result->AckMessageResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->AckMessageResult->Message."\r\n";
    if($result->AckMessageResult->Values) {
        foreach($result->AckMessageResult->Values as $key => $value) {
            echo $value->string."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL for AWS v2
https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)