通过SOAP集成到Workday自定义列表对象

时间:2018-05-02 16:35:47

标签: api soap integration workday-api

在SOAP中运行构建到工作日自定义对象的问题。尝试了几种不同的方式,但我的信息仍然失败。任何帮助将不胜感激:

  <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bsvc="urn:com.workday/bsvc" xmlns:cus="urn:com.workday/tenants/{tenant}/data/custom"> 
  <soapenv:Header/>
  <soapenv:Body>
     <bsvc:Edit_Worker_Additional_Data_Request>
        <bsvc:Business_Process_Parameters>
           <bsvc:Auto_Complete>1</bsvc:Auto_Complete>
           <bsvc:Run_Now>1</bsvc:Run_Now>
        </bsvc:Business_Process_Parameters>
        <bsvc:Worker_Custom_Object_Data>
           <bsvc:Effective_Date>2018-05-04</bsvc:Effective_Date>
           <bsvc:Worker_Reference>
              <bsvc:ID bsvc:type="Employee_ID">XXXX</bsvc:ID>
           </bsvc:Worker_Reference>
           <bsvc:Business_Object_Additional_Data>
           <cus:additionalTerminationDetails>
           <!-- Here's the List Object that fails --> 
           <cus:nextSteps>
              <cus:nextSteps>
                  <cus:id cus:type"alias">XXX</cus:id>
              </cus:nextSteps>
           </cus:nextSteps>
           <!-- These work -->
                 <cus:nextEmployerIfKnown>XXXX</cus:nextEmployerIfKnown>
                 <cus:nextRoleIfKnown>Tester</cus:nextRoleIfKnown>
                 <cus:cobraStartDate>2018-MM-DD</cus:cobraStartDate>
                 <cus:cobraEndDate>2018-MM-DD</cus:cobraEndDate>
              </cus:additionalTerminationDetails>
           </bsvc:Business_Object_Additional_Data>
        </bsvc:Worker_Custom_Object_Data>
     </bsvc:Edit_Worker_Additional_Data_Request>
  </soapenv:Body>

编辑:必须改变自定义列表调用才能获得正确的元素。

1 个答案:

答案 0 :(得分:0)

SOAP响应中有什么?工作日通常非常适合为您提供错误反馈。此外,如果您转到Workday社区并查看Web Services API,通常可以将错误与“验证”#34;失败的XML元素的注释。