title: error generating the XML document - Workday WebAPI
body: <p>When calling a <a href="https://community.workday.com/sites/default/files/file-hosting/productionapi/Payroll/v29.2/Assign_Costing_Allocation.html" rel="nofollow noreferrer">Workday API Assign_Costing_Allocation</a> there is suddenly an XML generation error: </p>
  
  <pre><code>System.ServiceModel.CommunicationException
    HResult=0x80131501
    Message=There was an error in serializing body of message Assign_Costing_AllocationInput: 'There was an error generating the XML document.'.  Please see InnerException for more details.
    Source=mscorlib
    StackTrace:
     at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
     at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData&amp; msgData, Int32 type)
     at PostBudget.PayrollService.PayrollPort.Assign_Costing_Allocation(Assign_Costing_AllocationInput request)
  ...
  Inner Exception 1:
  InvalidOperationException: There was an error generating the XML document.
  
  Inner Exception 2:
  InvalidOperationException: The type PostBudget.PayrollService.Tenanted_Payroll_WorktagObjectIDType was not expected. Use the XmlInclude or SoapInclude attribute to specify types that are not known statically.
  </code></pre>
  
  <p>PostBudget.PayrollService.Tenanted_Payroll_WorktagObjectIDType is supplied in References.cs, auto-generated and has the serialization tags: </p>
  
  <pre><code>    /// &lt;remarks/&gt;
      [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.2612.0")]
      [System.SerializableAttribute()]
      [System.Diagnostics.DebuggerStepThroughAttribute()]
      [System.ComponentModel.DesignerCategoryAttribute("code")]
  [System.Xml.Serialization.XmlTypeAttribute(Namespace="urn:com.workday/bsvc")]
  public partial class Tenanted_Payroll_WorktagObjectIDType : object, System.ComponentModel.INotifyPropertyChanged { ... }
  </code></pre>
  
  <p>How to debug this? What can I do to make this work? </p>