是否有(C#)库将为亚马逊商城网络服务创建订阅源?

Jos*_*off 13 c# amazon

有没有人知道那里的图书馆(最好是在C#中)会接受课程并生成适合亚马逊商城网络服务提要的XML或平面文件?

换句话说,我想做这样的事情:

        var feed = new AmazonProductFeed();
        var list = new AmazonProductList();

        var product1 = new AmazonProduct();
        product1.Name = "Product 1";
        list.Add(product1);

        var product2 = new AmazonProduct();
        product2.Name = "Product 2";
        list.Add(product2);

        feed.Products = list;
        // spits out XML compliant with Amazon's schema
        Console.Write(feed.ToXml());
Run Code Online (Sandbox Code Playgroud)

看起来亚马逊提供的唯一代码是Web服务本身和基于目录的传输实用程序(AMTU)的包装器.

Jos*_*off 7

在.NET XML架构定义工具可以用来从任何XSD类,可在结合使用XML序列做什么的描述.

亚马逊销售指南(SOA-GuideToXML.pdf)不包含对正确XSD的引用.链接与文档中重新打印的XSD不一致.我纠正XSD的旧链接不再有效.我最好的猜测是它们可以在这里找到(需要卖家登录).

据我所知,这个(非常长的)命令将生成所有需要的类.请注意,您需要在生成的文件中进行一些小的更改.我不记得它的工作方式,但我需要将某些2-D数组更改为1-D数组([] []到[]),反之亦然.我记得我必须做出这些变化的地方相当明显:

xsd xsd\amzn-base.xsd xsd\amzn-envelope.xsd xsd\amzn-header.xsd xsd\AttributeGroups.xsd xsd\AutoAccessory.xsd xsd\Beauty.xsd xsd\CameraPhoto.xsd xsd\CatPIL.xsd xsd\CE.xsd xsd\ClothingAccessories.xsd xsd\Customer.xsd xsd\CustomerAddress.xsd xsd\FoodAndBeverages.xsd xsd\FulfillmentCenter.xsd xsd\FulfillmentOrderCancellationRequest.xsd xsd\FulfillmentOrderRequest.xsd xsd\Gourmet.xsd xsd\Health.xsd xsd\Home.xsd xsd\HomeImprovement.xsd xsd\Image.xsd xsd\Inventory.xsd xsd\Item.xsd xsd\Jewelry.xsd xsd\Lighting.xsd xsd\Listings.xsd xsd\ListingSummary.xsd xsd\Loyalty.xsd xsd\MerchantListingsReport.xsd xsd\Miscellaneous.xsd xsd\MultiChannelOrderReport.xsd xsd\Music.xsd xsd\MusicalInstruments.xsd xsd\NavigationReport.xsd xsd\Offer.xsd xsd\Office.xsd xsd\OrderAcknowledgement.xsd xsd\OrderAdjustment.xsd xsd\OrderFulfillment.xsd xsd\OrderNotificationReport.xsd xsd\OrderReport.xsd xsd\Override.xsd xsd\PaymentMethod.xsd xsd\PetSupplies.xsd xsd\Price.xsd xsd\ProcessingReport.xsd xsd\Product.xsd xsd\ProductAttributes.xsd xsd\ProductClothing.xsd xsd\ProductImage.xsd xsd\Relationship.xsd xsd\ReverseFeed.xsd xsd\SettlementReport.xsd xsd\Sports.xsd xsd\Store.xsd xsd\SWVG.xsd xsd\TiresAndWheels.xsd xsd\Tools.xsd xsd\ToysBaby.xsd xsd\TypeDefinitions.xsd xsd\Video.xsd xsd\WebstoreItem.xsd xsd\Wireless.xsd  /c /n:WebLinc.Services.Amazon.Marketplace > output.txt 2>&1
pause
Run Code Online (Sandbox Code Playgroud)