AnsweredAssumed Answered

Timesheet Write/ADD faillure

Question asked by Esdras on Jan 11, 2017
Latest reply on Jan 12, 2017 by Dave_3.0

Hello guys,

I'm tryng to ADD a new timesheet but not working, sorry I'm new in Clarity XOG. Can somebody tell me what is wrong in my SOAP request ?

 

------------------------------- REQUEST 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:obj="http://www.niku.com/xog/Object">
<soapenv:Header>
<obj:Auth>
<obj:Username>athomID</obj:Username>
<obj:Password>athomPass</obj:Password>
</obj:Auth>
</soapenv:Header>
<soapenv:Body>
<obj:WriteTimeperiod>
<NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_timeperiod.xsd">
<Header version="6.0.11" action="write" objectType="timeperiod" externalSource="NIKU"/>
<TimePeriods>
<TimePeriod finish="2017-01-16T00:00:00" start="2017-01-09T00:00:00"/>
<TimeSheets>
<TimeSheet ID="-1" resourceID="athom" action="add" status="1" version="1">
<TimeSheetEntries>
<TimeSheetEntry assignmentID="5212003" internalTaskID="5126001" projectID="PRJ_ID" >
<DailyActuals>
<Actual actualDate="2017-01-09" amount="8"/>
<Actual actualDate="2017-01-10" amount="8"/>
<Actual actualDate="2017-01-11" amount="8"/>
<Actual actualDate="2017-01-12" amount="8"/>
<Actual actualDate="2017-01-13" amount="8"/>
<Actual actualDate="2017-01-14" amount="0"/>
<Actual actualDate="2017-01-15" amount="0"/>
</DailyActuals>
</TimeSheetEntry>
</TimeSheetEntries>
</TimeSheet>
</TimeSheets>
</TimePeriod>
</TimePeriods>
</NikuDataBus>
</obj:WriteTimeperiod>
</soapenv:Body>
</soapenv:Envelope>

 

--------------------------------- RESPONSE 

HTTP/1.1 403 Forbidden
Content-Type: text/html;charset=utf-8
Content-Length: 114
Date: Wed, 11 Jan 2017 14:23:03 GMT
Server: CA PPM

<html><head><script>location.replace("/niku/app?action=union.externalError&c3RhdHVz=NDAz");</script></head></html>

 

Thanks

Outcomes