developers program  

Welcome, Guest Help
Login Login | Register
 

eBay Developer Forums > Technical Questions: eBay Trading API, Feedback API & Large Merchant Services
RSS | NNTP Reader | FAQ | Usage Policies | Advanced Search | Print

in current forum  
in all Developer Forums

Replies: 4 - Pages: 1     Last Post: Nov 19, 2009 10:55 AM by: rnelkins »



Posts: 18
Member Since: 11/16/09



What are valid values for ShippingService?
Posted: Nov 19, 2009 7:57 AM
  Click to reply to this thread Reply

This is using eBay's Large Merchant Services, although I'm sure it's similar tot he Merchat API where the schema comes from.

I was getting an error for a long time that said something to the effect of "Invalid Data". Very descriptive by the way.

It turns out I was getting this error because only certain values are accepted in the <ShippingService> tag. Does anyone know what these values are? If I enter
<ShippingService>USPSPriority</ShippingService> everythign works fine. What if I am shipping UPS? Ground, 2nd Day Air, etc? What are the valid values so that the service doesn't just throw up at me with "invalid data"? Also, why is this not in the schema? If it says string then it should allow any string. If you want specific values then they should be identified.

I've also noticed that LMS requires alot of fields, even though the schema does not. I get a failed addfixeditem because I'm missing one thing or another. Isn't this supposed to the point of a schema in the first place? If I have a payload that validates against your schema you should accept it and process it, not reject it and say "I also want X". When it takes 2-5 minutes to send a payload to the sandbox just to find out you are missing something else AGAIN it gets very frustrating.




Posts: 37
Member Since: 6/10/09



Re: What are valid values for ShippingService?
Posted: Nov 19, 2009 9:41 AM
  Click to reply to this thread Reply

Call GeteBayDetails with DetailName set to ShippingServiceDetails. It returns something like this (for me, in the italian sandbox):

	<ShippingServiceDetails>
<Description>Spedizione internazionale standard a prezzo fisso</Description>
<InternationalService>true</InternationalService>
<ShippingService>IT_StandardInternational</ShippingService>
<ShippingServiceID>60101</ShippingServiceID>
<ServiceType>Flat</ServiceType>
<ValidForSellingFlow>true</ValidForSellingFlow>
<DetailVersion>4</DetailVersion>
<UpdateTime>2009-10-08T21:04:50.000Z</UpdateTime>
</ShippingServiceDetails>
<ShippingServiceDetails>
<Description>Posta ordinaria</Description>
<ShippingService>IT_RegularMail</ShippingService>
<ShippingServiceID>10101</ShippingServiceID>
<ShippingTimeMax>3</ShippingTimeMax>
<ShippingTimeMin>1</ShippingTimeMin>
<ServiceType>Flat</ServiceType>
<DetailVersion>4</DetailVersion>
<UpdateTime>2009-10-08T21:04:50.000Z</UpdateTime>
</ShippingServiceDetails>





Posts: 37
Member Since: 6/10/09



Re: What are valid values for ShippingService?
Posted: Nov 19, 2009 9:51 AM
  Click to reply to this thread Reply

Actually ShippingService requires a "token" as input, not a "string" (i'm looking at AddItem's docs).




Posts: 18
Member Since: 11/16/09



Re: What are valid values for ShippingService?
Posted: Nov 19, 2009 9:56 AM
  Click to reply to this thread Reply

Yes, I noticed that after the fact. JAXB translates that into a String upon marshalling, that must be where I got it from, although Token is derived from string and basically just means that it "will remove line feeds, carriage returns, tabs, leading and trailing spaces, and multiple spaces." (http://www.w3schools.com/Schema/schema_dtypes_string.asp)




Posts: 18
Member Since: 11/16/09



Re: What are valid values for ShippingService?
Posted: Nov 19, 2009 10:55 AM
  Click to reply to this thread Reply

I have since found the answers to these questions via some of eBay's documentation.



thread.rss_message