Package com.ebay.sdk.call

Examples of com.ebay.sdk.call.GetProductSellingPagesCall


    }
    //
      Document rawDoc;
      // Process attr sets with prod ids
    if(asArrayWithProdIds.length != 0) {
        GetProductSellingPagesCall psp = new GetProductSellingPagesCall(apiContext);
        psp.setDetailLevel(new DetailLevelCodeType[] {DetailLevelCodeType.RETURN_ALL});
        ProductType[] products = new ProductType[asArrayWithProdIds.length];
        int[] csidArray = new int[asArrayWithProdIds.length];
        for(int i = 0; i < asArrayWithProdIds.length; i++) {
            ProductType prod = new ProductType();
            prod.setProductID(asArrayWithProdIds[i].getProductID());
            CharacteristicsSetType cs = new CharacteristicsSetType();
            cs.setAttributeSetID(new Integer(asArrayWithProdIds[i].getAttributeSetID()));
            prod.setCharacteristicsSet(cs);
            products[i] = prod;
            csidArray[i] = asArrayWithProdIds[i].getAttributeSetID();
        }
        psp.setProducts(products);
        psp.setUseCase(ProductUseCaseCodeType.ADD_ITEM);
        String spText = psp.getProductSellingPages();
        rawDoc = XmlUtil.createDom(spText);
        doc = GetAttributesCSCall.extractMultiCSFromXml(rawDoc, csidArray, true, "/Products/Product", doc);
        // Patch it with style XSL.
        String xmlBefore = XmlUtil.getXmlStringFromDom(doc);
        String xmlPatched = GetAttributesCSCall.fixAttributesXml(xmlBefore, GetAttributesCSCall.getDefaultStyleXsl());
View Full Code Here

TOP

Related Classes of com.ebay.sdk.call.GetProductSellingPagesCall

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.