Ascio Web Service v2
Java Axis 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 |
---|
Java Axis example
package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
import com.ascio.www._2007._01.holders.*;
import ascio.lib.*;
import javax.xml.rpc.holders.*;
public class IRTPApprovalExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
String fileContentString = "abc123";
Attachment attachment = new Attachment();
attachment.setData(fileContentString.getBytes());
attachment.setFileName("anything.jpg");
Only the extension is important and must match with the content-type
ArrayOfAttachmentAttachment attachments[] = new ArrayOfAttachmentAttachment[]{attachment};
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
ExtensionsExtension extensions[] = new ExtensionsExtension[]{extension};
extensions[0].setKey("LoosingOwnerApprovalIP");
extensions[0].setValue("1.1.1.1");
extensions[1].setKey("LoosingOwnerApprovalTimestamp");
extensions[1].setValue("2016-12-06T22:09:07.707Z");
extensions[2].setKey("GainingOwnerApprovalIP");
extensions[2].setValue("1.1.1.1");
extensions[3].setKey("GainingOwnerApprovalTimestamp");
extensions[3].setValue("2016-12-06T22:09:07.707Z");
extensions[4].setKey("IRTPOptOut");
extensions[4].setValue(false);
ApprovalDocumentation approvalDocumentation = new ApprovalDocumentation();
approvalDocumentation.setType(ApprovalDocumentationType.IRTPApproval);
approvalDocumentation.setObjectNames(new String[]{
});
approvalDocumentation.setAttachments(attachments);
approvalDocumentation.setExtensions(extensions);
The domain-names that were verified.
try {
/**outputs holders*/
ResponseHolder createApprovalDocumentationResultHolder = new ResponseHolder();
StringHolder documentationIdHolder = new StringHolder();
env.getClient().createApprovalDocumentation(env.getSessionId(), approvalDocumentation, createApprovalDocumentationResultHolder, documentationIdHolder);
Response response = createApprovalDocumentationResultHolder.value;
System.out.println("CreateApprovalDocumentation ResultCode\t: " + response.getResultCode().toString());
System.out.println("CreateApprovalDocumentation Message\t: " + response.getMessage());
System.out.println("documentationId\t\t: " + documentationIdHolder.value);
if(response.getResultCode() == 400) {
for( String value : response.getValues()) {
System.out.println("Error: " + value);
}
}
return response;
} catch (Exception e) {
System.out.print(e);
}
return new Response();package ascio.v2.examples;
import java.util.Calendar;
import com.ascio.www._2007._01.*;
import com.ascio.www._2007._01.holders.*;
import ascio.lib.*;
import javax.xml.rpc.holders.*;
public class IRTPApprovalExample {
public static Response main() {
AscioConfig config = new AscioConfig();
V2 env = config.getTesting().getV2();
String fileContentString = "abc123";
Attachment attachment = new Attachment();
attachment.setData(fileContentString.getBytes());
attachment.setFileName("anything.jpg");
ArrayOfAttachmentAttachment attachments[] = new ArrayOfAttachmentAttachment[]{attachment};
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
Extension extension = new Extension();
extension.setKey("Title");
extension.setValue("Mr.");
ExtensionsExtension extensions[] = new ExtensionsExtension[]{extension};
extensions[0].setKey("LoosingOwnerApprovalIP");
extensions[0].setValue("1.1.1.1");
extensions[1].setKey("LoosingOwnerApprovalTimestamp");
extensions[1].setValue("2016-12-06T22:09:07.707Z");
extensions[2].setKey("GainingOwnerApprovalIP");
extensions[2].setValue("1.1.1.1");
extensions[3].setKey("GainingOwnerApprovalTimestamp");
extensions[3].setValue("2016-12-06T22:09:07.707Z");
extensions[4].setKey("IRTPOptOut");
extensions[4].setValue(false);
ApprovalDocumentation approvalDocumentation = new ApprovalDocumentation();
approvalDocumentation.setType(ApprovalDocumentationType.IRTPApproval);
approvalDocumentation.setObjectNames(new String[]{
});
approvalDocumentation.setAttachments(attachments);
approvalDocumentation.setExtensions(extensions);
try {
/**outputs holders*/
ResponseHolder createApprovalDocumentationResultHolder = new ResponseHolder();
StringHolder documentationIdHolder = new StringHolder();
env.getClient().createApprovalDocumentation(env.getSessionId(), approvalDocumentation, createApprovalDocumentationResultHolder, documentationIdHolder);
Response response = createApprovalDocumentationResultHolder.value;
System.out.println("CreateApprovalDocumentation ResultCode\t: " + response.getResultCode().toString());
System.out.println("CreateApprovalDocumentation Message\t: " + response.getMessage());
System.out.println("documentationId\t\t: " + documentationIdHolder.value);
if(response.getResultCode() == 400) {
for( String value : response.getValues()) {
System.out.println("Error: " + value);
}
}
return response;
} catch (Exception e) {
System.out.print(e);
}
return new Response();
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.