none
Webserivce call to update resource using PSI project server 2013 RRS feed

  • Question

  • I would like a sample xml payload that I can use to call the update resource operation via the webservice api.

    all the attempts that I have mde have not worked.

    Here is one that I have tried

    <soapenv:Envelope xmlns:soapenv=".." xmlns:res="..">

       <soapenv:Header/>

       <soapenv:Body>

          <res:UpdateResources>

             <!--Optional:-->

            <diffgr:diffgram xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">

                   <ResourceDataSet xmlns="..">

                      <Resources diffgr:id="Resources1" msdata:rowOrder="0">

                         <RES_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_UID>

                         <RES_ID>2357</RES_ID>

                         <RES_TYPE>2</RES_TYPE>

                         <RES_HAS_NOTES>false</RES_HAS_NOTES>

                         <RES_CAN_LEVEL>true</RES_CAN_LEVEL>

                         <RES_ACCRUE_AT>3</RES_ACCRUE_AT>

                         <RES_BOOKING_TYPE>0</RES_BOOKING_TYPE>

                         <RES_NAME>Michelle Hipworth</RES_NAME>

                         <RES_INITIALS>M</RES_INITIALS>

                         <RES_IS_WINDOWS_USER>false</RES_IS_WINDOWS_USER>

                         <WRES_EMAIL>..>

                         <RES_CHECKOUTDATE>2013-08-16T14:08:36.17+10:00</RES_CHECKOUTDATE>

                         <RES_TIMESHEET_MGR_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_TIMESHEET_MGR_UID>

                         <RES_DEF_ASSN_OWNER>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_DEF_ASSN_OWNER>

                         <RES_IS_TEAM>false</RES_IS_TEAM>

                         <RES_EXCHANGE_SYNC>false</RES_EXCHANGE_SYNC>

                         <CREATED_DATE>2013-02-04T08:20:03.89+10:00</CREATED_DATE>

                         <MOD_DATE>2013-08-16T14:09:56.337+10:00</MOD_DATE>

                         <RES_STD_RATE_FMT>2</RES_STD_RATE_FMT>

                         <RES_OVT_RATE_FMT>2</RES_OVT_RATE_FMT>

                         <RES_STD_RATE>100.000000</RES_STD_RATE>

                         <RES_OVT_RATE>0.000000</RES_OVT_RATE>

                        <RES_MAX_UNITS>10000.000000</RES_MAX_UNITS>

                         <RES_PREVENT_ADSYNC>false</RES_PREVENT_ADSYNC>

                         <RES_COST_PER_USE>0.000000</RES_COST_PER_USE>

                         <BaseCalendarUniqueId>b6635b2e-e747-4771-a78b-24f7509629d0</BaseCalendarUniqueId>

                      </Resources>

                     

                      <ResourceCustomFields diffgr:id="ResourceCustomFields1" msdata:rowOrder="0">

                         <CUSTOM_FIELD_UID>92a842d8-3fa2-4738-9c7b-cf318cff062d</CUSTOM_FIELD_UID>

                         <RES_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_UID>

                         <MD_PROP_UID>000039b7-8bbe-4ceb-82c4-fa8c0c400284</MD_PROP_UID>

                         <MD_PROP_ID>205521540</MD_PROP_ID>

                         <FIELD_TYPE_ENUM>21</FIELD_TYPE_ENUM>

                         <CODE_VALUE>1c217111-4514-47aa-a3ab-061134eb971a</CODE_VALUE>

                      </ResourceCustomFields>

                      <ResourceCustomFields diffgr:id="ResourceCustomFields2" msdata:rowOrder="1">

                         <CUSTOM_FIELD_UID>61498ab3-0b29-4d11-a2e2-6d7112994dc7</CUSTOM_FIELD_UID>

                         <RES_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_UID>

                         <MD_PROP_UID>0000740f-cf67-4b93-a405-f0c12c5bc942</MD_PROP_UID>

                         <MD_PROP_ID>205553664</MD_PROP_ID>

                         <FIELD_TYPE_ENUM>21</FIELD_TYPE_ENUM>

                         <CODE_VALUE>e2ba14c5-68e1-43ce-8feb-0d14640172d3</CODE_VALUE>

                      </ResourceCustomFields>

                      <ResourceCustomFields diffgr:id="ResourceCustomFields3" msdata:rowOrder="2">

                         <CUSTOM_FIELD_UID>221eef26-cc7f-4c37-b552-19bb6a989d12</CUSTOM_FIELD_UID>

                         <RES_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_UID>

                         <MD_PROP_UID>beea69f6-c15b-449f-bb4a-c306fab76e05</MD_PROP_UID>

                         <MD_PROP_ID>205553669</MD_PROP_ID>

                         <TEXT_VALUE>CONT</TEXT_VALUE>

                         <FIELD_TYPE_ENUM>21</FIELD_TYPE_ENUM>

                      </ResourceCustomFields>

                      <ResourceCustomFields diffgr:id="ResourceCustomFields4" msdata:rowOrder="3">

                         <CUSTOM_FIELD_UID>b335f142-028e-4d0f-8d61-1b353120bcdb</CUSTOM_FIELD_UID>

                         <RES_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_UID>

                         <MD_PROP_UID>7fe55f85-b0b9-4f9b-aac0-de4142ed1a21</MD_PROP_UID>

                         <MD_PROP_ID>205553666</MD_PROP_ID>

                         <FIELD_TYPE_ENUM>21</FIELD_TYPE_ENUM>

                         <CODE_VALUE>69006a31-f1b5-4118-9cd1-440c238426cd</CODE_VALUE>

                      </ResourceCustomFields>

                     

                      <ResourceRates diffgr:id="ResourceRates1" msdata:rowOrder="0">

                         <RES_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_UID>

                         <RES_RATE_TABLE>0</RES_RATE_TABLE>

                         <RES_STD_RATE>100</RES_STD_RATE>

                         <RES_OVT_RATE>0</RES_OVT_RATE>

                         <RES_COST_PER_USE>0</RES_COST_PER_USE>

                      </ResourceRates>

                     

                      

                      

                      <ResourceAvailabilities diffgr:id="ResourceAvailabilities1" msdata:rowOrder="0">

                         <RES_UID>b6ee047e-62f8-4dc5-bffc-000185ee549f</RES_UID>

                         <RES_AVAIL_UNITS>100</RES_AVAIL_UNITS>

                      </ResourceAvailabilities>

                     

                   </ResourceDataSet>

                </diffgr:diffgram>

             <res:validateOnly>true</res:validateOnly>

             <res:autoCheckIn>true</res:autoCheckIn>

          </res:UpdateResources>

       </soapenv:Body>

    </soapenv:Envelope>

    Thursday, February 27, 2014 11:10 PM