PHP 5 UpdateUser

Updates the profile of an user. Please provide an existing username within the user-data.

Response UpdateUser(UpdateUser $updateUser)

Response codes

ResultCodeMessageValue
200OK
401Authorization failed
501Syntax error in parameters or arguments
506Required attribute missing in request

UpdateUser Request

Property
user

UpdateUserResponse

Property
UpdateUserResult

PHP 5 example

<?php
$wsdl = "http://groupnbt.com/2010/10/30/Dns/DnsService";
//$wsdl = "https://aws.ascio.com/2012/01/01/AscioService.wsdl";
$client = new SoapClient($wsdl,array( "trace" => 1 ));

//User

$user= array(
	"CreatedDate" => "CreatedDateTest",
	"Email" => "administrator@ascio-test-domain.com",
	"Name" => "John Doe",
	"Password" => "PasswordTest",
	"Role" => "RoleTest",
	"UpdatedDate" => "UpdatedDateTest",
	"UserName" => "UserNameTest"
);
//UpdateUser

$updateUser= array(
	"user" => $user
);
try{	
    $result = $client->updateUser($updateUser);
    echo "ResultCode : ".$result->UpdateUserResult->ResultCode."\r\n";
    echo "ResultMessage : ".$result->UpdateUserResult->Message."\r\n";
    if($result->UpdateUserResult->Values) {
        foreach($result->UpdateUserResult->Values as $key => $value) {
            echo $value->string."\r\n";
        }
    }
} catch(Exception $e) {
	echo $e->getMessage(); 
}

WSDL AscioDns
https://dnsservice.demo.ascio.com/2010/10/30/DnsService.wsdl (OTE)
https://dnsservice.ascio.com/2010/10/30/DnsService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.