MS project server Error while updating team through SoapUI

和自甴很熟 提交于 2019-12-25 06:12:51

问题


I want to update project team of project using Soap UI, But i m getting GeneralUnhandledException while doing the operation through Soap UI. Following is my request body and response :

URL of asmx service : http://vmw2k8sp136167:30/_vti_bin/PSI/Project.asmx

Request :

<proj:QueueUpdateProjectTeam>
   <proj:JobUid>e0b1816d-daf7-e411-97e7-005056ad0852</proj:JobUid>
   <proj:sessionUid>e0b1816d-daf7-e411-97e7-005056ad0753</proj:sessionUid>
   <proj:projectUid>e0b1816d-daf7-e411-97e7-005056ad0472</proj:projectUid>
   <proj:dataset>
       <ProjectTeamDataSet>
           <ProjectTeam>
               <PROJ_UID>e0b1816d-daf7-e411-97e7-005056ad0472</PROJ_UID>
               <RES_UID>04aba817-74d8-e411-8329-005056ad0472</RES_UID>
               <RES_NAME>kapil</RES_NAME>
               <RES_BOOKING_TYPE>0</RES_BOOKING_TYPE>
               <RES_TYPE>2</RES_TYPE>
               <RES_IS_ENTERPRISE_RESOURCE>true</RES_IS_ENTERPRISE_RESOURCE>
           </ProjectTeam>
           <ProjectTeam>
               <PROJ_UID>e0b1816d-daf7-e411-97e7-005056ad0472</PROJ_UID>
               <RES_UID>db9283f1-c1e9-e411-a291-005056ad0472</RES_UID>
               <RES_NAME>ajinkya</RES_NAME>
               <RES_BOOKING_TYPE>0</RES_BOOKING_TYPE>
               <RES_TYPE>2</RES_TYPE>
               <RES_IS_ENTERPRISE_RESOURCE>true</RES_IS_ENTERPRISE_RESOURCE>
           </ProjectTeam>
       </ProjectTeamDataSet>
   </proj:dataset>
</proj:QueueUpdateProjectTeam>

Responce :

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
   <s:Body>
      <s:Fault>
         <faultcode>s:Server</faultcode>
         <faultstring xml:lang="en-US">ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructor to access all error information</faultstring>
         <detail>
            <errinfo>
               <general>
                  <class name="General Unhandled Exception in _Project.QueueUpdateProjectTeam_">
                     <error id="42" name="GeneralUnhandledException" uid="08d24c08-e2f7-e411-97e7-005056ad0472" Exception="System.Data.SqlTypes.SqlNullValueException: Data is Null. This method or property cannot be called on Null values.
   at System.Data.SqlClient.SqlBuffer.get_String()
   at Microsoft.Office.Project.Server.DataAccessLayer.ProjectDal.GetSessionInfo(Guid projectUid, Guid&amp; sessionID, String&amp; sessionDescription)
   at Microsoft.Office.Project.Server.BusinessLayer.Project.ValidateSession(Guid projectUid, Guid sessionUid)
   at Microsoft.Office.Project.Server.BusinessLayer.Project.QueueUpdateProjectTeam(Guid JobUid, Guid sessionUid, Guid projectUid, ProjectTeamDataSet dataset)
   at Microsoft.Office.Project.Server.Wcf.Implementation.ProjectImpl.&lt;>c__DisplayClass7f.&lt;QueueUpdateProjectTeam>b__7e()
   at Microsoft.Office.Project.Server.Wcf.Implementation.WcfMethodInvocation.InvokeBusinessObjectMethod(String businessObjectName, String methodName, IEnumerable`1 actions)"/>
                  </class>
               </general>
            </errinfo>
         </detail>
      </s:Fault>
   </s:Body>
</s:Envelope>

来源:https://stackoverflow.com/questions/30169285/ms-project-server-error-while-updating-team-through-soapui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!