你能建议是否有错误的xml下面张贴?
错误的细节
我们无法处理XML提要,因为一个或多个条目无效。请重新提交提要
xsd示例的官方链接:https://images-na.ssl-images-amazon.com/images/G/01/rainier/help/xsd/release_4_1/OrderFulfillment.xsd
POST_ORDER_FULFILLMENT_DATA . XML
<?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.01</DocumentVersion>
<MerchantIdentifier>Sample</MerchantIdentifier>
</Header>
<MessageType>OrderFulfillment</MessageType>
<Message>
<MessageID>1</MessageID>
<OrderFulfillment>
<AmazonOrderID>113-sampl-sample</AmazonOrderID>
<FulfillmentData>
<CarrierCode>UPS</CarrierCode>
<CarrierName>UPS</CarrierName>
<ShippingMethod>UPC Ground</ShippingMethod>
<ShipperTrackingNumber>Sample ID</ShipperTrackingNumber>
</FulfillmentData>
<Item>
<AmazonOrderItemCode>Sample ASIN</AmazonOrderItemCode>
<MerchantOrderItemID>Sample merchant order id</MerchantOrderItemID>
<Quantity>1</Quantity>
</Item>
</OrderFulfillment>
</Message>
</AmazonEnvelope>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
我觉得你不需要在实际xml之前包含元信息。应该就没问题了