Java Axis GetSslCertificate

Get an SSL certifcate by handle

The php classes can be downloaded here: PHP-Classes

Response GetSslCertificate(SecurityHeaderDetails securityHeaderDetails,GetSslCertificateRequest getSslCertificateRequest)

Response codes

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

GetSslCertificate request

Property
request

GetSslCertificateResponse

PropertyDescription
GetSslCertificateResult
SslCertificateInfo
ResultCodeExample: 1
ResultMessage
Errors

Used in Classes

Java Axis example

AscioServiceLocator locator = new AscioServiceLocator();
locator.setAscioServicePortEndpointAddress("https://aws.ascio.com/v3/AscioService.svc");
IAscioService port = locator.getAscioServicePort();

SOAPHeaderElement authenticationHeader = new SOAPHeaderElement("http://www.ascio.com/2013/02", "SecurityHeaderDetails");
SOAPHeaderElement accountElement = new SOAPHeaderElement("http://www.ascio.com/2013/02", "Account");
accountElement.setValue("MYACCOUNT");
SOAPHeaderElement passwordElement = new SOAPHeaderElement("http://www.ascio.com/2013/02", "Password");
passwordElement.setValue("MYPASSWORD");
authenticationHeader.addChildElement(accountElement);
authenticationHeader.addChildElement(passwordElement);
((AscioServiceBindingStub)port).setHeader(authenticationHeader);

// Get SSL certificate detail
GetSslCertificateRequest getSslCertificateRequest = new GetSslCertificateRequest();
getSslCertificateRequest.setHandle("MY_HANDLE");
GetSslCertificateResponse rsp = port.getSslCertificate(getSslCertificateRequest);

out.println("Code : " + getSslCertificateResponse.getResultCode()); 
out.println("Message : " + getSslCertificateResponse.getResultMessage());

if (getSslCertificateResponse.getSslCertificateInfo() != null) {
                out.println("CommonName : " + getSslCertificateResponse.getSslCertificateInfo().getCommonName());
                out.println("Status : " + getSslCertificateResponse.getSslCertificateInfo().getStatus());              
                out.println("ProductCode : " + getSslCertificateResponse.getSslCertificateInfo().getProductCode());     
                out.println("WebServerType : " + getSslCertificateResponse.getSslCertificateInfo().getWebServerType());          
                out.println(getSslCertificateResponse.getSslCertificateInfo().getCSR());          
}
WSDL for AWS v3
https://awstest.ascio.com/v3/aws.wsdl (OTE)
https://aws.ascio.com/v3/aws.wsdl (Live)