PHP SubmitFeed XML is "Ill-Formed"


#1

" The XML you submitted is ill-formed at the Amazon Envelope XML level at (or near) line 1, column 1."

I’m not sure what’s wrong with my XML. I’ve tested it against (as best I could anyway) the most recent XDS and don’t see an issue.

Using the most recent PHP client and followed the example to a T.

<?xml version=“1.0” encoding=“UTF-8”?>

<AmazonEnvelope xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:noNamespaceSchemaLocation=“amzn-envelope.xsd”>

    <Header>

        <DocumentVersion>1.02</DocumentVersion>

        <MerchantIdentifier>APVG40EWSXM4Q</MerchantIdentifier>

    </Header>

    <MessageType>OrderFulfillment</MessageType>

    <Message>

        <MessageID>1</MessageID>

        <OperationType>Update</OperationType>

        <OrderFulfillment>

            <AmazonOrderID>111-5794441-7412240</AmazonOrderID>

            <FulfillmentDate>2020-06-04T18:01:37</FulfillmentDate>

            <FulfillmentData>

                <CarrierName>USPS</CarrierName>

                <ShippingMethod>Priority Mail</ShippingMethod>

                <ShipperTrackingNumber>9405511899563461743905</ShipperTrackingNumber>

            </FulfillmentData>

        </OrderFulfillment>

    </Message>

    <Message>

        <MessageID>2</MessageID>

        <OperationType>Update</OperationType>

        <OrderFulfillment>

            <AmazonOrderID>112-4708374-4801064</AmazonOrderID>

            <FulfillmentDate>2020-06-04T18:01:37</FulfillmentDate>

            <FulfillmentData>

                <CarrierName>USPS</CarrierName>

                <ShippingMethod>Priority Mail</ShippingMethod>

                <ShipperTrackingNumber>9405511899563461270395</ShipperTrackingNumber>

            </FulfillmentData>

        </OrderFulfillment>

    </Message>

</AmazonEnvelope>


#2

You are missing item level information.


#3

I’ve posted a working example a few time. Here’s the latest: XML example


#4

Yes, thank you! That did the trick.