【发布时间】:2013-09-18 02:46:54
【问题描述】:
在尝试使用新的 V3 api 发出 QBD 批处理请求时,我收到的错误似乎表明缺少元素。我以文档 (http://bit.ly/154KPWs) 中的示例进行了简化:
<IntuitBatchRequest xmlns="http://schema.intuit.com/finance/v3">
<BatchItem bId="bid1">
<Customer>
<Organization>false</Organization>
<FullName>John Doe</FullName>
<DisplayName>John Doe</DisplayName>
<PrintOnCheckName>John Doe</PrintOnCheckName>
</Customer>
</BatchItem>
<BatchItem bId="bid2">
<Customer>
<Organization>false</Organization>
<FullName>Jane Doe</FullName>
<DisplayName>Jane Doe</DisplayName>
<PrintOnCheckName>Jane Doe</PrintOnCheckName>
</Customer>
</BatchItem>
</IntuitBatchRequest>
回复如下:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><IntuitResponse xmlns="http://schema.intuit.com/finance/v3" time="2013-09-18T02:06:03.974Z"><Fault type="Validation"><Error code="0"><Message>UnmarshalException: javax.xml.bind.UnmarshalException
- with linked exception:
[org.xml.sax.SAXParseException: cvc-complex-type.2.4.a: Invalid content was found starting with element 'BatchItem'. One of '{"http://schema.intuit.com/finance/v3":BatchItemRequest}' is expected.]</Message></Error></Fault></IntuitResponse>
我错过了什么或文档吗?
【问题讨论】: