gpt4 book ai didi

c# - WorkDay 人力资源 API 集成

转载 作者:行者123 更新时间:2023-12-02 03:33:39 26 4
gpt4 key购买 nike

我已经使用 asp.net C# 成功集成了 Human_Resources 和 Financial_Management。因此,我将我遇到的所有问题和我在网上找到的有用资源放在一起:

WorkDay 文档可在以下位置获取: https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html

要开始使用,请阅读此处 http://hr.dovetailsoftware.com/gcox/2014/06/13/getting-started-workday-web-services-using-c/请务必遵循本文中的一些清理提示。

如果您在向 WD 提交数据时遇到相同的错误

Error

There was an error in serializing one of the headers in message Get_ProjectsInput: ‘Unable to generate a temporary class (result=1).
error CS0030: Cannot convert type ‘ConsoleApplication1.WkDay.Rm.Asset_Book_Rule_Request_CriteriaType’ to ‘ConsoleApplication1.WkDay.Rm.Asset_Book_Rule_Request_ReferencesType’
error CS0030: Cannot convert type ‘ConsoleApplication1.WkDay.Rm.Asset_Shares_Request_CriteriaType’ to ‘ConsoleApplication1.WkDay.Rm.Asset_Shares_Request_ReferenceType’
error CS0029: Cannot implicitly convert type ‘ConsoleApplication1.WkDay.Rm.Asset_Book_Rule_Request_ReferencesType’ to ‘ConsoleApplication1.WkDay.Rm.Asset_Book_Rule_Request_CriteriaType’
error CS0029: Cannot implicitly convert type ‘ConsoleApplication1.WkDay.Rm.Asset_Shares_Request_ReferenceType’ to ‘ConsoleApplication1.WkDay.Rm.Asset_Shares_Request_CriteriaType’
‘. Please see InnerException for more details.

最佳答案

注释掉

[System.Xml.Serialization.XmlElementAttribute("Request_References", typeof(), Order=0)]

/// <remarks/>
[System.Xml.Serialization.XmlElementAttribute("Request_Criteria", typeof(Asset_Book_Rule_Request_CriteriaType), Order=Asset_Book_Rule_Request_ReferencesType0)]
//anr [System.Xml.Serialization.XmlElementAttribute("Request_References", typeof(), Order=0)]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
public Asset_Book_Rule_Request_CriteriaType Item
{
get
{
return this.itemField;
}
set
{
this.itemField = value;
}
}

关于c# - WorkDay 人力资源 API 集成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51074390/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com