예제 #1
0
        private ResponseGet prepareGetResponse(RmReference objectId, CultureInfo culture, string[] attributes)
        {
            bool haveSearchAttributes = true;

            if (attributes == null || attributes.Length == 0)
            {
                haveSearchAttributes = false;
            }

            Message msgRequest  = requestFactory.CreateGetRequest(objectId, culture, attributes);
            Message msgResponse = wsResourceClient.Get(msgRequest);

            if (msgResponse.IsFault)
            {
                ClientHelper.HandleFault(msgResponse);
            }

            return(responseFactory.CreateGetResponse(msgResponse, haveSearchAttributes));
        }