Skip to content

Instantly share code, notes, and snippets.

@luqmaan
Created February 3, 2015 00:17
Show Gist options
  • Save luqmaan/492a5c48f38ffa72f33b to your computer and use it in GitHub Desktop.
Save luqmaan/492a5c48f38ffa72f33b to your computer and use it in GitHub Desktop.
Compare eBay 767 WSDL with latest WSDl
#!/usr/bin/env bash
curl https://web.archive.org/web/20120315095344/http://developer.ebay.com/webservices/latest/eBaySvc.wsdl > 767.wsdl
curl http://developer.ebay.com/webservices/latest/ebaySvc.wsdl > latest.wsdl
export LESS="-RCQaix4"
patterns=(Ack AdjustmentAmount ApiAccessRule Buyer BuyerCheckoutMessage BuyerUserID CategoryName CheckoutStatus CityName ConvertedStartPrice Country CountryName CreatedTime DailyHardLimit DailyUsage Email ErrorCode ErrorParameters Errors ExternalAddressID HardExpirationTime HasMoreOrders HourlyHardLimit HourlyUsage Item ItemArray ItemID ItemSpecifics ListingDetails ListingStatus ListingType LongMessage Name NameValueList Order OrderArray OrderID OrderLineItemID PaginationResult PaymentMethod Phone PostalCode PrimaryCategory Quantity QuantityPurchased QuantitySold RegistrationDate SKU SalesTax SalesTaxAmount SellingManagerSalesRecordNumber SellingStatus SessionID SeverityCode ShippedTime ShippingAddress ShippingDetails ShippingPackageDetails ShippingService ShippingServiceCost ShippingServiceSelected StartPrice StateOrProvince Street1 Street2 Subtotal Total TotalNumberOfEntries Transaction TransactionArray TransactionPrice User Value Variation VariationSpecifics VariationTitle Variations WeightMajor WeightMinor eBayAuthToken eBayPaymentStatus)
for pattern in ${patterns[@]}; do
echo "*******$pattern*******"
read -p "Continue?"
diff -u -b -B --ignore-all-space <(grep -B 10 -A 10 $pattern 767.wsdl) <(grep -B 10 -A 10 $pattern latest.wsdl) | colordiff | less -S
echo "*******$pattern*******"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment