나는 한동안 이베이의 대형 판매자 서비스 (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 등) 결과가 "유효하지 않은 데이터"라는 오류와 함께 반환된다는 결과를 얻었습니다.
유효한 값 목록 또는 LMS (Large Merchamt Services)에 대한 eBay의 스키마를 잘 설명하는 다른 사람이 누구인지 알고있는 경우 알려주십시오.
"{http://www.w3.org/2001/XMLSchema} 토큰"은 무엇입니까? JAXB는 현재 이것을 String으로 변환합니다. 사이드 질문에
매우 유익한 답변입니다! BTW : 당신은 그렇게 링크를 만들 수 있습니다 (또는 "세계와 화살표"링크 아이콘을 사용하십시오) : [이베이 대형 판매자 서비스의 XSD] (http://developer.ebay.com/webservices/latest/merchantdataservice.xsd) – 13ren
안녕하세요 @ Overflow Helper, 전자 베이에 한 번에 상품을 나열하려고합니다. 친절하게 어떻게 도와 드릴까요? 미리 감사드립니다. –