function getAttachmentReturn = getAttachment(obj,in0,in1,in2,in3)
%getAttachment(obj,in0,in1,in2,in3)
%
%     Input:
%       in0 = (string)
%       in1 = (long)
%       in2 = (string)
%       in3 = (int)
%   
%     Output:
%       getAttachmentReturn.comment = (string)
%       getAttachmentReturn.contentType = (string)
%       getAttachmentReturn.created = (dateTime)
%       getAttachmentReturn.creator = (string)
%       getAttachmentReturn.fileName = (string)
%       getAttachmentReturn.fileSize = (long)
%       getAttachmentReturn.id = (long)
%       getAttachmentReturn.pageId = (long)
%       getAttachmentReturn.title = (string)
%       getAttachmentReturn.url = (string)

% Build up the argument lists.
values = { ...
   in0, ...
   in1, ...
   in2, ...
   in3, ...
   };
names = { ...
   'in0', ...
   'in1', ...
   'in2', ...
   'in3', ...
   };
types = { ...
   '{http://www.w3.org/2001/XMLSchema}string', ...
   'long', ...
   '{http://www.w3.org/2001/XMLSchema}string', ...
   'int', ...
   };

% Create the message, make the call, and convert the response into a variable.
soapMessage = createSoapMessage( ...
    'http://soap.rpc.confluence.atlassian.com', ...
    'getAttachment', ...
    values,names,types,'rpc');
response = callSoapService( ...
    obj.endpoint, ...
    '', ...
    soapMessage);
getAttachmentReturn = parseSoapResponse(response);
