BaseResponseUnmarshaller GetResponseUnmarshaller()
{
switch (this.Configuration.ServiceModel.Type)
{
case ServiceType.Rest_Json:
case ServiceType.Json:
return new JsonRPCResponseUnmarshaller();
case ServiceType.Query:
if (this.Configuration.ServiceModel.IsEC2Protocol)
return new AWSQueryEC2ResponseUnmarshaller();
return new AWSQueryResponseUnmarshaller();
case ServiceType.Rest_Xml:
return new RestXmlResponseUnmarshaller();
default:
throw new Exception("No response unmarshaller for service type: " + this.Configuration.ServiceModel.Type);
}
}