Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

WorkDay Human_Resources API Integration

I have successfully integrated both Human_Resources and Financial_Management using asp.net C#. So I'm putting all together all the issues I had experienced and helpful resources I found online:

WorkDay Documentation is available at: https://community.workday.com/sites/default/files/file-hosting/productionapi/index.html

To get started, read here http://hr.dovetailsoftware.com/gcox/2014/06/13/getting-started-workday-web-services-using-c/ make sure to follow some cleanup tips on this article.

If you get the same error while submitting data to 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.
like image 225
Alfred Roa Avatar asked Jun 30 '26 16:06

Alfred Roa


2 Answers

Comment out

[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;
        }
    }
like image 142
Alfred Roa Avatar answered Jul 03 '26 06:07

Alfred Roa


Working with Workday WS v32.1, this is still an issue but the solution applies.

[System.Xml.Serialization.XmlElementAttribute("Request_Criteria", typeof(Asset_Book_Rule_Request_CriteriaType), Order = 0)]
//[System.Xml.Serialization.XmlElementAttribute("Request_References", typeof(Asset_Book_Rule_Request_ReferencesType), Order = 0)]
[System.Xml.Serialization.XmlChoiceIdentifierAttribute("ItemElementName")]
        public Asset_Book_Rule_Request_CriteriaType Item
        {
            get { return this.itemField; }
            set { this.itemField = value; }
        }
like image 34
Gonzo Avatar answered Jul 03 '26 07:07

Gonzo