eBay の大規模マーチャント サービスのスキーマについて、より詳しい情報を持っている人はいますか?

StackOverflow https://stackoverflow.com/questions/1764819

  •  21-09-2019
  •  | 
  •  

質問

私はしばらく 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 に変換します。

役に立ちましたか?

解決

明確にするためのいくつかの点:

  1. eBay SDK は取引 API のみをサポートし、大規模販売者サービスはサポートしません。
  2. eBay Large Merchant Service の XSD は次の場所にあります。 http://developer.ebay.com/webservices/latest/merchantdataservice.xsd. 。注記:これは、Trading API XSD とは異なります。
  3. ShippingService のジレンマを解決する最も簡単な方法は、AddFixedPriceItem の Call Reference にアクセスして確認することでしょう。 http://developer.ebay.com/devzone/xml/docs/reference/ebay/AddFixedPriceItem.html#Request.Item.ShippingDetails.ShippingServiceOptions.ShippingService

どこに書いてあるか見てください

適用可能な値:ShippingserviceCodeTypeを参照してください

ShippingServiceCodeType は、最終的に見つけたページへのリンクです。

これがお役に立てば幸いです:)

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top