Esempio n. 1
0
        private PwsProjectElement GetPwsProject(string projectCode, string sessionTicket)
        {
            PwsGetProjectRq getProjectRq = new PwsGetProjectRq();
            PwsProjectRef   projectRef   = new PwsProjectRef();

            projectRef.ProjectCode = projectCode;
            PwsProjectRef[] projectRefs = { projectRef };
            getProjectRq.ProjectIdentities = projectRefs;
            getProjectRq.SessionTicket     = sessionTicket;
            PwsGetProjectRs getProjectRs = pwsProjectorServices.PwsGetProject(getProjectRq);

            foreach (PwsMessage message in getProjectRs.Messages)
            {
                if (message.ErrorNumber == 105)
                {
                    errors.Add(new ErrorOccurance()
                    {
                        Error = new Error()
                        {
                            Type    = ErrorType.JobInMappingTableButNotInProjector,
                            ErrorID = 105
                        }
                    });
                }
            }
            return(getProjectRs.Projects[0]);
        }