eBay の大規模マーチャント サービスのスキーマについて、より詳しい情報を持っている人はいますか?
質問
私はしばらく eBay の Large Merchant Services API と格闘してきました。大変だったね。ようやくメッセージがシステムを通過できるようになりましたが、スキーマに問題があります。どうやら、スキーマで定義されているものよりもはるかに多くの制限があるようです。
例として、スキーマは次のような配送サービス オプションを定義します。
<ShippingServiceOptions>
<ShippingService>USPSPriority</ShippingService>
<ShippingServiceCost currencyID="USD">7.99</ShippingServiceCost>
<ShippingServiceAdditionalCost currencyID="USD">0.0</ShippingServiceAdditionalCost>
<ShippingServicePriority>1</ShippingServicePriority>
</ShippingServiceOptions>
そして、スキーマでは次のように定義されています。
<complexType name="ShippingServiceOptionsType">
<complexContent>
<restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
<sequence>
<element name="ShippingInsuranceCost" type="{urn:ebay:apis:eBLBaseComponents}AmountType" minOccurs="0"/>
<element name="ShippingService" type="{http://www.w3.org/2001/XMLSchema}token" minOccurs="0"/>
<element name="ShippingServiceCost" type="{urn:ebay:apis:eBLBaseComponents}AmountType" minOccurs="0"/>
<element name="ShippingServiceAdditionalCost" type="{urn:ebay:apis:eBLBaseComponents}AmountType" minOccur ="0"/>
<element name="ShippingServicePriority" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="ExpeditedService" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
<element name="ShippingTimeMin" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="ShippingTimeMax" type="{http://www.w3.org/2001/XMLSchema}int" minOccurs="0"/>
<element name="ShippingSurcharge" type="{urn:ebay:apis:eBLBaseComponents}AmountType" minOccurs="0"/>
<element name="FreeShipping" type="{http://www.w3.org/2001/XMLSchema}boolean" minOccurs="0"/>
</sequence>
</restriction>
</complexContent>
</complexType>
有効な値はどこで見つけられますか ShippingService
?彼らが持っている例を見つけました USPSPriority
. 。これは機能しますが、私が推測した他のすべて(UPS、UPSGround、UPS2ndDayAir など)では、全体が次のエラーで返されます。 Invalid data
.
有効な値のリスト、または eBay の Large Merchat Services (LMS) スキーマをより詳しく説明するリソースを知っている人がいたら、私に知らせてください。
補足的な質問ですが、「{」の型とは正確には何ですか?http://www.w3.org/2001/XMLSchema}トークン"?JAXB は現在、これを String に変換します。
解決
明確にするためのいくつかの点:
- eBay SDK は取引 API のみをサポートし、大規模販売者サービスはサポートしません。
- eBay Large Merchant Service の XSD は次の場所にあります。
http://developer.ebay.com/webservices/latest/merchantdataservice.xsd
. 。注記:これは、Trading API XSD とは異なります。 - ShippingService のジレンマを解決する最も簡単な方法は、AddFixedPriceItem の Call Reference にアクセスして確認することでしょう。
http://developer.ebay.com/devzone/xml/docs/reference/ebay/AddFixedPriceItem.html#Request.Item.ShippingDetails.ShippingServiceOptions.ShippingService
どこに書いてあるか見てください
適用可能な値:ShippingserviceCodeTypeを参照してください
ShippingServiceCodeType は、最終的に見つけたページへのリンクです。
これがお役に立てば幸いです:)
他のヒント
側の質問に答えます:
のxs:トークンにここに記述されている。
タグなど
トークンデータ型も含まれてい 文字が、XMLプロセッサの意志 、ラインフィード、キャリッジリターンを削除 タブ、先頭と末尾のスペース、および 複数のスペースます。
あなたの主な質問のために、あなたがeBayを尋ねることする必要があると思います。
私は最終的に送料サービスに関する答えを見つけました。彼ら(eBayの)ドキュメントが、それはまだデータを見つけるために、チャンスをうかがっのビットを取ることができますが、私が最初に、実現していたよりもはるかに優れている - そこに表示されません。