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

x3naxklr  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(169)

我们在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

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:bsvc="urn:com.workday/bsvc">
   <soapenv:Header>
      <bsvc:Workday_Common_Header>
         <!--Optional:-->
         <bsvc:Include_Reference_Descriptors_In_Response>?</bsvc:Include_Reference_Descriptors_In_Response>
      </bsvc:Workday_Common_Header>
   </soapenv:Header>
   <soapenv:Body>
      <bsvc:Change_Other_IDs_Request bsvc:version="?">
         <!--Optional:-->
         <bsvc:Business_Process_Parameters>
            <!--Optional:-->
            <bsvc:Auto_Complete>?</bsvc:Auto_Complete>
            <!--Optional:-->
            <bsvc:Run_Now>?</bsvc:Run_Now>
            <!--Optional:-->
            <bsvc:Comment_Data>
               <!--Optional:-->
               <bsvc:Comment>?</bsvc:Comment>
               <!--Optional:-->
               <bsvc:Worker_Reference bsvc:Descriptor="?">
                  <!--Zero or more repetitions:-->
                  <bsvc:ID bsvc:type="?">?</bsvc:ID>
               </bsvc:Worker_Reference>
            </bsvc:Comment_Data>
            <!--Zero or more repetitions:-->
            <bsvc:Business_Process_Attachment_Data>
               <bsvc:File_Name>?</bsvc:File_Name>
               <!--Optional:-->
               <bsvc:Event_Attachment_Description>?</bsvc:Event_Attachment_Description>
               <!--Optional:-->
               <bsvc:Event_Attachment_Category_Reference bsvc:Descriptor="?">
                  <!--Zero or more repetitions:-->
                  <bsvc:ID bsvc:type="?">?</bsvc:ID>
               </bsvc:Event_Attachment_Category_Reference>
               <!--Optional:-->
               <bsvc:File>cid:1330440114922</bsvc:File>
               <!--Optional:-->
               <bsvc:Content_Type>?</bsvc:Content_Type>
            </bsvc:Business_Process_Attachment_Data>
         </bsvc:Business_Process_Parameters>
         <bsvc:Change_Other_IDs_Data>
            <!--Optional:-->
            <bsvc:Person_Reference bsvc:Descriptor="?">
               <!--Zero or more repetitions:-->
               <bsvc:ID bsvc:type="?">?</bsvc:ID>
            </bsvc:Person_Reference>
            <!--Optional:-->
            <bsvc:Universal_ID_Reference bsvc:Descriptor="?">
               <!--Zero or more repetitions:-->
               <bsvc:ID bsvc:type="?">?</bsvc:ID>
            </bsvc:Universal_ID_Reference>
            <bsvc:Custom_Identification_Data bsvc:Replace_All="?">
               <!--Zero or more repetitions:-->
               <bsvc:Custom_ID bsvc:Delete="?">
                  <!--Optional:-->
                  <bsvc:Custom_ID_Reference bsvc:Descriptor="?">
                     <!--Zero or more repetitions:-->
                     <bsvc:ID bsvc:type="?">?</bsvc:ID>
                  </bsvc:Custom_ID_Reference>
                  <!--Optional:-->
                  <bsvc:Custom_ID_Data>
                     <!--Optional:-->
                     <bsvc:ID>?</bsvc:ID>
                     <!--Optional:-->
                     <bsvc:ID_Type_Reference bsvc:Descriptor="?">
                        <!--Zero or more repetitions:-->
                        <bsvc:ID bsvc:type="?">?</bsvc:ID>
                     </bsvc:ID_Type_Reference>
                     <!--Optional:-->
                     <bsvc:Issued_Date>?</bsvc:Issued_Date>
                     <!--Optional:-->
                     <bsvc:Expiration_Date>?</bsvc:Expiration_Date>
                     <!--Optional:-->
                     <bsvc:Organization_ID_Reference bsvc:Descriptor="?">
                        <!--Zero or more repetitions:-->
                        <bsvc:ID bsvc:type="?">?</bsvc:ID>
                     </bsvc:Organization_ID_Reference>
                     <!--Optional:-->
                     <bsvc:Custom_Description>?</bsvc:Custom_Description>
                  </bsvc:Custom_ID_Data>
                  <!--Optional:-->
                  <bsvc:Custom_ID_Shared_Reference bsvc:Descriptor="?">
                     <!--Zero or more repetitions:-->
                     <bsvc:ID bsvc:type="?">?</bsvc:ID>
                  </bsvc:Custom_ID_Shared_Reference>
               </bsvc:Custom_ID>
            </bsvc:Custom_Identification_Data>
         </bsvc:Change_Other_IDs_Data>
      </bsvc:Change_Other_IDs_Request>
   </soapenv:Body>
</soapenv:Envelope>

相关问题