Web Services 正在尝试更新workday人力资源web服务

x3naxklr  于 2023-10-24  发布在  其他
关注(0)|答案(1)|浏览(256)

我们在prod中运行C#应用程序,它在工作日更新emailemplidother id。需求变化,我们必须修改代码,不更新email,只更新emplidother id。我带回了代码,并对更新email的部分进行了评论。我还更新了Workday人力资源服务版本(40.2)因为我必须在发布之前进行测试。我得到错误:
出现验证错误。Change_Other_ID_Business_Process_Data元素的子元素Worker_Reference-urn:com.workday/bsvc无效。
我不知道这意味着什么。我在网上做了调查,试图找到答案,但无法弄清楚。我是C#和Web服务的新手。任何建议都将受到赞赏。
错误消息:
出现验证错误。Change_Other_ID_Business_Process_Data元素的子元素Worker_Reference-urn:com.workday/bsvc无效。

r1wp621o

r1wp621o1#

检查可选元素和必需元素的列表。
您的工作者引用元素位于请求的错误部分。工作者引用位于注解数据对象下,并被描述为“如果未通过Web服务提交,则将对处理人员进行注解的人员默认为”。您仍然可以向业务流程添加注解,我通常会说类似于“按集成名称更新”的内容。
Person引用对象是您要放置要更新的ID的位置,描述为“通过其活动人员类型之一(如员工、学生、附属机构、外部委员会成员等)对人员ID的引用。ID由类型属性和值属性组成,类型属性应设置为“Employee_ID”、“Contingent_Worker_ID”、“Student_ID”等之一,例如“04345”。
More info about the request, wsdl and xsd are all here

  1. <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bsvc="urn:com.workday/bsvc">
  2. <soapenv:Header>
  3. <bsvc:Workday_Common_Header>
  4. <!--Optional:-->
  5. <bsvc:Include_Reference_Descriptors_In_Response>?</bsvc:Include_Reference_Descriptors_In_Response>
  6. </bsvc:Workday_Common_Header>
  7. </soapenv:Header>
  8. <soapenv:Body>
  9. <bsvc:Change_Other_IDs_Request bsvc:version="?">
  10. <!--Optional:-->
  11. <bsvc:Business_Process_Parameters>
  12. <!--Optional:-->
  13. <bsvc:Auto_Complete>?</bsvc:Auto_Complete>
  14. <!--Optional:-->
  15. <bsvc:Run_Now>?</bsvc:Run_Now>
  16. <!--Optional:-->
  17. <bsvc:Comment_Data>
  18. <!--Optional:-->
  19. <bsvc:Comment>?</bsvc:Comment>
  20. <!--Optional:-->
  21. <bsvc:Worker_Reference bsvc:Descriptor="?">
  22. <!--Zero or more repetitions:-->
  23. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  24. </bsvc:Worker_Reference>
  25. </bsvc:Comment_Data>
  26. <!--Zero or more repetitions:-->
  27. <bsvc:Business_Process_Attachment_Data>
  28. <bsvc:File_Name>?</bsvc:File_Name>
  29. <!--Optional:-->
  30. <bsvc:Event_Attachment_Description>?</bsvc:Event_Attachment_Description>
  31. <!--Optional:-->
  32. <bsvc:Event_Attachment_Category_Reference bsvc:Descriptor="?">
  33. <!--Zero or more repetitions:-->
  34. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  35. </bsvc:Event_Attachment_Category_Reference>
  36. <!--Optional:-->
  37. <bsvc:File>cid:1330440114922</bsvc:File>
  38. <!--Optional:-->
  39. <bsvc:Content_Type>?</bsvc:Content_Type>
  40. </bsvc:Business_Process_Attachment_Data>
  41. </bsvc:Business_Process_Parameters>
  42. <bsvc:Change_Other_IDs_Data>
  43. <!--Optional:-->
  44. <bsvc:Person_Reference bsvc:Descriptor="?">
  45. <!--Zero or more repetitions:-->
  46. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  47. </bsvc:Person_Reference>
  48. <!--Optional:-->
  49. <bsvc:Universal_ID_Reference bsvc:Descriptor="?">
  50. <!--Zero or more repetitions:-->
  51. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  52. </bsvc:Universal_ID_Reference>
  53. <bsvc:Custom_Identification_Data bsvc:Replace_All="?">
  54. <!--Zero or more repetitions:-->
  55. <bsvc:Custom_ID bsvc:Delete="?">
  56. <!--Optional:-->
  57. <bsvc:Custom_ID_Reference bsvc:Descriptor="?">
  58. <!--Zero or more repetitions:-->
  59. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  60. </bsvc:Custom_ID_Reference>
  61. <!--Optional:-->
  62. <bsvc:Custom_ID_Data>
  63. <!--Optional:-->
  64. <bsvc:ID>?</bsvc:ID>
  65. <!--Optional:-->
  66. <bsvc:ID_Type_Reference bsvc:Descriptor="?">
  67. <!--Zero or more repetitions:-->
  68. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  69. </bsvc:ID_Type_Reference>
  70. <!--Optional:-->
  71. <bsvc:Issued_Date>?</bsvc:Issued_Date>
  72. <!--Optional:-->
  73. <bsvc:Expiration_Date>?</bsvc:Expiration_Date>
  74. <!--Optional:-->
  75. <bsvc:Organization_ID_Reference bsvc:Descriptor="?">
  76. <!--Zero or more repetitions:-->
  77. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  78. </bsvc:Organization_ID_Reference>
  79. <!--Optional:-->
  80. <bsvc:Custom_Description>?</bsvc:Custom_Description>
  81. </bsvc:Custom_ID_Data>
  82. <!--Optional:-->
  83. <bsvc:Custom_ID_Shared_Reference bsvc:Descriptor="?">
  84. <!--Zero or more repetitions:-->
  85. <bsvc:ID bsvc:type="?">?</bsvc:ID>
  86. </bsvc:Custom_ID_Shared_Reference>
  87. </bsvc:Custom_ID>
  88. </bsvc:Custom_Identification_Data>
  89. </bsvc:Change_Other_IDs_Data>
  90. </bsvc:Change_Other_IDs_Request>
  91. </soapenv:Body>
  92. </soapenv:Envelope>
展开查看全部

相关问题