Iam using Amazon toolkit to integrate SF with Amazon S3.
I want to render the content(image) of files in a bucket when bucket is selected from a selectlist.
Like ListBucket, I am calling a method getObject'
which in turn calls the webservice operation GetObject
from the S3 class.
I can see the request and response(200) in my developer console but there is an exception:
ERROR: Web service callout failed: Unable to parse callout response. Apex type not found for element Status.
Can someone help me to resolve this please.?
[EDIT]
This is The method which is in controller which further makes a call to a method of S3 class which performs a web service callout.
-
-
public PageReference GetObject()
{
try{ Datetime now = Datetime.now();
String Delimiter = null;
Boolean GetMetadata =true;
Boolean GetData=true;
Boolean InlineData=true;
System.debug('GetObject for bucket: ' + bucketToList);
//This performs the Web Service call to Amazon S3 and retrieves all the objects in the specified bucket
S3.GetObjectResult response = as3.GetObject(bucketToList,'demo4' ,GetMetadata,GetData,InlineData,as3.key,now,as3.signature('GetObject',now),as3.secret);
return null;
}
catch(Exception ex){
System.debug('EXCEPTION: ' + ex);
getobjectErrorMsg = ex.getMessage();
ApexPages.addMessages(ex);
return null;
}
}
}