`
jiangduxi
  • 浏览: 458855 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

ebay Developer 之基础SOAP协议

 
阅读更多
在使用运用ebay 提供的各种各样的Call之前,必须要明白其call是怎么来获取到信息的。
正如我们在浏览器上输入:http://www.google.com一样能够找到google页面并且通过google检索到你要的信息。以上这个在浏览器上输入http,就是要符合http协议。只有你符合了http协议那么就能够按照该协议正确的得到你想要的信息。而ebay 中的call则是符合SOAP协议。该协议就是保证了信息的发送和接收的正确性。
  什么是SOAP?
    SOAP简单说就是(Simple Object Access Protocol )简单对象访问协议是在分散或分布式的环境中交换信息的简单的协议。该协议是一个基于XML的协议,它包括四个部分:SOAP封装(envelop),封装定义了一个描述消息中的内容是什么,是谁发送的,谁应当接受并处理它以及如何处理它们的框架;SOAP编码规则(encoding rules),用于表示应用程序需要使用的数据类型的实例; SOAP RPC表示(RPC representation),表示远程过程调用和应答的协定;SOAP绑定(binding),使用底层协议交换信息。

  在ebay中你可以通过使用任何call的call.getResponseXML()来查看。熟悉是ebay Developer的基础。
其实就是在与将SOAP解析成多个Object
例如: 看看GetItem Call 的Response
<?xml version="1.0" encoding="utf-8"?>
<GetItemResponse xmlns="urn:ebay:apis:eBLBaseComponents">
  <!-- Standard Output Fields -->
  <Ack> AckCodeType </Ack>
  <Build> string </Build>
  <CorrelationID> string </CorrelationID>
  <Errors> ErrorType
    <ErrorClassification> ErrorClassificationCodeType </ErrorClassification>
    <ErrorCode> token </ErrorCode>
    <ErrorParameters ParamID="string"> ErrorParameterType
      <Value> string </Value>
    </ErrorParameters>
    <!-- ... more ErrorParameters nodes here ... -->
    <LongMessage> string </LongMessage>
    <SeverityCode> SeverityCodeType </SeverityCode>
    <ShortMessage> string </ShortMessage>
  </Errors>
  <!-- ... more Errors nodes here ... -->
  <HardExpirationWarning> string </HardExpirationWarning>
  <Timestamp> dateTime </Timestamp>
  <Version> string </Version>
  <!-- Call-specific Output Fields -->
  <Item> ItemType
    <ApplicationData> string </ApplicationData>
    <ApplyBuyerProtection> BuyerProtectionDetailsType
      <BuyerProtectionSource> BuyerProtectionSourceCodeType </BuyerProtectionSource>
      <BuyerProtectionStatus> BuyerProtectionCodeType </BuyerProtectionStatus>
    </ApplyBuyerProtection>
    <AttributeSetArray> AttributeSetArrayType
      <AttributeSet attributeSetID="int" attributeSetVersion="string"> AttributeSetType
        <Attribute attributeID="int"> AttributeType
          <Value> ValType
            <ValueID> int </ValueID>
            <ValueLiteral> string </ValueLiteral>
          </Value>
          <!-- ... more Value nodes here ... -->
        </Attribute>
        <!-- ... more Attribute nodes here ... -->
      </AttributeSet>
      <!-- ... more AttributeSet nodes here ... -->
    </AttributeSetArray>
    <AutoPay> boolean </AutoPay>
    <BestOfferDetails> BestOfferDetailsType
      <BestOfferCount> int </BestOfferCount>
      <BestOfferEnabled> boolean </BestOfferEnabled>
    </BestOfferDetails>
    <BusinessSellerDetails> BusinessSellerDetailsType
      <AdditionalContactInformation> string </AdditionalContactInformation>
      <Address> AddressType
        <FirstName> string </FirstName>
        <LastName> string </LastName>
      </Address>
      <Email> string </Email>
      <Fax> string </Fax>
      <LegalInvoice> boolean </LegalInvoice>
      <TermsAndConditions> string </TermsAndConditions>
      <TradeRegistrationNumber> string </TradeRegistrationNumber>
      <VATDetails> VATDetailsType
        <BusinessSeller> boolean </BusinessSeller>
        <RestrictedToBusiness> boolean </RestrictedToBusiness>
        <VATID> string </VATID>
        <VATPercent> float </VATPercent>
        <VATSite> string </VATSite>
      </VATDetails>
    </BusinessSellerDetails>
    <BuyerGuaranteePrice currencyID="CurrencyCodeType"> AmountType (double) </BuyerGuaranteePrice>
    <BuyerProtection> BuyerProtectionCodeType </BuyerProtection>
    <BuyerRequirementDetails> BuyerRequirementDetailsType
      <LinkedPayPalAccount> boolean </LinkedPayPalAccount>
      <MaximumBuyerPolicyViolations> MaximumBuyerPolicyViolationsType
        <Count> int </Count>
        <Period> PeriodCodeType </Period>
      </MaximumBuyerPolicyViolations>
      <MaximumItemRequirements> MaximumItemRequirementsType
        <MaximumItemCount> int </MaximumItemCount>
        <MinimumFeedbackScore> int </MinimumFeedbackScore>
      </MaximumItemRequirements>
      <MaximumUnpaidItemStrikesInfo> MaximumUnpaidItemStrikesInfoType
        <Count> int </Count>
        <Period> PeriodCodeType </Period>
      </MaximumUnpaidItemStrikesInfo>
      <MinimumFeedbackScore> int </MinimumFeedbackScore>
      <ShipToRegistrationCountry> boolean </ShipToRegistrationCountry>
      <VerifiedUserRequirements> VerifiedUserRequirementsType
        <MinimumFeedbackScore> int </MinimumFeedbackScore>
        <VerifiedUser> boolean </VerifiedUser>
      </VerifiedUserRequirements>
      <ZeroFeedbackScore> boolean </ZeroFeedbackScore>
    </BuyerRequirementDetails>
    <BuyerResponsibleForShipping> boolean </BuyerResponsibleForShipping>
    <BuyItNowPrice currencyID="CurrencyCodeType"> AmountType (double) </BuyItNowPrice>
    <Charity> CharityType
      <CharityID> string </CharityID>
      <CharityName> string </CharityName>
      <CharityNumber> int </CharityNumber>
      <DonationPercent> float </DonationPercent>
      <LogoURL> string </LogoURL>
      <Mission> string </Mission>
      <Status> CharityStatusCodeType </Status>
    </Charity>
    <ConditionDisplayName> string </ConditionDisplayName>
    <ConditionID> int </ConditionID>
    <Country> CountryCodeType </Country>
    <CrossBorderTrade> string </CrossBorderTrade>
    <!-- ... more CrossBorderTrade nodes here ... -->
    <CrossPromotion> CrossPromotionsType
      <ItemID> ItemIDType (string) </ItemID>
      <PrimaryScheme> PromotionSchemeCodeType </PrimaryScheme>
      <PromotedItem> PromotedItemType
        <ItemID> ItemIDType (string) </ItemID>
        <ListingType> ListingTypeCodeType </ListingType>
        <PictureURL> string </PictureURL>
        <Position> int </Position>
        <PromotionDetails> PromotionDetailsType
          <BidCount> int </BidCount>
          <ConvertedPromotionPrice currencyID="CurrencyCodeType"> AmountType (double) </ConvertedPromotionPrice>
          <PromotionPrice currencyID="CurrencyCodeType"> AmountType (double) </PromotionPrice>
          <PromotionPriceType> PromotionItemPriceTypeCodeType </PromotionPriceType>
        </PromotionDetails>
        <!-- ... more PromotionDetails nodes here ... -->
        <SelectionType> PromotionItemSelectionCodeType </SelectionType>
        <TimeLeft> duration </TimeLeft>
        <Title> string </Title>
      </PromotedItem>
      <!-- ... more PromotedItem nodes here ... -->
      <PromotionMethod> PromotionMethodCodeType </PromotionMethod>
      <SellerID> string </SellerID>
      <ShippingDiscount> boolean </ShippingDiscount>
    </CrossPromotion>
    <Currency> CurrencyCodeType </Currency>
    <Description> string </Description>
    <DisableBuyerRequirements> boolean </DisableBuyerRequirements>
    <DiscountPriceInfo> DiscountPriceInfoType
      <MinimumAdvertisedPrice currencyID="CurrencyCodeType"> AmountType (double) </MinimumAdvertisedPrice>
      <MinimumAdvertisedPriceExposure> MinimumAdvertisedPriceExposureCodeType </MinimumAdvertisedPriceExposure>
      <OriginalRetailPrice currencyID="CurrencyCodeType"> AmountType (double) </OriginalRetailPrice>
      <PricingTreatment> PricingTreatmentCodeType </PricingTreatment>
      <SoldOffeBay> boolean </SoldOffeBay>
      <SoldOneBay> boolean </SoldOneBay>
    </DiscountPriceInfo>
    <DispatchTimeMax> int </DispatchTimeMax>
    <ExtendedSellerContactDetails> ExtendedContactDetailsType
      <ClassifiedAdContactByEmailEnabled> boolean </ClassifiedAdContactByEmailEnabled>
      <ContactHoursDetails> ContactHoursDetailsType
        <Hours1AnyTime> boolean </Hours1AnyTime>
        <Hours1Days> DaysCodeType </Hours1Days>
        <Hours1From> time </Hours1From>
        <Hours1To> time </Hours1To>
        <Hours2AnyTime> boolean </Hours2AnyTime>
        <Hours2Days> DaysCodeType </Hours2Days>
        <Hours2From> time </Hours2From>
        <Hours2To> time </Hours2To>
        <TimeZoneID> string </TimeZoneID>
      </ContactHoursDetails>
      <PayPerLeadPhoneNumber> string </PayPerLeadPhoneNumber>
    </ExtendedSellerContactDetails>
    <FreeAddedCategory> CategoryType
      <CategoryID> string </CategoryID>
      <CategoryName> string </CategoryName>
    </FreeAddedCategory>
    <GetItFast> boolean </GetItFast>
    <GiftIcon> int </GiftIcon>
    <GiftServices> GiftServicesCodeType </GiftServices>
    <!-- ... more GiftServices nodes here ... -->
    <HitCount> long </HitCount>
    <HitCounter> HitCounterCodeType </HitCounter>
    <IntegratedMerchantCreditCardEnabled> boolean </IntegratedMerchantCreditCardEnabled>
    <InventoryTrackingMethod> InventoryTrackingMethodCodeType </InventoryTrackingMethod>
    <ItemCompatibilityCount> int </ItemCompatibilityCount>
    <ItemCompatibilityList> ItemCompatibilityListType
      <Compatibility> ItemCompatibilityType
        <CompatibilityNotes> string </CompatibilityNotes>
        <NameValueList> NameValueListType
          <Name> string </Name>
          <Source> ItemSpecificSourceCodeType </Source>
          <Value> string </Value>
          <!-- ... more Value nodes here ... -->
        </NameValueList>
        <!-- ... more NameValueList nodes here ... -->
      </Compatibility>
      <!-- ... more Compatibility nodes here ... -->
    </ItemCompatibilityList>
    <ItemID> ItemIDType (string) </ItemID>
    <ItemPolicyViolation> ItemPolicyViolationType
      <PolicyID> long </PolicyID>
      <PolicyText> string </PolicyText>
    </ItemPolicyViolation>
    <ItemSpecifics> NameValueListArrayType
      <NameValueList> NameValueListType
        <Name> string </Name>
        <Source> ItemSpecificSourceCodeType </Source>
        <Value> string </Value>
        <!-- ... more Value nodes here ... -->
      </NameValueList>
      <!-- ... more NameValueList nodes here ... -->
    </ItemSpecifics>
    <ListingCheckoutRedirectPreference> ListingCheckoutRedirectPreferenceType
      <ProStoresStoreName> string </ProStoresStoreName>
      <SellerThirdPartyUsername> string </SellerThirdPartyUsername>
    </ListingCheckoutRedirectPreference>
    <ListingDesigner> ListingDesignerType
      <LayoutID> int </LayoutID>
      <OptimalPictureSize> boolean </OptimalPictureSize>
      <ThemeID> int </ThemeID>
    </ListingDesigner>
    <ListingDetails> ListingDetailsType
      <Adult> boolean </Adult>
      <BestOfferAutoAcceptPrice currencyID="CurrencyCodeType"> AmountType (double) </BestOfferAutoAcceptPrice>
      <BindingAuction> boolean </BindingAuction>
      <BuyItNowAvailable> boolean </BuyItNowAvailable>
      <CheckoutEnabled> boolean </CheckoutEnabled>
      <ConvertedBuyItNowPrice currencyID="CurrencyCodeType"> AmountType (double) </ConvertedBuyItNowPrice>
      <ConvertedReservePrice currencyID="CurrencyCodeType"> AmountType (double) </ConvertedReservePrice>
      <ConvertedStartPrice currencyID="CurrencyCodeType"> AmountType (double) </ConvertedStartPrice>
      <EndTime> dateTime </EndTime>
      <HasPublicMessages> boolean </HasPublicMessages>
      <HasReservePrice> boolean </HasReservePrice>
      <HasUnansweredQuestions> boolean </HasUnansweredQuestions>
      <MinimumBestOfferMessage> string </MinimumBestOfferMessage>
      <MinimumBestOfferPrice currencyID="CurrencyCodeType"> AmountType (double) </MinimumBestOfferPrice>
      <PayPerLeadEnabled> boolean </PayPerLeadEnabled>
      <RelistedItemID> ItemIDType (string) </RelistedItemID>
      <SecondChanceOriginalItemID> ItemIDType (string) </SecondChanceOriginalItemID>
      <StartTime> dateTime </StartTime>
      <TCROriginalItemID> ItemIDType (string) </TCROriginalItemID>
      <ViewItemURL> anyURI </ViewItemURL>
      <ViewItemURLForNaturalSearch> anyURI </ViewItemURLForNaturalSearch>
    </ListingDetails>
    <ListingDuration> token </ListingDuration>
    <ListingEnhancement> ListingEnhancementsCodeType </ListingEnhancement>
    <!-- ... more ListingEnhancement nodes here ... -->
    <ListingSubtype2> ListingSubtypeCodeType </ListingSubtype2>
    <ListingType> ListingTypeCodeType </ListingType>
    <Location> string </Location>
    <LocationDefaulted> boolean </LocationDefaulted>
    <LotSize> int </LotSize>
    <MechanicalCheckAccepted> boolean </MechanicalCheckAccepted>
    <MotorsGermanySearchable> boolean </MotorsGermanySearchable>
    <PaymentAllowedSite> SiteCodeType </PaymentAllowedSite>
    <!-- ... more PaymentAllowedSite nodes here ... -->
    <PaymentDetails> PaymentDetailsType
      <DaysToFullPayment> int </DaysToFullPayment>
      <HoursToDeposit> int </HoursToDeposit>
    </PaymentDetails>
    <PaymentMethods> BuyerPaymentMethodCodeType </PaymentMethods>
    <!-- ... more PaymentMethods nodes here ... -->
    <PayPalEmailAddress> string </PayPalEmailAddress>
    <PictureDetails> PictureDetailsType
      <ExternalPictureURL> anyURI </ExternalPictureURL>
      <GalleryDuration> token </GalleryDuration>
      <GalleryErrorInfo> string </GalleryErrorInfo>
      <GalleryStatus> GalleryStatusCodeType </GalleryStatus>
      <GalleryType> GalleryTypeCodeType </GalleryType>
      <GalleryURL> anyURI </GalleryURL>
      <PhotoDisplay> PhotoDisplayCodeType </PhotoDisplay>
      <PictureSource> PictureSourceCodeType </PictureSource>
      <PictureURL> anyURI </PictureURL>
      <!-- ... more PictureURL nodes here ... -->
    </PictureDetails>
    <PostalCode> string </PostalCode>
    <PostCheckoutExperienceEnabled> boolean </PostCheckoutExperienceEnabled>
    <PrimaryCategory> CategoryType
      <CategoryID> string </CategoryID>
      <CategoryName> string </CategoryName>
    </PrimaryCategory>
    <PrivateListing> boolean </PrivateListing>
    <ProductListingDetails> ProductListingDetailsType
      <Copyright> string </Copyright>
      <!-- ... more Copyright nodes here ... -->
      <IncludePrefilledItemInformation> boolean </IncludePrefilledItemInformation>
      <IncludeStockPhotoURL> boolean </IncludeStockPhotoURL>
      <ProductID> string </ProductID>
      <StockPhotoURL> anyURI </StockPhotoURL>
      <UseStockPhotoURLAsGallery> boolean </UseStockPhotoURLAsGallery>
    </ProductListingDetails>
    <ProxyItem> boolean </ProxyItem>
    <Quantity> int </Quantity>
    <QuantityAvailableHint> QuantityAvailableHintCodeType </QuantityAvailableHint>
    <QuantityThreshold> int </QuantityThreshold>
    <ReservePrice currencyID="CurrencyCodeType"> AmountType (double) </ReservePrice>
    <ReturnPolicy> ReturnPolicyType
      <Description> string </Description>
      <EAN> string </EAN>
      <Refund> string </Refund>
      <RefundOption> token </RefundOption>
      <ReturnsAccepted> string </ReturnsAccepted>
      <ReturnsAcceptedOption> token </ReturnsAcceptedOption>
      <ReturnsWithin> string </ReturnsWithin>
      <ReturnsWithinOption> token </ReturnsWithinOption>
      <ShippingCostPaidBy> string </ShippingCostPaidBy>
      <ShippingCostPaidByOption> token </ShippingCostPaidByOption>
      <WarrantyDuration> string </WarrantyDuration>
      <WarrantyDurationOption> token </WarrantyDurationOption>
      <WarrantyOffered> string </WarrantyOffered>
      <WarrantyOfferedOption> token </WarrantyOfferedOption>
      <WarrantyType> string </WarrantyType>
      <WarrantyTypeOption> token </WarrantyTypeOption>
    </ReturnPolicy>
    <ReviseStatus> ReviseStatusType
      <BuyItNowAdded> boolean </BuyItNowAdded>
      <BuyItNowLowered> boolean </BuyItNowLowered>
      <ItemRevised> boolean </ItemRevised>
      <ReserveLowered> boolean </ReserveLowered>
      <ReserveRemoved> boolean </ReserveRemoved>
    </ReviseStatus>
    <SecondaryCategory> CategoryType
      <CategoryID> string </CategoryID>
      <CategoryName> string </CategoryName>
    </SecondaryCategory>
    <Seller> UserType
      <AboutMePage> boolean </AboutMePage>
      <eBayGoodStanding> boolean </eBayGoodStanding>
      <Email> string </Email>
      <FeedbackPrivate> boolean </FeedbackPrivate>
      <FeedbackRatingStar> FeedbackRatingStarCodeType </FeedbackRatingStar>
      <FeedbackScore> int </FeedbackScore>
      <IDVerified> boolean </IDVerified>
      <MotorsDealer> boolean </MotorsDealer>
      <NewUser> boolean </NewUser>
      <PositiveFeedbackPercent> float </PositiveFeedbackPercent>
      <RegistrationAddress> AddressType
        <CityName> string </CityName>
        <Country> CountryCodeType </Country>
        <CountryName> string </CountryName>
        <FirstName> string </FirstName>
        <LastName> string </LastName>
        <Name> string </Name>
        <Phone> string </Phone>
        <PostalCode> string </PostalCode>
        <Street> string </Street>
        <Street1> string </Street1>
        <Street2> string </Street2>
      </RegistrationAddress>
      <RegistrationDate> dateTime </RegistrationDate>
      <SellerInfo> SellerType
        <AllowPaymentEdit> boolean </AllowPaymentEdit>
        <CheckoutEnabled> boolean </CheckoutEnabled>
        <CIPBankAccountStored> boolean </CIPBankAccountStored>
        <GoodStanding> boolean </GoodStanding>
        <MerchandizingPref> MerchandizingPrefCodeType </MerchandizingPref>
        <QualifiesForB2BVAT> boolean </QualifiesForB2BVAT>
        <SafePaymentExempt> boolean </SafePaymentExempt>
        <SellerBusinessType> SellerBusinessCodeType </SellerBusinessType>
        <SellerLevel> SellerLevelCodeType </SellerLevel>
        <StoreOwner> boolean </StoreOwner>
        <StoreURL> anyURI </StoreURL>
        <TopRatedSeller> boolean </TopRatedSeller>
      </SellerInfo>
      <Site> SiteCodeType </Site>
      <Status> UserStatusCodeType </Status>
      <UserID> UserIDType (string) </UserID>
      <UserIDChanged> boolean </UserIDChanged>
      <UserIDLastChanged> dateTime </UserIDLastChanged>
      <VATStatus> VATStatusCodeType </VATStatus>
    </Seller>
    <SellerContactDetails> AddressType
      <CompanyName> string </CompanyName>
      <County> string </County>
      <FirstName> string </FirstName>
      <LastName> string </LastName>
      <Phone2AreaOrCityCode> string </Phone2AreaOrCityCode>
      <Phone2CountryCode> CountryCodeType </Phone2CountryCode>
      <Phone2CountryPrefix> string </Phone2CountryPrefix>
      <Phone2LocalNumber> string </Phone2LocalNumber>
      <PhoneAreaOrCityCode> string </PhoneAreaOrCityCode>
      <PhoneCountryCode> CountryCodeType </PhoneCountryCode>
      <PhoneCountryPrefix> string </PhoneCountryPrefix>
      <PhoneLocalNumber> string </PhoneLocalNumber>
      <Street1> string </Street1>
      <Street2> string </Street2>
    </SellerContactDetails>
    <SellerVacationNote> string </SellerVacationNote>
    <SellingStatus> SellingStatusType
      <AdminEnded> boolean </AdminEnded>
      <BidCount> int </BidCount>
      <BidIncrement currencyID="CurrencyCodeType"> AmountType (double) </BidIncrement>
      <ConvertedCurrentPrice currencyID="CurrencyCodeType"> AmountType (double) </ConvertedCurrentPrice>
      <CurrentPrice currencyID="CurrencyCodeType"> AmountType (double) </CurrentPrice>
      <HighBidder> UserType
        <AboutMePage> boolean </AboutMePage>
        <BuyerInfo> BuyerType
          <ShippingAddress> AddressType
            <Country> CountryCodeType </Country>
            <FirstName> string </FirstName>
            <LastName> string </LastName>
            <PostalCode> string </PostalCode>
          </ShippingAddress>
        </BuyerInfo>
        <eBayGoodStanding> boolean </eBayGoodStanding>
        <Email> string </Email>
        <FeedbackPrivate> boolean </FeedbackPrivate>
        <FeedbackRatingStar> FeedbackRatingStarCodeType </FeedbackRatingStar>
        <FeedbackScore> int </FeedbackScore>
        <IDVerified> boolean </IDVerified>
        <NewUser> boolean </NewUser>
        <PositiveFeedbackPercent> float </PositiveFeedbackPercent>
        <RegistrationAddress> AddressType
          <CityName> string </CityName>
          <Country> CountryCodeType </Country>
          <CountryName> string </CountryName>
          <FirstName> string </FirstName>
          <LastName> string </LastName>
          <Name> string </Name>
          <Phone> string </Phone>
          <PostalCode> string </PostalCode>
          <Street> string </Street>
          <Street1> string </Street1>
          <Street2> string </Street2>
        </RegistrationAddress>
        <RegistrationDate> dateTime </RegistrationDate>
        <Site> SiteCodeType </Site>
        <Status> UserStatusCodeType </Status>
        <UserAnonymized> boolean </UserAnonymized>
        <UserID> UserIDType (string) </UserID>
        <UserIDChanged> boolean </UserIDChanged>
        <UserIDLastChanged> dateTime </UserIDLastChanged>
        <VATStatus> VATStatusCodeType </VATStatus>
      </HighBidder>
      <LeadCount> int </LeadCount>
      <ListingStatus> ListingStatusCodeType </ListingStatus>
      <MinimumToBid currencyID="CurrencyCodeType"> AmountType (double) </MinimumToBid>
      <PromotionalSaleDetails> PromotionalSaleDetailsType
        <EndTime> dateTime </EndTime>
        <OriginalPrice currencyID="CurrencyCodeType"> AmountType (double) </OriginalPrice>
        <StartTime> dateTime </StartTime>
      </PromotionalSaleDetails>
      <QuantitySold> int </QuantitySold>
      <ReserveMet> boolean </ReserveMet>
      <SecondChanceEligible> boolean </SecondChanceEligible>
    </SellingStatus>
    <ShippingDetails> ShippingDetailsType
      <AllowPaymentEdit> boolean </AllowPaymentEdit>
      <CalculatedShippingDiscount> CalculatedShippingDiscountType
        <DiscountName> DiscountNameCodeType </DiscountName>
        <DiscountProfile> DiscountProfileType
          <DiscountProfileID> string </DiscountProfileID>
          <DiscountProfileName> string </DiscountProfileName>
          <MappedDiscountProfileID> string </MappedDiscountProfileID>
          <WeightOff unit="token" measurementSystem="MeasurementSystemCodeType"> MeasureType (decimal) </WeightOff>
        </DiscountProfile>
        <!-- ... more DiscountProfile nodes here ... -->
      </CalculatedShippingDiscount>
      <CalculatedShippingRate> CalculatedShippingRateType
        <InternationalPackagingHandlingCosts currencyID="CurrencyCodeType"> AmountType (double) </InternationalPackagingHandlingCosts>
        <OriginatingPostalCode> string </OriginatingPostalCode>
        <PackageDepth unit="token" measurementSystem="MeasurementSystemCodeType"> MeasureType (decimal) </PackageDepth>
        <PackageLength unit="token" measurementSystem="MeasurementSystemCodeType"> MeasureType (decimal) </PackageLength>
        <PackageWidth unit="token" measurementSystem="MeasurementSystemCodeType"> MeasureType (decimal) </PackageWidth>
        <PackagingHandlingCosts currencyID="CurrencyCodeType"> AmountType (double) </PackagingHandlingCosts>
        <ShippingIrregular> boolean </ShippingIrregular>
        <ShippingPackage> ShippingPackageCodeType </ShippingPackage>
        <WeightMajor unit="token" measurementSystem="MeasurementSystemCodeType"> MeasureType (decimal) </WeightMajor>
        <WeightMinor unit="token" measurementSystem="MeasurementSystemCodeType"> MeasureType (decimal) </WeightMinor>
      </CalculatedShippingRate>
      <CODCost currencyID="CurrencyCodeType"> AmountType (double) </CODCost>
      <ExcludeShipToLocation> string </ExcludeShipToLocation>
      <!-- ... more ExcludeShipToLocation nodes here ... -->
      <FlatShippingDiscount> FlatShippingDiscountType
        <DiscountName> DiscountNameCodeType </DiscountName>
        <DiscountProfile> DiscountProfileType
          <DiscountProfileID> string </DiscountProfileID>
          <DiscountProfileName> string </DiscountProfileName>
          <EachAdditionalAmount currencyID="CurrencyCodeType"> AmountType (double) </EachAdditionalAmount>
          <EachAdditionalAmountOff currencyID="CurrencyCodeType"> AmountType (double) </EachAdditionalAmountOff>
          <EachAdditionalPercentOff> float </EachAdditionalPercentOff>
        </DiscountProfile>
        <!-- ... more DiscountProfile nodes here ... -->
      </FlatShippingDiscount>
      <GetItFast> boolean </GetItFast>
      <InsuranceDetails> InsuranceDetailsType
        <InsuranceFee currencyID="CurrencyCodeType"> AmountType (double) </InsuranceFee>
        <InsuranceOption> InsuranceOptionCodeType </InsuranceOption>
      </InsuranceDetails>
      <InsuranceFee currencyID="CurrencyCodeType"> AmountType (double) </InsuranceFee>
      <InsuranceOption> InsuranceOptionCodeType </InsuranceOption>
      <InternationalCalculatedShippingDiscount> CalculatedShippingDiscountType
        <DiscountName> DiscountNameCodeType </DiscountName>
        <DiscountProfile> DiscountProfileType
          <DiscountProfileID> string </DiscountProfileID>
          <DiscountProfileName> string </DiscountProfileName>
          <MappedDiscountProfileID> string </MappedDiscountProfileID>
          <WeightOff unit="token" measurementSystem="MeasurementSystemCodeType"> MeasureType (decimal) </WeightOff>
        </DiscountProfile>
        <!-- ... more DiscountProfile nodes here ... -->
      </InternationalCalculatedShippingDiscount>
      <InternationalFlatShippingDiscount> FlatShippingDiscountType
        <DiscountName> DiscountNameCodeType </DiscountName>
        <DiscountProfile> DiscountProfileType
          <DiscountProfileID> string </DiscountProfileID>
          <DiscountProfileName> string </DiscountProfileName>
          <EachAdditionalAmount currencyID="CurrencyCodeType"> AmountType (double) </EachAdditionalAmount>
          <EachAdditionalAmountOff currencyID="CurrencyCodeType"> AmountType (double) </EachAdditionalAmountOff>
          <EachAdditionalPercentOff> float </EachAdditionalPercentOff>
        </DiscountProfile>
        <!-- ... more DiscountProfile nodes here ... -->
      </InternationalFlatShippingDiscount>
      <InternationalInsuranceDetails> InsuranceDetailsType
        <InsuranceFee currencyID="CurrencyCodeType"> AmountType (double) </InsuranceFee>
        <InsuranceOption> InsuranceOptionCodeType </InsuranceOption>
      </InternationalInsuranceDetails>
      <InternationalPromotionalShippingDiscount> boolean </InternationalPromotionalShippingDiscount>
      <InternationalShippingDiscountProfileID> string </InternationalShippingDiscountProfileID>
      <InternationalShippingServiceOption> InternationalShippingServiceOptionsType
        <ShippingService> token </ShippingService>
        <ShippingServiceAdditionalCost currencyID="CurrencyCodeType"> AmountType (double) </ShippingServiceAdditionalCost>
        <ShippingServiceCost currencyID="CurrencyCodeType"> AmountType (double) </ShippingServiceCost>
        <ShippingServicePriority> int </ShippingServicePriority>
        <ShipToLocation> string </ShipToLocation>
        <!-- ... more ShipToLocation nodes here ... -->
      </InternationalShippingServiceOption>
      <!-- ... more InternationalShippingServiceOption nodes here ... -->
      <PaymentInstructions> string </PaymentInstructions>
      <PromotionalShippingDiscount> boolean </PromotionalShippingDiscount>
      <PromotionalShippingDiscountDetails> PromotionalShippingDiscountDetailsType
        <DiscountName> DiscountNameCodeType </DiscountName>
        <ItemCount> int </ItemCount>
        <OrderAmount currencyID="CurrencyCodeType"> AmountType (double) </OrderAmount>
        <ShippingCost currencyID="CurrencyCodeType"> AmountType (double) </ShippingCost>
      </PromotionalShippingDiscountDetails>
      <RateTableDetails> RateTableDetailsType
        <DomesticRateTable> string </DomesticRateTable>
      </RateTableDetails>
      <SalesTax> SalesTaxType
        <SalesTaxPercent> float </SalesTaxPercent>
        <SalesTaxState> string </SalesTaxState>
        <ShippingIncludedInTax> boolean </ShippingIncludedInTax>
      </SalesTax>
      <SellerExcludeShipToLocationsPreference> boolean </SellerExcludeShipToLocationsPreference>
      <ShippingDiscountProfileID> string </ShippingDiscountProfileID>
      <ShippingServiceOptions> ShippingServiceOptionsType
        <ExpeditedService> boolean </ExpeditedService>
        <FreeShipping> boolean </FreeShipping>
        <ShippingService> token </ShippingService>
        <ShippingServiceAdditionalCost currencyID="CurrencyCodeType"> AmountType (double) </ShippingServiceAdditionalCost>
        <ShippingServiceCost currencyID="CurrencyCodeType"> AmountType (double) </ShippingServiceCost>
        <ShippingServicePriority> int </ShippingServicePriority>
        <ShippingSurcharge currencyID="CurrencyCodeType"> AmountType (double) </ShippingSurcharge>
        <ShippingTimeMax> int </ShippingTimeMax>
        <ShippingTimeMin> int </ShippingTimeMin>
      </ShippingServiceOptions>
      <!-- ... more ShippingServiceOptions nodes here ... -->
      <ShippingType> ShippingTypeCodeType </ShippingType>
      <TaxTable> TaxTableType
        <TaxJurisdiction> TaxJurisdictionType
          <JurisdictionID> string </JurisdictionID>
          <SalesTaxPercent> float </SalesTaxPercent>
          <ShippingIncludedInTax> boolean </ShippingIncludedInTax>
        </TaxJurisdiction>
        <!-- ... more TaxJurisdiction nodes here ... -->
      </TaxTable>
      <ThirdPartyCheckout> boolean </ThirdPartyCheckout>
    </ShippingDetails>
    <ShippingTermsInDescription> boolean </ShippingTermsInDescription>
    <ShipToLocations> string </ShipToLocations>
    <!-- ... more ShipToLocations nodes here ... -->
    <Site> SiteCodeType </Site>
    <SKU> SKUType (string) </SKU>
    <SkypeContactOption> SkypeContactOptionCodeType </SkypeContactOption>
    <!-- ... more SkypeContactOption nodes here ... -->
    <SkypeEnabled> boolean </SkypeEnabled>
    <SkypeID> string </SkypeID>
    <StartPrice currencyID="CurrencyCodeType"> AmountType (double) </StartPrice>
    <Storefront> StorefrontType
      <StoreCategory2ID> long </StoreCategory2ID>
      <StoreCategoryID> long </StoreCategoryID>
      <StoreURL> anyURI </StoreURL>
    </Storefront>
    <SubTitle> string </SubTitle>
    <TaxCategory> string </TaxCategory>
    <ThirdPartyCheckoutIntegration> boolean </ThirdPartyCheckoutIntegration>
    <TimeLeft> duration </TimeLeft>
    <Title> string </Title>
    <UUID> UUIDType (string) </UUID>
    <Variations> VariationsType
      <Pictures> PicturesType
        <VariationSpecificName> string </VariationSpecificName>
        <VariationSpecificPictureSet> VariationSpecificPictureSetType
          <PictureURL> anyURI </PictureURL>
          <!-- ... more PictureURL nodes here ... -->
          <VariationSpecificValue> string </VariationSpecificValue>
        </VariationSpecificPictureSet>
        <!-- ... more VariationSpecificPictureSet nodes here ... -->
      </Pictures>
      <Variation> VariationType
        <DiscountPriceInfo> DiscountPriceInfoType
          <MinimumAdvertisedPrice currencyID="CurrencyCodeType"> AmountType (double) </MinimumAdvertisedPrice>
          <MinimumAdvertisedPriceExposure> MinimumAdvertisedPriceExposureCodeType </MinimumAdvertisedPriceExposure>
          <OriginalRetailPrice currencyID="CurrencyCodeType"> AmountType (double) </OriginalRetailPrice>
          <PricingTreatment> PricingTreatmentCodeType </PricingTreatment>
          <SoldOffeBay> boolean </SoldOffeBay>
          <SoldOneBay> boolean </SoldOneBay>
        </DiscountPriceInfo>
        <Quantity> int </Quantity>
        <SellingStatus> SellingStatusType
          <QuantitySold> int </QuantitySold>
        </SellingStatus>
        <SKU> SKUType (string) </SKU>
        <StartPrice currencyID="CurrencyCodeType"> AmountType (double) </StartPrice>
        <VariationSpecifics> NameValueListArrayType
          <NameValueList> NameValueListType
            <Name> string </Name>
            <Value> string </Value>
            <!-- ... more Value nodes here ... -->
          </NameValueList>
          <!-- ... more NameValueList nodes here ... -->
        </VariationSpecifics>
        <!-- ... more VariationSpecifics nodes here ... -->
      </Variation>
      <!-- ... more Variation nodes here ... -->
      <VariationSpecificsSet> NameValueListArrayType
        <NameValueList> NameValueListType
          <Name> string </Name>
          <Source> ItemSpecificSourceCodeType </Source>
          <Value> string </Value>
          <!-- ... more Value nodes here ... -->
        </NameValueList>
        <!-- ... more NameValueList nodes here ... -->
      </VariationSpecificsSet>
    </Variations>
    <VATDetails> VATDetailsType
      <BusinessSeller> boolean </BusinessSeller>
      <RestrictedToBusiness> boolean </RestrictedToBusiness>
      <VATID> string </VATID>
      <VATPercent> float </VATPercent>
      <VATSite> string </VATSite>
    </VATDetails>
    <WatchCount> long </WatchCount>
  </Item>
</GetItemResponse>

在该返回的Response中包含了多个Object。通过解析该XML等到每个Object中的信息。
0
1
分享到:
评论

相关推荐

    Ebay API技术开发白皮书

    - **支持格式**:XML, NV, JSON, SOAP - **示例请求**: ```plaintext http://open.api.ebay.com/shopping? appid= &version=613 &siteid=0 &callname=FindItemsAdvanced &QueryKeywords=nintendowiifit `...

    ebay测试基础架构的演进之路.rar

    "eBay测试基础架构的演进之路"这一主题深入探讨了这个大型电商平台如何逐步优化其测试环境,以适应不断变化的技术需求和业务增长。作为实践案例,这为其他IT企业和学习者提供了宝贵的运维经验。 一、测试基础架构的...

    eBay 入门 eBay 入门eBay 入门

    - **发展历程**:自1995年成立以来,eBay迅速发展成为全球最大的电子商务平台之一,为个人卖家和企业提供了广阔的市场。 - **业务范围**:eBay不仅涵盖了各种消费品,还包括汽车、房产等大宗商品交易。 ### 2. 开始...

    eBay帮助文档(eBay_SDK_v581.0 for_Java ebay_api)

    《eBay SDK v581.0 for Java:探索eBay API的核心技术与应用》 eBay SDK(Software Development Kit)v581.0 for Java是针对Java开发者设计的一套工具包,它允许开发人员能够轻松地与eBay平台进行交互,实现各种...

    电商行业观察之-美国电商巨头eBay兴衰之路.pdf

    在分析eBay的兴衰之路时,我们可以从中提炼出以下知识点: 1. C2C交易模式的开创:eBay是C2C(Consumer-to-Consumer,消费者对消费者)在线拍卖交易模式的先驱。这种模式允许个人在平台上出售二手商品或手工艺品,...

    ebay eBay简化收费结构

    eBay作为全球知名的在线拍卖与购物网站,自成立以来便在全球范围内拥有庞大的用户基础和广泛的市场影响力。eBay的收费结构一直是其商业模式的重要组成部分,它直接关系到卖家的成本和收益,同时也影响着买家的购物...

    Ebay 克隆源码 php版本

    这个源码可以用于创建类似eBay的在线市场,允许用户进行商品拍卖、购买和销售。 【描述】"Ebay,克隆源码,测试可以用,php代码写"说明了这个源码已经过测试,可正常运行。使用PHP编写意味着它依赖于PHP语言,这是一...

    eBAY教程eBAY教程

    2. 评价系统:eBAY的反馈系统是买卖双方信任的基础,提供良好的服务以获得好评。 五、支付与退款 1. 收款方式:eBAY支持多种支付方式,包括PayPal、信用卡等。确保账户设置正确以便收款。 2. 退款政策:制定清晰的...

    ebay paypal api 申请指南

    ### eBay PayPal API 申请指南详解 #### 一、eBay API申请步骤 eBay API的申请对于电商开发者来说是一项关键的技能,它允许开发者通过编程方式与eBay平台交互,实现自动化操作,如生成地址单、跟踪包裹状态、监控...

    eBay 开源SOA框架

    总结来说,eBay的开源SOA框架为构建大型、复杂的企业级应用提供了强大的基础,通过服务化的思想和优秀的工程实践,帮助企业实现灵活、高效的系统架构。同时,其开源性质意味着开发者可以从社区获得持续的支持和更新...

    2012年海外电子商务企业案例研究报告——eBay

    eBay的电商代运营(GSI)和开发网络(Developer Networks)则是公司战略扩展的重要组成部分。电商代运营服务帮助其他企业管理和优化其在线销售平台,而开发网络则提供了API接口,让第三方开发者可以利用eBay的技术和...

    eBay内部考试资料

    关于eBay 基础知识的考试 对于eBay卖家有极大的参考作用

    Ebay的架构发展

    Ebay作为全球知名的电子商务平台,其架构的演化体现了互联网发展的历程,同时也代表了在巨大流量和高并发环境下的架构设计和技术选型的最佳实践。了解Ebay的架构发展历程,对于IT行业人员理解大型分布式系统的设计、...

    接入ebay支付的SDK

    首先,`ebaysdkcore.jar`是SDK的核心库,它提供了与eBay API交互的基础框架。这个库包含了处理请求和响应的类,以及认证、错误处理和数据模型等关键功能。开发者可以通过这个库来构建和发送各种API调用,如创建订单...

    国际E邮宝API4.0对接eBay平台

    - **通信方式**:API采用SOAP通信协议,并提供WSDL文件,用于描述服务的接口信息。开发人员应在沙盒测试地址获取WSDL文件,并注意该版本API不支持向后兼容。 - **错误处理**:API错误处理机制详细说明了如何处理...

    ebay ppt.rar

    【标题】"eBay平台分析与运营策略" 在IT行业中,eBay是一个全球知名的电子商务平台,它为全球卖家和买家提供了在线交易的便利。这份名为"eBay ppt.rar"的压缩包文件,很可能是关于eBay平台的业务分析、运营策略或是...

    eBay 成功 成功 成功

    同时,保持积极的态度和坚持不懈的精神也是成功的关键因素之一。 综上所述,要想在eBay上取得成功,卖家需要综合运用各种策略,从产品选择到市场营销再到客户服务等各个环节都要做到位。通过不断实践和学习,逐步...

    Python爬虫抓取Ebay页面

    ### Python爬虫抓取Ebay页面 #### 概述 本篇内容主要介绍如何使用Python编写网络爬虫来抓取Ebay网站上的商品...这种技术不仅可以应用于Ebay,还可以扩展到其他电商平台,为后续的数据分析和处理提供基础数据支持。

Global site tag (gtag.js) - Google Analytics