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 6075933
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T10:32:59+00:00 2026-05-23T10:32:59+00:00

At work I have to access/work with the Channel Advisor API http://developer.channeladvisor.com/display/cadn/Order+Service Source: I’m

  • 0

At work I have to access/work with the Channel Advisor API

http://developer.channeladvisor.com/display/cadn/Order+Service

Source:

I’m attempting to perform a simple ping

from suds.client import Client
url = 'https://api.channeladvisor.com/ChannelAdvisorAPI/v4/OrderService.asmx?WSDL'
soap_client = Client(url, location='https://api.channeladvisor.com/ChannelAdvisorAPI/v4/OrderService.asmx')

soap_client.set_options(port='OrderServiceSoap')
#Ping the service
ping = soap_client.service.Ping()

problem:

I get a response stating that my SOAP XML is malformed

The request needs to look like:

    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://api.channeladvisor.com/webservices/">
       <soapenv:Header>
       </soapenv:Header>
       <soapenv:Body>
          <web:Ping/>
       </soapenv:Body>
    </soapenv:Envelope>

But Instead it looks like:

    <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:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
       <SOAP-ENV:Header/>
       <ns1:Body>
          <ns0:Ping/>
       </ns1:Body>
    </SOAP-ENV:Envelope>

I’m not experienced with SOAP at all, i’ve avoided its endless implementations and complexities thus far – and so pardon me for my sheer ignorance and lack of knowledge, but what if anything am I doing wrong – how can I get python (our language of choice for this sort of thing) to work with the channel advisor API

Updates:

*As I have not received any answers, I’ll try to update everyone if/when I find a solution (March 3, 2011)

I think part of the problem is SUDS may not be including nested WSDL files correctly.

  • 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-23T10:32:59+00:00Added an answer on May 23, 2026 at 10:32 am

    I just had this same problem and finally realized that I had to pass the APICredentials for CA to respond to any request, even a ping. Here’s an example:

    import logging
    from suds.client import Client
    
    # Set logging to DEBUG level to see soap messages
    logging.basicConfig(level=logging.INFO)
    logging.getLogger('suds.client').setLevel(logging.DEBUG)
    
    # URL for CA WSDL
    url='https://api.channeladvisor.com/ChannelAdvisorAPI/v5/AdminService.asmx?WSDL'
    
    # Initialize client - The extra location is required because CA is https
    client = Client(url,location='https://api.channeladvisor.com/ChannelAdvisorAPI/v5/AdminService.asmx')
    
    # Set soap headers to include login information
    login = client.factory.create('APICredentials')
    login.DeveloperKey = 'YOUR_KEY'
    login.Password = 'YOUR_PWD'
    client.set_options(soapheaders=login)
    
    # Send Ping to CA
    result = client.service.Ping()
    
    print result
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Unfortunately I don't have access to a *nix box at work or at home.
In our data access layer at work we have this standard implementation where the
In one of the ms-access table I work with we have a text field
I have a problem getting boost::multi_index_container work with random-access and with orderd_unique at the
For work I have to code with an external company's API to deal with
The company I work for have an access database that is linked to a
I'm trying to get IIS6 to work reliably with a WCF service I have
Hi I have access to SQL Server at work and I've heard some interesting
I have a trivial .Net 2.0 SOAP web service. I want to access it
At work we have a commercial access control system monitoring who enters/exits the building.

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.