Ascio Web Service v2
PHP 5 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 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,[ "trace" => 1, "soap_version" => SOAP_1_1)];
//Attachment
$attachment = [
"Data" => "DataTest",
"FileName" => "anything.jpg"
];
//ArrayOfAttachment
$attachments = [
"Attachment" => [$attachment]
];
//Extension
$extension = [
"Key" => "Title",
"Value" => "Mr."
];
//Extension
$extension = [
"Key" => "Title",
"Value" => "Mr."
];
//Extension
$extension = [
"Key" => "Title",
"Value" => "Mr."
];
//Extension
$extension = [
"Key" => "Title",
"Value" => "Mr."
];
//Extension
$extension = [
"Key" => "Title",
"Value" => "Mr."
];
//Extensions
$extensions = [
"Extension" => [
[
"Key" => "LoosingOwnerApprovalIP",
"Value" => "1.1.1.1"
],
[
"Key" => "LoosingOwnerApprovalTimestamp",
"Value" => "2016-12-06T22:09:07.707Z"
],
[
"Key" => "GainingOwnerApprovalIP",
"Value" => "1.1.1.1"
],
[
"Key" => "GainingOwnerApprovalTimestamp",
"Value" => "2016-12-06T22:09:07.707Z"
],
[
"Key" => "IRTPOptOut",
"Value" => false
]
]
];
//ApprovalDocumentation
$approvalDocumentation = [
"Type" => "IRTPApproval",
"ObjectNames" => [
],
"Attachments" => $attachments,
"Extensions" => $extensions
];
//CreateApprovalDocumentation
$createApprovalDocumentation = [
"sessionId" => env.getSessionId(),
"approvalDocumentation" => $approvalDocumentation
];
try{
$result = $client->createApprovalDocumentation($createApprovalDocumentation);
echo "ResultCode : ".$result->CreateApprovalDocumentationResult->ResultCode."\r\n";
echo "ResultMessage : ".$result->CreateApprovalDocumentationResult->ResultMessage."\r\n";
if(is_array($result->CreateApprovalDocumentationResult->Errors->string)) {
echo "Errors:\r\n";
foreach($result->CreateApprovalDocumentationResult->Errors->string as $key => $value) {
echo " - " . $value."\r\n";
}
}
} catch(Exception $e) {
echo $e->getMessage();
}
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.