WorkShiftService


Click here for a complete list of operations.

ImportRequirement

Save a shift in TimeCare and return log

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 /TimeCareApi/workshiftservice.asmx HTTP/1.1
Host: timecarekoping.vmkfb.se
Content-Type: text/xml; charset=utf-8
Content-Length: length
SOAPAction: "http://www.timecare.se/ImportRequirement"

<?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>
    <ImportRequirement xmlns="http://www.timecare.se/">
      <intIntegrationId>int</intIntegrationId>
      <reqId>string</reqId>
      <workShifts>
        <WorkShift>
          <UpdateDate>dateTime</UpdateDate>
          <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
          <UpdateUser>string</UpdateUser>
          <UpdatePerId>int</UpdatePerId>
          <Id>int</Id>
          <PersonId>int</PersonId>
          <VacationFactory>double</VacationFactory>
          <Person>
            <UpdateDate>dateTime</UpdateDate>
            <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
            <Id>int</Id>
            <Name>string</Name>
            <Gender>string</Gender>
            <BirthDate>dateTime</BirthDate>
            <Age>int</Age>
            <RoleID>int</RoleID>
            <ParentWorkPlaceId>int</ParentWorkPlaceId>
            <LanguageID>int</LanguageID>
            <Language xsi:nil="true" />
            <ArrayOfPerIntSettings xsi:nil="true" />
            <ArrayOfEmployment xsi:nil="true" />
            <ArrayOfRuleContract xsi:nil="true" />
            <ArrayOfSkill xsi:nil="true" />
            <ArrayOfWorkLimit xsi:nil="true" />
            <ArrayOfPersonBonusContract xsi:nil="true" />
            <ArrayOfActivity xsi:nil="true" />
            <EmploymentNumber>string</EmploymentNumber>
            <CivicRegistrationNumber>string</CivicRegistrationNumber>
            <UserName>string</UserName>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <ShortName>string</ShortName>
            <Address>string</Address>
            <ZipCode>string</ZipCode>
            <City>string</City>
            <TelephoneNumber>string</TelephoneNumber>
            <CellPhoneNumber>string</CellPhoneNumber>
            <Email>string</Email>
            <UseWorkLimit>boolean</UseWorkLimit>
            <TimeBank>double</TimeBank>
            <Points>double</Points>
            <Comment>string</Comment>
            <HasComments>boolean</HasComments>
            <HeaderComment>string</HeaderComment>
            <ShowHeaderComment>boolean</ShowHeaderComment>
            <ExternalPersonId>string</ExternalPersonId>
            <IsExportable>boolean</IsExportable>
            <Reference>string</Reference>
            <CostPlace>string</CostPlace>
          </Person>
          <ExternalShiftId>string</ExternalShiftId>
          <IsParent>boolean</IsParent>
          <StartDateTime>dateTime</StartDateTime>
          <EndDateTime>dateTime</EndDateTime>
          <Day>dateTime</Day>
          <Length>double</Length>
          <CalculatedBreak>double</CalculatedBreak>
          <Activity>
            <UpdateDate>dateTime</UpdateDate>
            <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
            <Id>int</Id>
            <Name>string</Name>
            <PrioNo>int</PrioNo>
            <ShortName>string</ShortName>
            <Symbol>string</Symbol>
            <TimeMethod>CalculatedTime or ManuelTime or WeeklyWorkTime or FullTimeHour or FixedTime or BasedOnPreviousMonths</TimeMethod>
            <GotTimes>boolean</GotTimes>
            <UseTimeRules>boolean</UseTimeRules>
            <NegativeDayBalance>boolean</NegativeDayBalance>
            <MultiplyTimeWith>double</MultiplyTimeWith>
            <FixedLenShift>boolean</FixedLenShift>
            <UseDefSched>boolean</UseDefSched>
            <Usable>boolean</Usable>
            <IsWork>boolean</IsWork>
            <IsStaffing>boolean</IsStaffing>
            <IsPresence>boolean</IsPresence>
            <BalanceType>actNone or actWorkTime or actStaffing or actLeaveTime or actVacationTime or actVetoTime or actIsBreak or actAlertTime or actWatchTime or actIllnessTime or actOtherAbsenceTime or actOverTime or actPlusTime or actEducationLeaveTime or actNothing or actCircomstanceLeaveTime or actLegalVacationTime or actPublicVacationTime or actWorkingReductionTime or actAgeVacationTime or actLeaveSeniorityTime or actCompanyVacationTime or actMaternityLeaveTime or actParentalLeaveTime or actSeniorTime or actCareTime or actAll</BalanceType>
            <BalanceDayType>actNone or actWorkDay or actVacationDay or actLeaveDay or actVetoDay or actWatchDay or actAlertDay or actIllnessDay or actOtherAbsenceDay or actNothing or actLegalVacationDay or actPublicVacationDay or actWorkingTimeReductionDay or actSeniorDay or actCareDay</BalanceDayType>
            <WholeDay>boolean</WholeDay>
            <UseInSchedType>ReqShift or PrelShift or FinalSched or DefShift or ActiveShift or NoShift or All</UseInSchedType>
            <CombinedWith xsi:nil="true" />
            <TimeDefSched>boolean</TimeDefSched>
            <IsBreak>boolean</IsBreak>
            <ArrayOfRuleContract xsi:nil="true" />
            <ArrayOfSkill xsi:nil="true" />
            <ArrayOfDayTypeUsable xsi:nil="true" />
            <ArrayOfDayTypeCalc xsi:nil="true" />
            <ExternalActivityId>string</ExternalActivityId>
            <IsExportable>boolean</IsExportable>
            <Type>string</Type>
            <Reference>string</Reference>
            <CostPlace>string</CostPlace>
          </Activity>
          <ActivityId>int</ActivityId>
          <WorkPlace>
            <Id>int</Id>
            <Name>string</Name>
            <ShortName>string</ShortName>
            <IsParent>boolean</IsParent>
            <UnitParentWorkPlaceId>int</UnitParentWorkPlaceId>
            <TCSchedulerActId>int</TCSchedulerActId>
            <Activated>boolean</Activated>
            <ParentWorkPlaceID>int</ParentWorkPlaceID>
            <Level>int</Level>
            <Path>string</Path>
            <NamePath>string</NamePath>
            <ParentNamePath>string</ParentNamePath>
            <ArrayOfDayTypeUseBreak xsi:nil="true" />
            <ParentWorkPlaceName>string</ParentWorkPlaceName>
            <PathName>string</PathName>
            <ContractId>int</ContractId>
            <Contract xsi:nil="true" />
            <ExternalNodeId>string</ExternalNodeId>
            <IsExportable>boolean</IsExportable>
            <Reference>string</Reference>
            <CostPlace>string</CostPlace>
          </WorkPlace>
          <WorkPlaceId>int</WorkPlaceId>
          <ArrayOfChildShift>
            <ChildShift xsi:nil="true" />
            <ChildShift xsi:nil="true" />
          </ArrayOfChildShift>
          <ArrayOfWorkBreak>
            <WorkBreak xsi:nil="true" />
            <WorkBreak xsi:nil="true" />
          </ArrayOfWorkBreak>
          <Comment>string</Comment>
          <IsBorrowed>boolean</IsBorrowed>
          <EmploymentId>int</EmploymentId>
          <ExternalEmploymentId>string</ExternalEmploymentId>
        </WorkShift>
        <WorkShift>
          <UpdateDate>dateTime</UpdateDate>
          <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
          <UpdateUser>string</UpdateUser>
          <UpdatePerId>int</UpdatePerId>
          <Id>int</Id>
          <PersonId>int</PersonId>
          <VacationFactory>double</VacationFactory>
          <Person>
            <UpdateDate>dateTime</UpdateDate>
            <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
            <Id>int</Id>
            <Name>string</Name>
            <Gender>string</Gender>
            <BirthDate>dateTime</BirthDate>
            <Age>int</Age>
            <RoleID>int</RoleID>
            <ParentWorkPlaceId>int</ParentWorkPlaceId>
            <LanguageID>int</LanguageID>
            <Language xsi:nil="true" />
            <ArrayOfPerIntSettings xsi:nil="true" />
            <ArrayOfEmployment xsi:nil="true" />
            <ArrayOfRuleContract xsi:nil="true" />
            <ArrayOfSkill xsi:nil="true" />
            <ArrayOfWorkLimit xsi:nil="true" />
            <ArrayOfPersonBonusContract xsi:nil="true" />
            <ArrayOfActivity xsi:nil="true" />
            <EmploymentNumber>string</EmploymentNumber>
            <CivicRegistrationNumber>string</CivicRegistrationNumber>
            <UserName>string</UserName>
            <FirstName>string</FirstName>
            <LastName>string</LastName>
            <ShortName>string</ShortName>
            <Address>string</Address>
            <ZipCode>string</ZipCode>
            <City>string</City>
            <TelephoneNumber>string</TelephoneNumber>
            <CellPhoneNumber>string</CellPhoneNumber>
            <Email>string</Email>
            <UseWorkLimit>boolean</UseWorkLimit>
            <TimeBank>double</TimeBank>
            <Points>double</Points>
            <Comment>string</Comment>
            <HasComments>boolean</HasComments>
            <HeaderComment>string</HeaderComment>
            <ShowHeaderComment>boolean</ShowHeaderComment>
            <ExternalPersonId>string</ExternalPersonId>
            <IsExportable>boolean</IsExportable>
            <Reference>string</Reference>
            <CostPlace>string</CostPlace>
          </Person>
          <ExternalShiftId>string</ExternalShiftId>
          <IsParent>boolean</IsParent>
          <StartDateTime>dateTime</StartDateTime>
          <EndDateTime>dateTime</EndDateTime>
          <Day>dateTime</Day>
          <Length>double</Length>
          <CalculatedBreak>double</CalculatedBreak>
          <Activity>
            <UpdateDate>dateTime</UpdateDate>
            <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
            <Id>int</Id>
            <Name>string</Name>
            <PrioNo>int</PrioNo>
            <ShortName>string</ShortName>
            <Symbol>string</Symbol>
            <TimeMethod>CalculatedTime or ManuelTime or WeeklyWorkTime or FullTimeHour or FixedTime or BasedOnPreviousMonths</TimeMethod>
            <GotTimes>boolean</GotTimes>
            <UseTimeRules>boolean</UseTimeRules>
            <NegativeDayBalance>boolean</NegativeDayBalance>
            <MultiplyTimeWith>double</MultiplyTimeWith>
            <FixedLenShift>boolean</FixedLenShift>
            <UseDefSched>boolean</UseDefSched>
            <Usable>boolean</Usable>
            <IsWork>boolean</IsWork>
            <IsStaffing>boolean</IsStaffing>
            <IsPresence>boolean</IsPresence>
            <BalanceType>actNone or actWorkTime or actStaffing or actLeaveTime or actVacationTime or actVetoTime or actIsBreak or actAlertTime or actWatchTime or actIllnessTime or actOtherAbsenceTime or actOverTime or actPlusTime or actEducationLeaveTime or actNothing or actCircomstanceLeaveTime or actLegalVacationTime or actPublicVacationTime or actWorkingReductionTime or actAgeVacationTime or actLeaveSeniorityTime or actCompanyVacationTime or actMaternityLeaveTime or actParentalLeaveTime or actSeniorTime or actCareTime or actAll</BalanceType>
            <BalanceDayType>actNone or actWorkDay or actVacationDay or actLeaveDay or actVetoDay or actWatchDay or actAlertDay or actIllnessDay or actOtherAbsenceDay or actNothing or actLegalVacationDay or actPublicVacationDay or actWorkingTimeReductionDay or actSeniorDay or actCareDay</BalanceDayType>
            <WholeDay>boolean</WholeDay>
            <UseInSchedType>ReqShift or PrelShift or FinalSched or DefShift or ActiveShift or NoShift or All</UseInSchedType>
            <CombinedWith xsi:nil="true" />
            <TimeDefSched>boolean</TimeDefSched>
            <IsBreak>boolean</IsBreak>
            <ArrayOfRuleContract xsi:nil="true" />
            <ArrayOfSkill xsi:nil="true" />
            <ArrayOfDayTypeUsable xsi:nil="true" />
            <ArrayOfDayTypeCalc xsi:nil="true" />
            <ExternalActivityId>string</ExternalActivityId>
            <IsExportable>boolean</IsExportable>
            <Type>string</Type>
            <Reference>string</Reference>
            <CostPlace>string</CostPlace>
          </Activity>
          <ActivityId>int</ActivityId>
          <WorkPlace>
            <Id>int</Id>
            <Name>string</Name>
            <ShortName>string</ShortName>
            <IsParent>boolean</IsParent>
            <UnitParentWorkPlaceId>int</UnitParentWorkPlaceId>
            <TCSchedulerActId>int</TCSchedulerActId>
            <Activated>boolean</Activated>
            <ParentWorkPlaceID>int</ParentWorkPlaceID>
            <Level>int</Level>
            <Path>string</Path>
            <NamePath>string</NamePath>
            <ParentNamePath>string</ParentNamePath>
            <ArrayOfDayTypeUseBreak xsi:nil="true" />
            <ParentWorkPlaceName>string</ParentWorkPlaceName>
            <PathName>string</PathName>
            <ContractId>int</ContractId>
            <Contract xsi:nil="true" />
            <ExternalNodeId>string</ExternalNodeId>
            <IsExportable>boolean</IsExportable>
            <Reference>string</Reference>
            <CostPlace>string</CostPlace>
          </WorkPlace>
          <WorkPlaceId>int</WorkPlaceId>
          <ArrayOfChildShift>
            <ChildShift xsi:nil="true" />
            <ChildShift xsi:nil="true" />
          </ArrayOfChildShift>
          <ArrayOfWorkBreak>
            <WorkBreak xsi:nil="true" />
            <WorkBreak xsi:nil="true" />
          </ArrayOfWorkBreak>
          <Comment>string</Comment>
          <IsBorrowed>boolean</IsBorrowed>
          <EmploymentId>int</EmploymentId>
          <ExternalEmploymentId>string</ExternalEmploymentId>
        </WorkShift>
      </workShifts>
    </ImportRequirement>
  </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>
    <ImportRequirementResponse xmlns="http://www.timecare.se/">
      <ImportRequirementResult>
        <ShiftImportResultDetail>
          <ResultCode>UnknownError or EmploymentMissingOrPersonInvisible or ScheduleNotInDefSched or PersonDoesNotHaveActivity or OverlappingShifts or WorkplaceDoesNotExist or ActivityDoesNotExist or FailedToCalculateBalance</ResultCode>
          <Message>string</Message>
          <WorkShift>
            <UpdateDate>dateTime</UpdateDate>
            <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
            <UpdateUser>string</UpdateUser>
            <UpdatePerId>int</UpdatePerId>
            <Id>int</Id>
            <PersonId>int</PersonId>
            <VacationFactory>double</VacationFactory>
            <Person xsi:nil="true" />
            <ExternalShiftId>string</ExternalShiftId>
            <IsParent>boolean</IsParent>
            <StartDateTime>dateTime</StartDateTime>
            <EndDateTime>dateTime</EndDateTime>
            <Day>dateTime</Day>
            <Length>double</Length>
            <CalculatedBreak>double</CalculatedBreak>
            <Activity xsi:nil="true" />
            <ActivityId>int</ActivityId>
            <WorkPlace xsi:nil="true" />
            <WorkPlaceId>int</WorkPlaceId>
            <ArrayOfChildShift xsi:nil="true" />
            <ArrayOfWorkBreak xsi:nil="true" />
            <Comment>string</Comment>
            <IsBorrowed>boolean</IsBorrowed>
            <EmploymentId>int</EmploymentId>
            <ExternalEmploymentId>string</ExternalEmploymentId>
          </WorkShift>
        </ShiftImportResultDetail>
        <ShiftImportResultDetail>
          <ResultCode>UnknownError or EmploymentMissingOrPersonInvisible or ScheduleNotInDefSched or PersonDoesNotHaveActivity or OverlappingShifts or WorkplaceDoesNotExist or ActivityDoesNotExist or FailedToCalculateBalance</ResultCode>
          <Message>string</Message>
          <WorkShift>
            <UpdateDate>dateTime</UpdateDate>
            <UpdateTypeFlag>Inserted or Updated or Deleted or Unknown or All</UpdateTypeFlag>
            <UpdateUser>string</UpdateUser>
            <UpdatePerId>int</UpdatePerId>
            <Id>int</Id>
            <PersonId>int</PersonId>
            <VacationFactory>double</VacationFactory>
            <Person xsi:nil="true" />
            <ExternalShiftId>string</ExternalShiftId>
            <IsParent>boolean</IsParent>
            <StartDateTime>dateTime</StartDateTime>
            <EndDateTime>dateTime</EndDateTime>
            <Day>dateTime</Day>
            <Length>double</Length>
            <CalculatedBreak>double</CalculatedBreak>
            <Activity xsi:nil="true" />
            <ActivityId>int</ActivityId>
            <WorkPlace xsi:nil="true" />
            <WorkPlaceId>int</WorkPlaceId>
            <ArrayOfChildShift xsi:nil="true" />
            <ArrayOfWorkBreak xsi:nil="true" />
            <Comment>string</Comment>
            <IsBorrowed>boolean</IsBorrowed>
            <EmploymentId>int</EmploymentId>
            <ExternalEmploymentId>string</ExternalEmploymentId>
          </WorkShift>
        </ShiftImportResultDetail>
      </ImportRequirementResult>
    </ImportRequirementResponse>
  </soap:Body>
</soap:Envelope>