Coder Social home page Coder Social logo

Comments (9)

jsgoupil avatar jsgoupil commented on July 19, 2024 1

There is a problem with .NET Core 2.2
We will have to fix this.

from quickbooks-sync.

jsgoupil avatar jsgoupil commented on July 19, 2024

My latest commit lost the order of things. Let me see what I can do.

from quickbooks-sync.

jsgoupil avatar jsgoupil commented on July 19, 2024

Can you paste your code showing me how you make your request please?

from quickbooks-sync.

hhuutan avatar hhuutan commented on July 19, 2024

My temporary solution is using [XmlElementAttribute(Order = ... )] above each public property in Objects class and it works well.
My code example:

/// <remarks/>
        [XmlElementAttribute(Order = 1)]
        public CustomerRef CustomerRef
        {
            get
            {
                return this.customerRefField;
            }
            set
            {
                this.customerRefField = value;
            }
        }

        /// <remarks/>
        [XmlElementAttribute(Order = 2)]
        public ClassRef ClassRef
        {
            get
            {
                return this.classRefField;
            }
            set
            {
                this.classRefField = value;
            }
        }

        /// <remarks/>
        [XmlElementAttribute(Order = 3)]
        public TemplateRef TemplateRef
        {
            get
            {
                return this.templateRefField;
            }
            set
            {
                this.templateRefField = value;
            }
        }

        /// <remarks/>
        [XmlElementAttribute(Order = 4)]
        public DATETYPE TxnDate
        {
            get
            {
                return this.txnDateField;
            }
            set
            {
                this.txnDateField = value;
            }
        }

        /// <remarks/>
        [XmlElementAttribute(Order = 5)]
        [System.ComponentModel.DataAnnotations.StringLength(11)]
        public string RefNumber
        {
            get
            {
                return this.refNumberField;
            }
            set
            {
                string temp = QbNormalizer.NormalizeString(value, 11);
                this.refNumberField = temp;
            }
        }

        /// <remarks/>
        [XmlElementAttribute(Order = 6)]
        public BillAddress BillAddress
        {
            get
            {
                return this.billAddressField;
            }
            set
            {
                this.billAddressField = value;
            }
        }

        /// <remarks/>
        [XmlElementAttribute(Order = 7)]
        public ShipAddress ShipAddress
        {
            get
            {
                return this.shipAddressField;
            }
            set
            {
                this.shipAddressField = value;
            }
        }

from quickbooks-sync.

jsgoupil avatar jsgoupil commented on July 19, 2024

Can you please provide the code you use to make the request. The framework you use as well?

from quickbooks-sync.

jsgoupil avatar jsgoupil commented on July 19, 2024

I cannot repro the problem, so I need the code you used to make the problem happen. Not the solution.

from quickbooks-sync.

jsgoupil avatar jsgoupil commented on July 19, 2024

And tell me which framework you are using please...

from quickbooks-sync.

hhuutan avatar hhuutan commented on July 19, 2024

I'm using .net core 2.2 in my web project

from quickbooks-sync.

hhuutan avatar hhuutan commented on July 19, 2024

Hey, my lastest test in your sample was passed but in my project with .net core 2.2 was failed. This is probably the main reason. So sorry

from quickbooks-sync.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.