Ascio Web Service v2
PHP 5 Classes CreateApprovalDocumentation
For owner-changes and transfers both parties, gaining and losing must be verified:Uploads an IRTP verfication proof.

Response CreateApprovalDocumentation(string $sessionId,int $msgId)Response codes
| ResultCode | Message | Value |
|---|---|---|
| 200 | OK | |
| 401 | Authorization failed | |
| 404 | Object not found |
CreateApprovalDocumentation Request
| Property | Description |
|---|---|
| sessionId | Example: o58t9fjgw9bjarp6q7byv13e |
| approvalDocumentation |
CreateApprovalDocumentationResponse
| Property | Description |
|---|---|
| CreateApprovalDocumentationResult | |
| documentationId | The documentationId is used in the order.Documentation property. |
| Property | Value |
| Type | IRTPApproval |
|---|
PHP 5 Classes example
<?php
namespace ascio\v2\examples;
require(__DIR__."/../service/autoload.php");
require(__DIR__."/../../lib/AscioConfig.php");
use ascio\v2 as ascio;
use ascio\lib as lib;
function iRTPApprovalExample() {
$config = new lib\Config();
$env = $config->get("testing"); //testing or live
$sessionId = "12345";
$ascioClient = new ascio\AscioServices(array("trace" => true),$env->getWsdl("v2"));
$attachment = new ascio\Attachment();
$attachment->setData("DataTest");
$attachment->setFileName("anything.jpg");
$attachments = new ascio\ArrayOfAttachment();
$attachments->setAttachment([$attachment]);
$extension = new ascio\Extension();
$extension->setKey("Title");
$extension->setValue("Mr.");
$extension = new ascio\Extension();
$extension->setKey("Title");
$extension->setValue("Mr.");
$extension = new ascio\Extension();
$extension->setKey("Title");
$extension->setValue("Mr.");
$extension = new ascio\Extension();
$extension->setKey("Title");
$extension->setValue("Mr.");
$extension = new ascio\Extension();
$extension->setKey("Title");
$extension->setValue("Mr.");
$extensions = new ascio\Extensions();
$extensions->setExtension([
""LoosingOwnerApprovalIP",
""1.1.1.1"
]);
$extensions->setExtension([
""LoosingOwnerApprovalTimestamp",
""2016-12-06T22:09:07.707Z"
]);
$extensions->setExtension([
""GainingOwnerApprovalIP",
""1.1.1.1"
]);
$extensions->setExtension([
""GainingOwnerApprovalTimestamp",
""2016-12-06T22:09:07.707Z"
]);
$extensions->setExtension([
""IRTPOptOut",
"false
]);
$approvalDocumentation = new ascio\ApprovalDocumentation();
$approvalDocumentation->setType(ascio\ApprovalDocumentationType::IRTPApproval);
$approvalDocumentation->setObjectNames([
]);
$approvalDocumentation->setAttachments($attachments);
$approvalDocumentation->setExtensions($extensions);
try {
$response = $ascioClient->CreateApprovalDocumentation(new ascio\CreateApprovalDocumentation($sessionId, $approvalDocumentation));
} catch (\Exception $e) {
echo ("[".$e->faultcode . "] ". $e->faultstring);
return;
}
$result = $response->getCreateApprovalDocumentationResult();
echo "Code: ".$result->getResultCode()."\n";
echo "Message: ".$result->getMessage()."\n";
return $result;
}
iRTPApprovalExample();https://aws.demo.ascio.com/2012/01/01/AscioService.wsdl (OTE)
https://aws.ascio.com/2012/01/01/AscioService.wsdl (Live)
Please configure the IP-Whitelisting in the portal/demo-portal.