cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
234
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Daniele Visaggio on 03-03-2011 06:47:14 AM
Hi all,
 
I'm trying to create a python client for provisioning Cucm via AXL/SOAP.
 
I downloaded the axlsqltoolkit from the cucm plugin page and I picked up the \axlsqltoolkit\schema\6.0\AXLAPI.wsdl file. I think this is the right wsdl file because I'm not using axis nor .net. Moreover in the \axlsqltoolkit\schema\6.1\ path there is no wsdl file.
 
My problem is that I am not able to open this WSDL file with my soap python library (called SUDS). This is the output:
 
######################################################
 
from suds.client import Client
 
wsdl = 'file://home/daniele/Downloads/axlsqltoolkit/schema/6.0/AXLAPI.wsdl'
 
>>> client = Client(wsdl)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/client.py", line 112, in __init__
    self.wsdl = reader.open(url)
  File "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/reader.py", line 152, in open
    d = self.fn(url, self.options)
  File "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/wsdl.py", line 158, in __init__
    self.resolve()
  File "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/wsdl.py", line 207, in resolve
    c.resolve(self)
  File "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/wsdl.py", line 491, in resolve
    qref = qualify(op.input, self.root, definitions.tns)
  File "/usr/local/lib/python2.6/dist-packages/suds-0.4-py2.6.egg/suds/xsd/__init__.py", line 56, in qualify
    raise Exception('prefix (%s) not resolved' % p)
Exception: prefix (s0) not resolved
 
######################################################
 
But when I try to use another sample WSDL file I have no errors:
 
######################################################
 
wsdl = 'file:///home//daniele//Documents//sample_wsdl.wsdl'
>>>
>>> client = Client(wsdl)
>>>
>>>
>>> print client

Suds ( https://fedorahosted.org/suds/ )  version: 0.4 GA  build: R699-20100913

Service ( Hello_Service ) tns="http://www.ecerami.com/wsdl/HelloService.wsdl"
   Prefixes (0)
   Ports (1):
      (Hello_Port)
         Methods (1):
            sayHello(xs:string firstName, )
         Types (0):

######################################################
 
How can I fix this? maybe the WSDL in the axlsqltoolkit is broken?
 
Thank you in advance,
 
Daniele
 
 
 
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links