Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 798047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T22:54:32+00:00 2026-05-14T22:54:32+00:00

Here is my code: #Make the SOAP connection url = https://api.channeladvisor.com/ChannelAdvisorAPI/v1/InventoryService.asmx?WSDL headers = {‘Content-Type’:

  • 0

Here is my code:

#Make the SOAP connection
url = "https://api.channeladvisor.com/ChannelAdvisorAPI/v1/InventoryService.asmx?WSDL"
headers = {'Content-Type': 'text/xml; charset=utf-8'}
ca_client_inventory = Client(url, location="https://api.channeladvisor.com/ChannelAdvisorAPI/v1/InventoryService.asmx", headers=headers)
#Make the SOAP headers
login = ca_client_inventory.factory.create('APICredentials')
login.DeveloperKey = 'REMOVED'
login.Password = 'REMOVED'
#Attach the headers
ca_client_inventory.set_options(soapheaders=login)

synch_inventory_item_list = ca_client_inventory.factory.create('SynchInventoryItemList')
synch_inventory_item_list.accountID = "REMOVED"

array_of_inventory_item_submit = ca_client_inventory.factory.create('ArrayOfInventoryItemSubmit')
for product in products:
   inventory_item_submit = ca_client_inventory.factory.create('InventoryItemSubmit')
    inventory_item_list = get_item_list(product)
    inventory_item_submit = [inventory_item_list]
    array_of_inventory_item_submit.InventoryItemSubmit.append(inventory_item_submit)

synch_inventory_item_list.itemList = array_of_inventory_item_submit

#Call that service baby!
ca_client_inventory.service.SynchInventoryItemList(synch_inventory_item_list)

Here is what it outputs:

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns0="http://api.channeladvisor.com/webservices/" xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:tns="http://api.channeladvisor.com/webservices/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
      <tns:APICredentials>
         <tns:DeveloperKey>REMOVED</tns:DeveloperKey>
         <tns:Password>REMOVED</tns:Password>
      </tns:APICredentials>
   </SOAP-ENV:Header>
   <ns1:Body>
      <ns0:SynchInventoryItemList>
         <ns0:accountID>
            <ns0:accountID>REMOVED</ns0:accountID>
            <ns0:itemList>
               <ns0:InventoryItemSubmit>
                  <ns0:Sku>1872</ns0:Sku>
                  <ns0:Title>The Big Book Of Crazy Quilt Stitches</ns0:Title>
                  <ns0:Subtitle></ns0:Subtitle>
                  <ns0:Description>Embellish the seams and patches of crazy quilt projects with over 75 embroidery stitches and floral motifs. You&apos;ll use this handy reference book again and again to dress up wall hangings, pillows, sachets, clothing, and other nostalgic creations.</ns0:Description>
                  <ns0:Weight>4</ns0:Weight>
                  <ns0:FlagStyle/>
                  <ns0:IsBlocked xsi:nil="true"/>
                  <ns0:ISBN></ns0:ISBN>
                  <ns0:UPC>028906018721</ns0:UPC>
                  <ns0:EAN></ns0:EAN>
                  <ns0:QuantityInfo>
                     <ns0:UpdateType>UnShipped</ns0:UpdateType>
                     <ns0:Total>0</ns0:Total>
                  </ns0:QuantityInfo>
                  <ns0:PriceInfo>
                     <ns0:Cost>0.575</ns0:Cost>
                     <ns0:RetailPrice xsi:nil="true"/>
                     <ns0:StartingPrice xsi:nil="true"/>
                     <ns0:ReservePrice xsi:nil="true"/>
                     <ns0:TakeItPrice>6.95</ns0:TakeItPrice>
                     <ns0:SecondChanceOfferPrice xsi:nil="true"/>
                     <ns0:StorePrice>6.95</ns0:StorePrice>
                  </ns0:PriceInfo>
                  <ns0:ClassificationInfo>
                     <ns0:Name>Books</ns0:Name>
                     <ns0:AttributeList>
                        <ns0:ClassificationAttributeInfo>
                           <ns0:Name>Designer/Author</ns0:Name>
                           <ns0:Value>Patricia Eaton</ns0:Value>
                        </ns0:ClassificationAttributeInfo>
                        <ns0:ClassificationAttributeInfo>
                           <ns0:Name>Trim Size</ns0:Name>
                           <ns0:Value></ns0:Value>
                        </ns0:ClassificationAttributeInfo>
                        <ns0:ClassificationAttributeInfo>
                           <ns0:Name>Binding</ns0:Name>
                           <ns0:Value>Leaflet</ns0:Value>
                        </ns0:ClassificationAttributeInfo>
                        <ns0:ClassificationAttributeInfo>
                           <ns0:Name>Release Date</ns0:Name>
                           <ns0:Value>11/1/1999 0:00:00</ns0:Value>
                        </ns0:ClassificationAttributeInfo>
                        <ns0:ClassificationAttributeInfo>
                           <ns0:Name>Skill Level</ns0:Name>
                           <ns0:Value></ns0:Value>
                        </ns0:ClassificationAttributeInfo>
                        <ns0:ClassificationAttributeInfo>
                           <ns0:Name>Pages</ns0:Name>
                           <ns0:Value>20</ns0:Value>
                        </ns0:ClassificationAttributeInfo>
                        <ns0:ClassificationAttributeInfo>
                           <ns0:Name>Projects</ns0:Name>
                           <ns0:Value></ns0:Value>
                        </ns0:ClassificationAttributeInfo>
                     </ns0:AttributeList>
                  </ns0:ClassificationInfo>
                  <ns0:ImageList>
                     <ns0:ImageInfoSubmit>
                        <ns0:PlacementName>ITEMIMAGEURL1</ns0:PlacementName>
                        <ns0:FilenameOrUrl>1872.jpg</ns0:FilenameOrUrl>
                     </ns0:ImageInfoSubmit>
                  </ns0:ImageList>
               </ns0:InventoryItemSubmit>
            </ns0:itemList>
         </ns0:accountID>
      </ns0:SynchInventoryItemList>
   </ns1:Body>
</SOAP-ENV:Envelope>

See how it creates the accountID node twice and wraps the whole thing in it? WHY? How do I make it stop that?!

EDIT: I just noticed this in the SUDS output:

(Content){
   tag = "accountID"
   value = 
      (SynchInventoryItemList){
         accountID = "REMOVED"
         itemList = 
            (ArrayOfInventoryItemSubmit){
               InventoryItemSubmit[] = 

                  (InventoryItemSubmit){

What is this tag? …going to check docs

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T22:54:32+00:00Added an answer on May 14, 2026 at 10:54 pm

    The answer is in the very last line of my code I need to do this:

    ca_client_inventory.service.SynchInventoryItemList(accountID, array_of_inventory_item_submit)
    

    Where accountID is a variable that holds the string account id

    I was told by jortel in the #suds IRC chat room that: “suds provides an rpc interface that insulates users from soap messaging styles” And the new parameters in the call came from him too. Hope this helps someone.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 448k
  • Answers 448k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer NVP does not provide a WSDL (It's done by querystring… May 15, 2026 at 7:45 pm
  • Editorial Team
    Editorial Team added an answer You have to continuously call conts.drawImage Example: http://jsfiddle.net/Dmy2E/ function draw()… May 15, 2026 at 7:45 pm
  • Editorial Team
    Editorial Team added an answer Well, I just got id of it. You can not… May 15, 2026 at 7:45 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.