1
도와주세요. 프로젝트 서버 (PSI webservice)에서 프로젝트를 만들려고하는데 아래 오류 때문에 그렇게하지 못했습니다. 누구든지 문제가 무엇인지 알 수 있습니까? VS2008에서 웹 서비스를 업데이트하려고 시도 할 때도이 오류가 발생합니다.PSI 웹 서비스 호출시 오류 : 클라이언트 인증 스키마 '익명'으로 HTTP 요청이 허가되지 않았습니다.
가 여기에 오류가 나는 QueueCreateProject를 호출 할 때 발생 (아래 코드 참조) : 여기
System.ServiceModel.Security.MessageSecurityException: The HTTP request is unauthorized with client authentication scheme 'Anonymous'. The authentication header received from the server was 'NTLM'. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
코드입니다 :
objProject = new pstest.ProjectWS.ProjectSoapClient();
dsProjectDataSet = new pstest.ProjectWS.ProjectDataSet();
ProjectWS.ProjectDataSet.ProjectRow projectRow = dsProjectDataSet.Project.NewProjectRow();
Guid _projectGUID = Guid.NewGuid(); // new GUID for each project
projectRow.PROJ_UID = _projectGUID;
projectRow.PROJ_NAME = "My new Project";
projectRow.PROJ_INFO_START_DATE = System.DateTime.Now;
projectRow.PROJ_TYPE = 0; //0 is for project and 1 is for template
dsProjectDataSet.Project.AddProjectRow(projectRow);
//create a project using project.asmx
objProject.QueueCreateProject(Guid.NewGuid(), dsProjectDataSet,false);