Click here to Skip to main content
15,922,584 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Hi Experts

We are trying to Fetch the Transaction Details for tasks that is submitted, but just for tasks that were imported from timesheets from the My Task page.
Now the Exception we get is The request failed with http status 401 unauthorized.

We are using the ReadStatusApprovalDetails Method then get the error stated above.
We also tried to use the ReadAssignmentHistory Method & the ReadTransuctionDetails Method that can also get the job done.
When we use the ReadAssignmentHistory Method of the Statusing Web Service to Read all the Transactions for the specific Assignment, which works fine and returns the Dataset.
Then when we use the ReadTransuctionDetails Method of the Statusing Web Service, to get the Transaction Details of a specific Transaction mentioned above and then we get the 401 error stated above.

Then we tried to Impersonate the Statusing Web Service with the ContextInfo.UserGuid and ContextInfo.UserName.
And worked with the Same Statusing Web Service Methods mentioned above then we got an Exception: ========================\r\nError: \r\n\nSystem.Web.Services.Protocols.SoapException: ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructor to access all error information\n at Microsoft.Office.Project.Server.WebService.Statusing.ReadTransactionDetails(Guid updateID)\r\n==============================\r\nPSClientError Output:\r\n \r\nGeneralUnhandledException\n\r\n============================.

The above we tried on the first VM.

The Second VM we tested the same solution, then the ReadStatusApprovalDetails Method returned the 401 error when we didnt Impersonate the Statusing Web Service, and when we Impersonated the Satusing Web Service the ReadStatusApprovalDetails Method Returned a dataset with the changes for some Timesheet Assignment Changes that where Imported, and for other Imported Timesheet Assignment changes get the same error again as follows:
Exception: ========================\r\nError: \r\n\nSystem.Web.Services.Protocols.SoapException: ProjectServerError(s) LastError=GeneralUnhandledException Instructions: Pass this into PSClientError constructor to access all error information\n at Microsoft.Office.Project.Server.WebService.Statusing.ReadTransactionDetails(Guid updateID)\r\n==============================\r\nPSClientError Output:\r\n \r\nGeneralUnhandledException\n\r\n============================.

Both of the Methods work 100% if transactions are made and submitted from the My Tasks Page in PWA. But if we use the ChangeXML method provided by the MS Projects 2007 SDK to update and Submit the Hours on the My Task Page, both methods Fail as stated above.


We tried allot of things we got on the Internet, but still cant get it to work.

Can you please help?

Posted
Updated 24-Nov-09 21:12pm
v2

1 solution

Hey

This is really a Difficult one... They Posted it on Experts-Exchange.com and they didnt have answer aswell.

 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900