3 Replies Latest reply on Jun 1, 2015 5:08 PM by TheBCMan

    Catalogue Slug and URL

    Wayne Bayever

      Hi,

       

      I have been using the SOAP API in Visual Studio to create tools to automate tasks.  According to the WSDL, a call to Catalogue_ListRetrieve should return an array of Catalogues, each of which includes a URL and Slug.  However, it looks like those values are never returned.  I cannot use the default Slug and URL because the previous developer customized them and they do not match the Catalogue Name.

       

      Am I missing something?  Is this a problem on the BC end?

       

      Thank you,

      Wayne.

        • 1. Re: Catalogue Slug and URL
          TheBCMan Adobe Community Professional

          I use visual studio extensively but I always had problems using it with BC's soap API, I ended up writing it all manually (minus the XML passer). Can you debug the return data and make sure you are getting something valid back?

           

          This is what you should get:

           

          CatalystEcommerceWebservice Web Service

          • 2. Re: Catalogue Slug and URL
            Wayne Bayever Level 1

            Thank you for your reply.  I am getting valid data back.  This is not a VS problem.  Here is the request and response from SoapUI for Catalogue_Retrieve:

             

            Request:

            <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:cat="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice">

               <soap:Header/>

               <soap:Body>

                  <cat:Catalogue_Retrieve>

                     <!--Optional:-->

                     <cat:Username>removed</cat:Username>

                     <!--Optional:-->

                     <cat:Password>removed</cat:Password>

                     <cat:siteId>removed</cat:siteId>

                     <cat:CatalogueId>236992</cat:CatalogueId>

                  </cat:Catalogue_Retrieve>

               </soap:Body>

            </soap:Envelope>

             

            Response:

            <soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

               <soap:Body>

                  <Catalogue_RetrieveResponse xmlns="http://tempuri.org/CatalystDeveloperService/CatalystEcommerceWebservice">

                     <Catalogue_RetrieveResult>

                        <Id>removed</Id>

                        <SiteId>removed</SiteId>

                        <ParentId>-1</ParentId>

                        <TemplateId>1654313</TemplateId>

                        <RoleId>-1</RoleId>

                        <Weight xsi:nil="true"/>

                        <DisplayTypeId>1</DisplayTypeId>

                        <Name>Store</Name>

                        <Title>Hearing Aids &amp; Personal Sound Amplifiers | Store | Sound World Solutions</Title>

                        <Description>Browse our online store to purchase your Sound World hearing aids or personal sound amplifiers</Description>

                        <Image/>

                        <ReleaseDate>2015-02-23T16:00:00</ReleaseDate>

                        <ExpiryDate>9999-01-01T00:00:00</ExpiryDate>

                        <CreateBy>833639</CreateBy>

                        <CreateDate>2015-02-24T00:27:14</CreateDate>

                        <LastUpdateBy>833639</LastUpdateBy>

                        <LastUpdateDate>2015-02-24T00:27:14</LastUpdateDate>

                        <UseFriendlyUrl>true</UseFriendlyUrl>

                        <ExcludeFromFeed>false</ExcludeFromFeed>

                        <Enabled>true</Enabled>

                        <Deleted>false</Deleted>

                        <MinPrice>0</MinPrice>

                        <MaxPrice>1000</MaxPrice>

                        <PriceSlots>5</PriceSlots>

                        <ProductsStatsXml><![CDATA[<catalogue><productcount>4</productcount><onsalecount>0</onsal ecount><pricerange country="US"><price startprice="-2147483648" endprice="0" >0</price><price startprice="0" endprice="200" >1</price><price startprice="201" endprice="401" >3</price><price startprice="402" endprice="602" >0</price><price startprice="603" endprice="803" >0</price><price startprice="804" endprice="1004" >0</price><price startprice="1004" endprice="2147483647" >0</price></pricerange></catalogue>]]></ProductsStatsXml>

                        <ReIndex>false</ReIndex>

                     </Catalogue_RetrieveResult>

                  </Catalogue_RetrieveResponse>

               </soap:Body>

            </soap:Envelope>

             

             

            No Slug, No URL.

            • 3. Re: Catalogue Slug and URL
              TheBCMan Adobe Community Professional

              In your code you called Catalogue_RetrieveResult you need to call Catalogue_ListRetrieve