Not able to send XML in FCF Messaging connector

I'm trying to send XML data to D365 from FCF Messaging connector. However, I get an error saying that value cannot be Null.

 

 

My Connector.cs has this:

[MessagingConnector(Settings.Id, Settings.Name, typeof(Connector), Settings.Version)]

    public class Connector : XmlMessagingConnectorBase

    {

        public Connector() : base(new Guid(Settings.Id), Settings.CompanyName, Settings.HelpUrl) { }

        protected override IDictionary<string, MessageDescription> RegisterEntities()

        {

            return this.Start.RegisterArray<AllOrders, OrderHeader>(order => order.orderHeader);

        }

    }

 

 

while Item.cs has this:

public class OrderHeader

 {

     // public EachOrder[] singleOrder;

     public string OrderNumber { get; set; }

     public string OrderName { get; set; }

 }

 public class AllOrders

 {

     private string OrderId { get; set; }

     public OrderHeader[] orderHeader { get; set; }

 }

 

 

And XML is this:

<?xml version="1.0" encoding="utf-8" ?>

  <AllOrders>

   <OrderHeader>

  <OrderNumber>PD4</OrderNumber>

  <OrderName>Samsung</OrderName>

  </OrderHeader>

 </AllOrders>

 

Not sure what is wrong. I'm required to use XML as per requirements.

Kindly advise! Thanks in advance.

 

 

Login