【问题标题】:Workday Human Resources API - Invalid request service versionWorkday Human Resources API - 请求服务版本无效
【发布时间】:2019-10-07 03:42:16
【问题描述】:

我正在尝试向 Get_Employee 端点发出示例 GET 请求,但我收到“请求服务版本无效”错误。

我按照 WorkDay 提供的教程进行操作,但仍然无法正常工作:https://community.workday.com/articles/6120?page=1

这是我要命中的端点:https://services1.myworkday.com/ccx/service/MYTENANTNAME/Human_Resources/v32.1

我希望收到 XML 有效负载,但收到以下错误

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Body>
      <SOAP-ENV:Fault xmlns:wd="urn:com.workday/bsvc">
         <faultcode>SOAP-ENV:Client.validationError</faultcode>
         <faultstring>Invalid request service version</faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

【问题讨论】:

    标签: soap workday-api


    【解决方案1】:

    确保您在soapenv:Body 内的第一个节点中指定的版本引用了您提交请求的版本。在下面的示例中,您将在下面的 bsvc:Get_Change_Work_Contact_Information_Request 节点中将其视为一个属性:

       <soapenv:Header>
          <bsvc:Workday_Common_Header>
             <bsvc:Include_Reference_Descriptors_In_Response>false</bsvc:Include_Reference_Descriptors_In_Response>
          </bsvc:Workday_Common_Header>
       </soapenv:Header>
       <soapenv:Body>
          <bsvc:Get_Change_Work_Contact_Information_Request bsvc:version="v31.2">
             <bsvc:Request_References>
                <bsvc:Person_Reference>
                   <bsvc:ID bsvc:type="Employee_ID">139420</bsvc:ID>
                </bsvc:Person_Reference>
             </bsvc:Request_References>
          </bsvc:Get_Change_Work_Contact_Information_Request>
       </soapenv:Body>
    </soapenv:Envelope>
    

    【讨论】:

    • 感谢您的回复,我肯定错过了这个......我现在遇到身份验证错误,您用于登录 Workday 社区的凭据将与您用于制作这些 API 的凭据相同通话正确吗?当我可以让它完全工作时,我会接受这个作为正确答案....
    • @GeorgeWright 太棒了!我很高兴就是这样。至于您的身份验证问题,请确保您使用的是 username@tenantname 而不仅仅是您的用户名。
    • 凭据与您的社区登录名不同。它是在 Workday 中设置的 Workday 帐户和密码,与您设置的 SSO 密码不同。
    猜你喜欢
    • 2017-05-03
    • 1970-01-01
    • 2019-03-08
    • 2015-05-22
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-02-24
    • 1970-01-01
    相关资源
    最近更新 更多