使用asmx Web服务通过Soap UI删除Project Server 2013中的实体时出错

时间:2015-05-12 13:19:48

标签: web-services asmx soapui ms-project-server-2013

我想通过其公开的asmx服务使用Soap UI从项目服务器2013中的项目中删除任务,但是我在通过Soap UI和java代码进行操作时也得到ProjectServerError(s)LastError = GeneralUnhandledException。

我的要求是:



  <proj:QueueDeleteFromProject>
     <proj:jobUid>4b86f225-cbe8-e411-a291-005056ad0474</proj:jobUid>
     <proj:sessionUid>4b86f225-cbe8-e411-a291-005056ad0473</proj:sessionUid>
     <proj:projectUid>4b86f225-cbe8-e411-a291-005056ad0472</proj:projectUid>
     <proj:projectEntityUids>
       <proj:guid>ee6566d1-cbe8-e411-a291-005056ad0472</guid>
       <proj:guid>84d6b846-f4e8-e411-a291-005056ad0472</guid>
     </proj:projectEntityUids>
  </proj:QueueDeleteFromProject>
&#13;
&#13;
&#13;

响应是:

&#13;
&#13;
<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.QueueDeleteFromProject_">
                     <error id="42" name="GeneralUnhandledException" uid="ce084759-96f8-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.QueueDeleteFromProject(Guid jobUid, Guid sessionUid, Guid projectUid, Guid[] projectEntityUids)
   at Microsoft.Office.Project.Server.Wcf.Implementation.ProjectImpl.&lt;>c__DisplayClass75.&lt;QueueDeleteFromProject>b__74()
   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>
&#13;
&#13;
&#13;

请帮我解决这个问题。提前致谢。 如果你有任何建议,也请提及。

0 个答案:

没有答案