ProjectAndTaskService
Click here for a complete list of operations.
GetTask
Gets the task object for the task Id supplied
Test
The test form is only available for requests from the local machine.SOAP 1.1
The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.
POST /projectandtaskservice.asmx HTTP/1.1 Host: webservices.projectinsight.net Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "http://webservices.projectinsight.net/GetTask" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetTask xmlns="http://webservices.projectinsight.net"> <sessionKey>string</sessionKey> <taskId>guid</taskId> <includeAdvancedInformation>boolean</includeAdvancedInformation> <includeTaskResourceAssignments>boolean</includeTaskResourceAssignments> <includeTaskPredecessors>boolean</includeTaskPredecessors> </GetTask> </soap:Body> </soap:Envelope>
HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <GetTaskResponse xmlns="http://webservices.projectinsight.net"> <GetTaskResult> <ExpenseCodeExpenseEntryDefault>guid</ExpenseCodeExpenseEntryDefault> <ExpenseCodeTimeEntryDefault>guid</ExpenseCodeTimeEntryDefault> <TaskNumber>int</TaskNumber> <WBSCode>string</WBSCode> <IsMilestone>boolean</IsMilestone> <IsSummaryTask>boolean</IsSummaryTask> <IsTaskCaptureTime>boolean</IsTaskCaptureTime> <IsTaskCaptureExpense>boolean</IsTaskCaptureExpense> <IsTaskSynchronizeEstimatedHoursWithWork>boolean</IsTaskSynchronizeEstimatedHoursWithWork> <IsTaskSynchronizeProposedHoursWithWork>boolean</IsTaskSynchronizeProposedHoursWithWork> <TaskProcessAdjustmentType>int</TaskProcessAdjustmentType> <TaskProcessAdjustmentTypeDefault>int</TaskProcessAdjustmentTypeDefault> <ConstraintDateTimeUTCString>string</ConstraintDateTimeUTCString> <ConstraintType>int</ConstraintType> <ConstraintTypeDescription>string</ConstraintTypeDescription> <DurationDelay>int</DurationDelay> <DeadlineDateString>string</DeadlineDateString> <DurationIsElapsed>boolean</DurationIsElapsed> <ActualStartDateTimeUTC>string</ActualStartDateTimeUTC> <ActualEndDateTimeUTC>string</ActualEndDateTimeUTC> <EstimatedHours_FormEntry>decimal</EstimatedHours_FormEntry> <EstimatedRate_FormEntry>decimal</EstimatedRate_FormEntry> <EstimatedExpenseTotal_FormEntry>decimal</EstimatedExpenseTotal_FormEntry> <ProposedHours_FormEntry>decimal</ProposedHours_FormEntry> <ProposedRate_FormEntry>decimal</ProposedRate_FormEntry> <ProposedExpenseTotal_FormEntry>decimal</ProposedExpenseTotal_FormEntry> <TaskResources> <TaskResource> <Id>guid</Id> <Task_Id>guid</Task_Id> <User_Id>guid</User_Id> <ResourceTypeRole_Id>guid</ResourceTypeRole_Id> <ResourceTypeRole_Code>string</ResourceTypeRole_Code> <IsTaskOwner>boolean</IsTaskOwner> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <PercentAllocation>decimal</PercentAllocation> <WorkSeconds>int</WorkSeconds> <WorkSecondsComplete>int</WorkSecondsComplete> <WorkPercentComplete>decimal</WorkPercentComplete> <PlannedHours>decimal</PlannedHours> <PlannedValue>decimal</PlannedValue> <EarnedValue>decimal</EarnedValue> <WorkTotalCost>decimal</WorkTotalCost> <PlannedHoursBillable>decimal</PlannedHoursBillable> <PlannedValueBillable>decimal</PlannedValueBillable> <EarnedValueBillable>decimal</EarnedValueBillable> <WorkTotalCostBillable>decimal</WorkTotalCostBillable> </TaskResource> <TaskResource> <Id>guid</Id> <Task_Id>guid</Task_Id> <User_Id>guid</User_Id> <ResourceTypeRole_Id>guid</ResourceTypeRole_Id> <ResourceTypeRole_Code>string</ResourceTypeRole_Code> <IsTaskOwner>boolean</IsTaskOwner> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <PercentAllocation>decimal</PercentAllocation> <WorkSeconds>int</WorkSeconds> <WorkSecondsComplete>int</WorkSecondsComplete> <WorkPercentComplete>decimal</WorkPercentComplete> <PlannedHours>decimal</PlannedHours> <PlannedValue>decimal</PlannedValue> <EarnedValue>decimal</EarnedValue> <WorkTotalCost>decimal</WorkTotalCost> <PlannedHoursBillable>decimal</PlannedHoursBillable> <PlannedValueBillable>decimal</PlannedValueBillable> <EarnedValueBillable>decimal</EarnedValueBillable> <WorkTotalCostBillable>decimal</WorkTotalCostBillable> </TaskResource> </TaskResources> <Tasks> <Task> <ExpenseCodeExpenseEntryDefault>guid</ExpenseCodeExpenseEntryDefault> <ExpenseCodeTimeEntryDefault>guid</ExpenseCodeTimeEntryDefault> <TaskNumber>int</TaskNumber> <WBSCode>string</WBSCode> <IsMilestone>boolean</IsMilestone> <IsSummaryTask>boolean</IsSummaryTask> <IsTaskCaptureTime>boolean</IsTaskCaptureTime> <IsTaskCaptureExpense>boolean</IsTaskCaptureExpense> <IsTaskSynchronizeEstimatedHoursWithWork>boolean</IsTaskSynchronizeEstimatedHoursWithWork> <IsTaskSynchronizeProposedHoursWithWork>boolean</IsTaskSynchronizeProposedHoursWithWork> <TaskProcessAdjustmentType>int</TaskProcessAdjustmentType> <TaskProcessAdjustmentTypeDefault>int</TaskProcessAdjustmentTypeDefault> <ConstraintDateTimeUTCString>string</ConstraintDateTimeUTCString> <ConstraintType>int</ConstraintType> <ConstraintTypeDescription>string</ConstraintTypeDescription> <DurationDelay>int</DurationDelay> <DeadlineDateString>string</DeadlineDateString> <DurationIsElapsed>boolean</DurationIsElapsed> <ActualStartDateTimeUTC>string</ActualStartDateTimeUTC> <ActualEndDateTimeUTC>string</ActualEndDateTimeUTC> <EstimatedHours_FormEntry>decimal</EstimatedHours_FormEntry> <EstimatedRate_FormEntry>decimal</EstimatedRate_FormEntry> <EstimatedExpenseTotal_FormEntry>decimal</EstimatedExpenseTotal_FormEntry> <ProposedHours_FormEntry>decimal</ProposedHours_FormEntry> <ProposedRate_FormEntry>decimal</ProposedRate_FormEntry> <ProposedExpenseTotal_FormEntry>decimal</ProposedExpenseTotal_FormEntry> <TaskResources xsi:nil="true" /> <Tasks xsi:nil="true" /> <TaskPredecessors xsi:nil="true" /> </Task> <Task> <ExpenseCodeExpenseEntryDefault>guid</ExpenseCodeExpenseEntryDefault> <ExpenseCodeTimeEntryDefault>guid</ExpenseCodeTimeEntryDefault> <TaskNumber>int</TaskNumber> <WBSCode>string</WBSCode> <IsMilestone>boolean</IsMilestone> <IsSummaryTask>boolean</IsSummaryTask> <IsTaskCaptureTime>boolean</IsTaskCaptureTime> <IsTaskCaptureExpense>boolean</IsTaskCaptureExpense> <IsTaskSynchronizeEstimatedHoursWithWork>boolean</IsTaskSynchronizeEstimatedHoursWithWork> <IsTaskSynchronizeProposedHoursWithWork>boolean</IsTaskSynchronizeProposedHoursWithWork> <TaskProcessAdjustmentType>int</TaskProcessAdjustmentType> <TaskProcessAdjustmentTypeDefault>int</TaskProcessAdjustmentTypeDefault> <ConstraintDateTimeUTCString>string</ConstraintDateTimeUTCString> <ConstraintType>int</ConstraintType> <ConstraintTypeDescription>string</ConstraintTypeDescription> <DurationDelay>int</DurationDelay> <DeadlineDateString>string</DeadlineDateString> <DurationIsElapsed>boolean</DurationIsElapsed> <ActualStartDateTimeUTC>string</ActualStartDateTimeUTC> <ActualEndDateTimeUTC>string</ActualEndDateTimeUTC> <EstimatedHours_FormEntry>decimal</EstimatedHours_FormEntry> <EstimatedRate_FormEntry>decimal</EstimatedRate_FormEntry> <EstimatedExpenseTotal_FormEntry>decimal</EstimatedExpenseTotal_FormEntry> <ProposedHours_FormEntry>decimal</ProposedHours_FormEntry> <ProposedRate_FormEntry>decimal</ProposedRate_FormEntry> <ProposedExpenseTotal_FormEntry>decimal</ProposedExpenseTotal_FormEntry> <TaskResources xsi:nil="true" /> <Tasks xsi:nil="true" /> <TaskPredecessors xsi:nil="true" /> </Task> </Tasks> <TaskPredecessors> <TaskPredecessor> <Id>guid</Id> <Task_Id>guid</Task_Id> <Predecessor_Task_Id>guid</Predecessor_Task_Id> <IsLag>boolean</IsLag> <IsCriticalPath>boolean</IsCriticalPath> <TaskPredecessorType>int</TaskPredecessorType> <TaskPredecessorTypeString>string</TaskPredecessorTypeString> <DurationSeconds>int</DurationSeconds> <DurationIsElapsed>boolean</DurationIsElapsed> </TaskPredecessor> <TaskPredecessor> <Id>guid</Id> <Task_Id>guid</Task_Id> <Predecessor_Task_Id>guid</Predecessor_Task_Id> <IsLag>boolean</IsLag> <IsCriticalPath>boolean</IsCriticalPath> <TaskPredecessorType>int</TaskPredecessorType> <TaskPredecessorTypeString>string</TaskPredecessorTypeString> <DurationSeconds>int</DurationSeconds> <DurationIsElapsed>boolean</DurationIsElapsed> </TaskPredecessor> </TaskPredecessors> </GetTaskResult> </GetTaskResponse> </soap:Body> </soap:Envelope>
SOAP 1.2
The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.
POST /projectandtaskservice.asmx HTTP/1.1 Host: webservices.projectinsight.net Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetTask xmlns="http://webservices.projectinsight.net"> <sessionKey>string</sessionKey> <taskId>guid</taskId> <includeAdvancedInformation>boolean</includeAdvancedInformation> <includeTaskResourceAssignments>boolean</includeTaskResourceAssignments> <includeTaskPredecessors>boolean</includeTaskPredecessors> </GetTask> </soap12:Body> </soap12:Envelope>
HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <GetTaskResponse xmlns="http://webservices.projectinsight.net"> <GetTaskResult> <ExpenseCodeExpenseEntryDefault>guid</ExpenseCodeExpenseEntryDefault> <ExpenseCodeTimeEntryDefault>guid</ExpenseCodeTimeEntryDefault> <TaskNumber>int</TaskNumber> <WBSCode>string</WBSCode> <IsMilestone>boolean</IsMilestone> <IsSummaryTask>boolean</IsSummaryTask> <IsTaskCaptureTime>boolean</IsTaskCaptureTime> <IsTaskCaptureExpense>boolean</IsTaskCaptureExpense> <IsTaskSynchronizeEstimatedHoursWithWork>boolean</IsTaskSynchronizeEstimatedHoursWithWork> <IsTaskSynchronizeProposedHoursWithWork>boolean</IsTaskSynchronizeProposedHoursWithWork> <TaskProcessAdjustmentType>int</TaskProcessAdjustmentType> <TaskProcessAdjustmentTypeDefault>int</TaskProcessAdjustmentTypeDefault> <ConstraintDateTimeUTCString>string</ConstraintDateTimeUTCString> <ConstraintType>int</ConstraintType> <ConstraintTypeDescription>string</ConstraintTypeDescription> <DurationDelay>int</DurationDelay> <DeadlineDateString>string</DeadlineDateString> <DurationIsElapsed>boolean</DurationIsElapsed> <ActualStartDateTimeUTC>string</ActualStartDateTimeUTC> <ActualEndDateTimeUTC>string</ActualEndDateTimeUTC> <EstimatedHours_FormEntry>decimal</EstimatedHours_FormEntry> <EstimatedRate_FormEntry>decimal</EstimatedRate_FormEntry> <EstimatedExpenseTotal_FormEntry>decimal</EstimatedExpenseTotal_FormEntry> <ProposedHours_FormEntry>decimal</ProposedHours_FormEntry> <ProposedRate_FormEntry>decimal</ProposedRate_FormEntry> <ProposedExpenseTotal_FormEntry>decimal</ProposedExpenseTotal_FormEntry> <TaskResources> <TaskResource> <Id>guid</Id> <Task_Id>guid</Task_Id> <User_Id>guid</User_Id> <ResourceTypeRole_Id>guid</ResourceTypeRole_Id> <ResourceTypeRole_Code>string</ResourceTypeRole_Code> <IsTaskOwner>boolean</IsTaskOwner> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <PercentAllocation>decimal</PercentAllocation> <WorkSeconds>int</WorkSeconds> <WorkSecondsComplete>int</WorkSecondsComplete> <WorkPercentComplete>decimal</WorkPercentComplete> <PlannedHours>decimal</PlannedHours> <PlannedValue>decimal</PlannedValue> <EarnedValue>decimal</EarnedValue> <WorkTotalCost>decimal</WorkTotalCost> <PlannedHoursBillable>decimal</PlannedHoursBillable> <PlannedValueBillable>decimal</PlannedValueBillable> <EarnedValueBillable>decimal</EarnedValueBillable> <WorkTotalCostBillable>decimal</WorkTotalCostBillable> </TaskResource> <TaskResource> <Id>guid</Id> <Task_Id>guid</Task_Id> <User_Id>guid</User_Id> <ResourceTypeRole_Id>guid</ResourceTypeRole_Id> <ResourceTypeRole_Code>string</ResourceTypeRole_Code> <IsTaskOwner>boolean</IsTaskOwner> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <PercentAllocation>decimal</PercentAllocation> <WorkSeconds>int</WorkSeconds> <WorkSecondsComplete>int</WorkSecondsComplete> <WorkPercentComplete>decimal</WorkPercentComplete> <PlannedHours>decimal</PlannedHours> <PlannedValue>decimal</PlannedValue> <EarnedValue>decimal</EarnedValue> <WorkTotalCost>decimal</WorkTotalCost> <PlannedHoursBillable>decimal</PlannedHoursBillable> <PlannedValueBillable>decimal</PlannedValueBillable> <EarnedValueBillable>decimal</EarnedValueBillable> <WorkTotalCostBillable>decimal</WorkTotalCostBillable> </TaskResource> </TaskResources> <Tasks> <Task> <ExpenseCodeExpenseEntryDefault>guid</ExpenseCodeExpenseEntryDefault> <ExpenseCodeTimeEntryDefault>guid</ExpenseCodeTimeEntryDefault> <TaskNumber>int</TaskNumber> <WBSCode>string</WBSCode> <IsMilestone>boolean</IsMilestone> <IsSummaryTask>boolean</IsSummaryTask> <IsTaskCaptureTime>boolean</IsTaskCaptureTime> <IsTaskCaptureExpense>boolean</IsTaskCaptureExpense> <IsTaskSynchronizeEstimatedHoursWithWork>boolean</IsTaskSynchronizeEstimatedHoursWithWork> <IsTaskSynchronizeProposedHoursWithWork>boolean</IsTaskSynchronizeProposedHoursWithWork> <TaskProcessAdjustmentType>int</TaskProcessAdjustmentType> <TaskProcessAdjustmentTypeDefault>int</TaskProcessAdjustmentTypeDefault> <ConstraintDateTimeUTCString>string</ConstraintDateTimeUTCString> <ConstraintType>int</ConstraintType> <ConstraintTypeDescription>string</ConstraintTypeDescription> <DurationDelay>int</DurationDelay> <DeadlineDateString>string</DeadlineDateString> <DurationIsElapsed>boolean</DurationIsElapsed> <ActualStartDateTimeUTC>string</ActualStartDateTimeUTC> <ActualEndDateTimeUTC>string</ActualEndDateTimeUTC> <EstimatedHours_FormEntry>decimal</EstimatedHours_FormEntry> <EstimatedRate_FormEntry>decimal</EstimatedRate_FormEntry> <EstimatedExpenseTotal_FormEntry>decimal</EstimatedExpenseTotal_FormEntry> <ProposedHours_FormEntry>decimal</ProposedHours_FormEntry> <ProposedRate_FormEntry>decimal</ProposedRate_FormEntry> <ProposedExpenseTotal_FormEntry>decimal</ProposedExpenseTotal_FormEntry> <TaskResources xsi:nil="true" /> <Tasks xsi:nil="true" /> <TaskPredecessors xsi:nil="true" /> </Task> <Task> <ExpenseCodeExpenseEntryDefault>guid</ExpenseCodeExpenseEntryDefault> <ExpenseCodeTimeEntryDefault>guid</ExpenseCodeTimeEntryDefault> <TaskNumber>int</TaskNumber> <WBSCode>string</WBSCode> <IsMilestone>boolean</IsMilestone> <IsSummaryTask>boolean</IsSummaryTask> <IsTaskCaptureTime>boolean</IsTaskCaptureTime> <IsTaskCaptureExpense>boolean</IsTaskCaptureExpense> <IsTaskSynchronizeEstimatedHoursWithWork>boolean</IsTaskSynchronizeEstimatedHoursWithWork> <IsTaskSynchronizeProposedHoursWithWork>boolean</IsTaskSynchronizeProposedHoursWithWork> <TaskProcessAdjustmentType>int</TaskProcessAdjustmentType> <TaskProcessAdjustmentTypeDefault>int</TaskProcessAdjustmentTypeDefault> <ConstraintDateTimeUTCString>string</ConstraintDateTimeUTCString> <ConstraintType>int</ConstraintType> <ConstraintTypeDescription>string</ConstraintTypeDescription> <DurationDelay>int</DurationDelay> <DeadlineDateString>string</DeadlineDateString> <DurationIsElapsed>boolean</DurationIsElapsed> <ActualStartDateTimeUTC>string</ActualStartDateTimeUTC> <ActualEndDateTimeUTC>string</ActualEndDateTimeUTC> <EstimatedHours_FormEntry>decimal</EstimatedHours_FormEntry> <EstimatedRate_FormEntry>decimal</EstimatedRate_FormEntry> <EstimatedExpenseTotal_FormEntry>decimal</EstimatedExpenseTotal_FormEntry> <ProposedHours_FormEntry>decimal</ProposedHours_FormEntry> <ProposedRate_FormEntry>decimal</ProposedRate_FormEntry> <ProposedExpenseTotal_FormEntry>decimal</ProposedExpenseTotal_FormEntry> <TaskResources xsi:nil="true" /> <Tasks xsi:nil="true" /> <TaskPredecessors xsi:nil="true" /> </Task> </Tasks> <TaskPredecessors> <TaskPredecessor> <Id>guid</Id> <Task_Id>guid</Task_Id> <Predecessor_Task_Id>guid</Predecessor_Task_Id> <IsLag>boolean</IsLag> <IsCriticalPath>boolean</IsCriticalPath> <TaskPredecessorType>int</TaskPredecessorType> <TaskPredecessorTypeString>string</TaskPredecessorTypeString> <DurationSeconds>int</DurationSeconds> <DurationIsElapsed>boolean</DurationIsElapsed> </TaskPredecessor> <TaskPredecessor> <Id>guid</Id> <Task_Id>guid</Task_Id> <Predecessor_Task_Id>guid</Predecessor_Task_Id> <IsLag>boolean</IsLag> <IsCriticalPath>boolean</IsCriticalPath> <TaskPredecessorType>int</TaskPredecessorType> <TaskPredecessorTypeString>string</TaskPredecessorTypeString> <DurationSeconds>int</DurationSeconds> <DurationIsElapsed>boolean</DurationIsElapsed> </TaskPredecessor> </TaskPredecessors> </GetTaskResult> </GetTaskResponse> </soap12:Body> </soap12:Envelope>