Skip to content

Commit

Permalink
correctly handle multiple skus
Browse files Browse the repository at this point in the history
  • Loading branch information
jzw committed Sep 18, 2012
1 parent b4a28dd commit 4324091
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions lib/powa_api/product_service.rb
Expand Up @@ -31,9 +31,13 @@ def self.get_published_products_by_sku(*skus)
header_block(xml)

xml.soapenv(:Body) do |xml|
xml.urn(:GetPublishedProductsBySkuRequest) do |xml|
xml.skuList skus.join(' ')
end
xml.urn(:GetProductsBySkuRequest) do |xml|
xml.skuList do |xml|
skus.each do |sku|
xml.sku sku
end
end
end
end
end
end
Expand Down Expand Up @@ -71,7 +75,11 @@ def self.get_products_by_sku(*skus)

xml.soapenv(:Body) do |xml|
xml.urn(:GetProductsBySkuRequest) do |xml|
xml.skuList skus.join(' ')
xml.skuList do |xml|
skus.each do |sku|
xml.sku sku
end
end
end
end
end
Expand Down

0 comments on commit 4324091

Please sign in to comment.