function searchReturn = search(obj,in0,in1,in2)
%search(obj,in0,in1,in2)
%
%     Input:
%       in0 = (string)
%       in1 = (string)
%       in2 = (int)
%   
%     Output:
%       searchReturn(:).excerpt = (string)
%       searchReturn(:).id = (long)
%       searchReturn(:).title = (string)
%       searchReturn(:).type = (string)
%       searchReturn(:).url = (string)

% Build up the argument lists.
values = { ...
   in0, ...
   in1, ...
   in2, ...
   };
names = { ...
   'in0', ...
   'in1', ...
   'in2', ...
   };
types = { ...
   '{http://www.w3.org/2001/XMLSchema}string', ...
   '{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', ...
    'search', ...
    values,names,types,'rpc');
response = callSoapService( ...
    obj.endpoint, ...
    '', ...
    soapMessage);
searchReturn = parseSoapResponse(response);
