ProjectAndTaskService
Click here for a complete list of operations.
CreateOrUpdateProject
Creates or updates project in Project Insight for the supplied web service project.
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/CreateOrUpdateProject" <?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> <CreateOrUpdateProject xmlns="http://webservices.projectinsight.net"> <sessionKey>string</sessionKey> <wsProject> <ProjectNumber>int</ProjectNumber> <ScheduleStartDate>string</ScheduleStartDate> <ProjectType_Id>guid</ProjectType_Id> <ProjectType_Name>string</ProjectType_Name> <ProjectStatus_Id>guid</ProjectStatus_Id> <ProjectStatus_Name>string</ProjectStatus_Name> <StatusDescription>string</StatusDescription> <ProjectState>int</ProjectState> <ProjectStateDescription>string</ProjectStateDescription> <CompanyDefault_Id>guid</CompanyDefault_Id> <CompanyDefault_Name>string</CompanyDefault_Name> <Companies> <guid>guid</guid> <guid>guid</guid> </Companies> <CompanyContractDefault_Id>guid</CompanyContractDefault_Id> <CompanyContractDefault_Number>string</CompanyContractDefault_Number> <CompanyContracts> <guid>guid</guid> <guid>guid</guid> </CompanyContracts> <Groups> <guid>guid</guid> <guid>guid</guid> </Groups> <Department_Id>guid</Department_Id> <ProjectResources> <ProjectResource> <Id>guid</Id> <Project_Id>guid</Project_Id> <User_Id>guid</User_Id> <User_Name>string</User_Name> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <IsProjectManager>boolean</IsProjectManager> <IsProjectScheduler>boolean</IsProjectScheduler> <PercentAllocationDefault>decimal</PercentAllocationDefault> </ProjectResource> <ProjectResource> <Id>guid</Id> <Project_Id>guid</Project_Id> <User_Id>guid</User_Id> <User_Name>string</User_Name> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <IsProjectManager>boolean</IsProjectManager> <IsProjectScheduler>boolean</IsProjectScheduler> <PercentAllocationDefault>decimal</PercentAllocationDefault> </ProjectResource> </ProjectResources> <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> <ProjectBaseline_Id>guid</ProjectBaseline_Id> <ProjectBaselines> <ProjectBaseline> <Id>guid</Id> <Project_Id>guid</Project_Id> <BaselineDateTimeUTC>string</BaselineDateTimeUTC> <BaselineName>string</BaselineName> <User_Id>guid</User_Id> </ProjectBaseline> <ProjectBaseline> <Id>guid</Id> <Project_Id>guid</Project_Id> <BaselineDateTimeUTC>string</BaselineDateTimeUTC> <BaselineName>string</BaselineName> <User_Id>guid</User_Id> </ProjectBaseline> </ProjectBaselines> <IsAtRisk>boolean</IsAtRisk> <CustomerName>string</CustomerName> <PurchaseOrder>string</PurchaseOrder> <ClientJobNumber>string</ClientJobNumber> <TargetWorkTotalHours>decimal</TargetWorkTotalHours> <TargetWorkTotalRate>decimal</TargetWorkTotalRate> <TargetWorkTotalTime>decimal</TargetWorkTotalTime> <TargetWorkTotalExpense>decimal</TargetWorkTotalExpense> <TargetWorkTotalCost>decimal</TargetWorkTotalCost> <TargetWorkTotalHoursBillable>decimal</TargetWorkTotalHoursBillable> <TargetWorkTotalRateBillable>decimal</TargetWorkTotalRateBillable> <TargetWorkTotalTimeBillable>decimal</TargetWorkTotalTimeBillable> <TargetWorkTotalExpenseBillable>decimal</TargetWorkTotalExpenseBillable> <TargetWorkTotalCostBillable>decimal</TargetWorkTotalCostBillable> </wsProject> </CreateOrUpdateProject> </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> <CreateOrUpdateProjectResponse xmlns="http://webservices.projectinsight.net"> <CreateOrUpdateProjectResult> <UpdatedId>guid</UpdatedId> </CreateOrUpdateProjectResult> </CreateOrUpdateProjectResponse> </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> <CreateOrUpdateProject xmlns="http://webservices.projectinsight.net"> <sessionKey>string</sessionKey> <wsProject> <ProjectNumber>int</ProjectNumber> <ScheduleStartDate>string</ScheduleStartDate> <ProjectType_Id>guid</ProjectType_Id> <ProjectType_Name>string</ProjectType_Name> <ProjectStatus_Id>guid</ProjectStatus_Id> <ProjectStatus_Name>string</ProjectStatus_Name> <StatusDescription>string</StatusDescription> <ProjectState>int</ProjectState> <ProjectStateDescription>string</ProjectStateDescription> <CompanyDefault_Id>guid</CompanyDefault_Id> <CompanyDefault_Name>string</CompanyDefault_Name> <Companies> <guid>guid</guid> <guid>guid</guid> </Companies> <CompanyContractDefault_Id>guid</CompanyContractDefault_Id> <CompanyContractDefault_Number>string</CompanyContractDefault_Number> <CompanyContracts> <guid>guid</guid> <guid>guid</guid> </CompanyContracts> <Groups> <guid>guid</guid> <guid>guid</guid> </Groups> <Department_Id>guid</Department_Id> <ProjectResources> <ProjectResource> <Id>guid</Id> <Project_Id>guid</Project_Id> <User_Id>guid</User_Id> <User_Name>string</User_Name> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <IsProjectManager>boolean</IsProjectManager> <IsProjectScheduler>boolean</IsProjectScheduler> <PercentAllocationDefault>decimal</PercentAllocationDefault> </ProjectResource> <ProjectResource> <Id>guid</Id> <Project_Id>guid</Project_Id> <User_Id>guid</User_Id> <User_Name>string</User_Name> <RateBurden>decimal</RateBurden> <RateBill>decimal</RateBill> <IsProjectManager>boolean</IsProjectManager> <IsProjectScheduler>boolean</IsProjectScheduler> <PercentAllocationDefault>decimal</PercentAllocationDefault> </ProjectResource> </ProjectResources> <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> <ProjectBaseline_Id>guid</ProjectBaseline_Id> <ProjectBaselines> <ProjectBaseline> <Id>guid</Id> <Project_Id>guid</Project_Id> <BaselineDateTimeUTC>string</BaselineDateTimeUTC> <BaselineName>string</BaselineName> <User_Id>guid</User_Id> </ProjectBaseline> <ProjectBaseline> <Id>guid</Id> <Project_Id>guid</Project_Id> <BaselineDateTimeUTC>string</BaselineDateTimeUTC> <BaselineName>string</BaselineName> <User_Id>guid</User_Id> </ProjectBaseline> </ProjectBaselines> <IsAtRisk>boolean</IsAtRisk> <CustomerName>string</CustomerName> <PurchaseOrder>string</PurchaseOrder> <ClientJobNumber>string</ClientJobNumber> <TargetWorkTotalHours>decimal</TargetWorkTotalHours> <TargetWorkTotalRate>decimal</TargetWorkTotalRate> <TargetWorkTotalTime>decimal</TargetWorkTotalTime> <TargetWorkTotalExpense>decimal</TargetWorkTotalExpense> <TargetWorkTotalCost>decimal</TargetWorkTotalCost> <TargetWorkTotalHoursBillable>decimal</TargetWorkTotalHoursBillable> <TargetWorkTotalRateBillable>decimal</TargetWorkTotalRateBillable> <TargetWorkTotalTimeBillable>decimal</TargetWorkTotalTimeBillable> <TargetWorkTotalExpenseBillable>decimal</TargetWorkTotalExpenseBillable> <TargetWorkTotalCostBillable>decimal</TargetWorkTotalCostBillable> </wsProject> </CreateOrUpdateProject> </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> <CreateOrUpdateProjectResponse xmlns="http://webservices.projectinsight.net"> <CreateOrUpdateProjectResult> <UpdatedId>guid</UpdatedId> </CreateOrUpdateProjectResult> </CreateOrUpdateProjectResponse> </soap12:Body> </soap12:Envelope>